forked from retoor/snek
Update.
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
π Welcome to your custom Ubuntu development environment!
|
||||
|
||||
This container is pre-configured with a rich set of tools to help you hit the ground running:
|
||||
|
||||
π§ Development Libraries & Tools:
|
||||
|
||||
Full support for building and debugging C/C++ and Python code
|
||||
|
||||
Libraries for SSL, readline, SQLite, zlib, bz2, ffi, lzma, and JSON-C
|
||||
|
||||
Valgrind for memory debugging and profiling
|
||||
|
||||
π Python:
|
||||
|
||||
Python 3 with pip and virtual environment support (venv)
|
||||
|
||||
π¦ Rust:
|
||||
|
||||
Rust installed with the nightly toolchain via rustup
|
||||
|
||||
π Command-line Essentials:
|
||||
|
||||
vim, tmux, htop, git, curl, wget, xterm, ack, and more
|
||||
|
||||
π¬ Networking & Communication:
|
||||
|
||||
irssi for IRC and lynx for browsing from the terminal
|
||||
|
||||
π¦ Custom Tool Installed:
|
||||
|
||||
Latest version of AI vibe coding tool r is installed from the
|
||||
retoor.molodetz.nl repository.
|
||||
|
||||
To get started, open a new terminal and type "r" to launch the tool.
|
||||
|
||||
Configure ~/.rcontext.txt to describe it's behavior. It can be a friend
|
||||
or a whatever you like.
|
||||
|
||||
π Credentials:
|
||||
|
||||
Default root password is set to: root (please change it if needed)
|
||||
|
||||
π Custom Terminal Files:
|
||||
|
||||
Files from ./terminal/ have been copied to your home directory (/root/)
|
||||
|
||||
Enjoy hacking in your personalized command-line workspace!
|
||||
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import sys
|
||||
import pathlib
|
||||
|
||||
import os
|
||||
|
||||
os.chdir("/root")
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
sys.path.insert(0, "/root/bin")
|
||||
sys.path.insert(0, "/root/bin/local/bin")
|
||||
|
||||
if not pathlib.Path(".welcome.txt").exists():
|
||||
os.system("python3 -m venv --prompt '' .venv")
|
||||
os.system("cp -r /opt/bootstrap/root/.* /root")
|
||||
os.system("cp /opt/bootstrap/.welcome.txt /root/.welcome.txt")
|
||||
pathlib.Path(".bashrc").write_text(pathlib.Path(".bashrc").read_text() + "\n" + "source .venv/bin/activate")
|
||||
os.environ["SNEK"] = "1"
|
||||
|
||||
if pathlib.Path(".welcome.txt").exists():
|
||||
with open(".welcome.txt") as f:
|
||||
print(f.read())
|
||||
|
||||
os.system("bash")
|
||||
Reference in New Issue
Block a user