This post is dedicated to my “personal FAQ” as I always tend to forget things and am at the mercy of the reverse-i-search
of my terminal. These are the contents of my Google Keep for the commands or configurations that I don’t frequently use. Maybe the title of this post should be Infrequently Asked Questions instead. The answers are usually codeblocks or snippets to paste directly in the terminal.
nts: do not post keys.
-
I can’t edit a migration file generated by django. How do I do it?
sudo chown -R username:usergroup .
-
How do I create a github profile and use it?
- Inside
~/.ssh/config
add the following:
# Personal Account Host personal HostName github.com PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa_personal
to clone a repo, just copy the ssh link and replace
github.com
withpersonal
like so:git clone git@personal:username/repo.git
- Inside
-
How do restart a container using docker compose?
docker compose restart web
-
How do I run a python script using docker compose?
docker compose run python manage.py migrate
-
My storage is full, I need to remove all docker volumes?
docker system prune -a --volumes
-
How do I run a hugo server locally?
hugo server
-
How do I deploy hugo to s3?
hugo deploy production