From c9c650c4534814fd627db664cf0d84b79e099b05 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sun, 22 Mar 2026 10:47:28 -0700 Subject: [PATCH] :wrench: Aliases and notes --- aliases | 2 + mysql_docker_pip_setup.md | 78 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 mysql_docker_pip_setup.md diff --git a/aliases b/aliases index ef4c738e..534f5cad 100644 --- a/aliases +++ b/aliases @@ -37,6 +37,7 @@ alias Code="cd ~/Documents/Code && ls" alias graphics="cd ~/Documents/Graphic_Design && ls" alias Math="cd ~/Documents/Math && ls" alias sophia="cd ~/Documents/sophia && ls" +alias study="cd ~/Documents/study && ls" alias cplus="cd ~/Documents/Code/cpp && ls" alias js="cd ~/Documents/Code/javascript && ls" alias py="cd ~/Documents/Code/python && ls" @@ -341,6 +342,7 @@ alias vgrind="valgrind --leak-check=full --show-leak-kinds=all --track-origins=y # alias {twd,thewalkingdead}="steam steam://rungameid/1449690 &" # alias {cbmods,cybermods}="cd ~/.local/share/Steam/steamapps/common/Cyberpunk\ 2077/archive/pc/mod && ls" alias vintagestory="flatpak run at.vintagestory.VintageStory" +alias vsmods="cd ~/.var/app/at.vintagestory.VintageStory/config/VintagestoryData/Mods/ && ls" # docker specific Aliases alias docker-ls="docker container ls -a && docker images" diff --git a/mysql_docker_pip_setup.md b/mysql_docker_pip_setup.md new file mode 100644 index 00000000..d205571e --- /dev/null +++ b/mysql_docker_pip_setup.md @@ -0,0 +1,78 @@ +### Setup + +Considering that it's been a while since I've set up MySQL and Pip, I thought +I'd document some of the basics here again for my own sake: + +**Setting Up Mysql** + +I opted to setup mysql via docker instead of installing it on bare metal. Simply +use the contained `docker-compose.yml` file with +[docker-compose](https://github.com/docker/compose) to get a very basic mysql +instance up and running: + +```sh +docker-compose up -d +``` + +Confirm it's running using `ps`: + +```sh +docker ps +``` + +As long as it's up and running you can test it to be sure: + +```sh +docker exec -it myjsql-basic mysql -u root -p +``` + +And put in the default root password from the `docker-compose.yml` file. + +**Virtual Environments** + +You'll want to install `pip` and also get a virtual environment running: + +```sh +python -m venv .venv +``` + +```sh +source .venv/bin/activate +``` + +Once inside the virtual environment, upgrade the local `pip`: + +```sh +python -m pip install --upgrade pip +``` + +And use that `pip` to install all the packages from `requirements.txt`: + +```sh +python -m pip install -r requirements.txt +``` + +**Confirming MySQL Statements Were Executed:** + +From within the `docker exec`'ed mysql repl, for now just use `SHOW DATABASES` +to ensure it went through: + +``` +mysql> SHOW DATABASES; +``` + +You should see output like this: + +``` ++--------------------+ +| Database | ++--------------------+ +| employee_db | +| information_schema | +| myapp | +| mysql | +| performance_schema | +| sys | ++--------------------+ +6 rows in set (0.001 sec) +```