🔧 Aliases and notes

This commit is contained in:
tomit4 2026-03-22 10:47:28 -07:00
parent 1432c04cf9
commit c9c650c453
2 changed files with 80 additions and 0 deletions

View file

@ -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"

78
mysql_docker_pip_setup.md Normal file
View file

@ -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)
```