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.
  1. I can’t edit a migration file generated by django. How do I do it?

    • sudo chown -R username:usergroup .
  2. 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 with personal like so: git clone git@personal:username/repo.git

  3. How do restart a container using docker compose?

    • docker compose restart web
  4. How do I run a python script using docker compose?

    • docker compose run python manage.py migrate
  5. My storage is full, I need to remove all docker volumes?

    • docker system prune -a --volumes
  6. How do I run a hugo server locally?

    • hugo server
  7. How do I deploy hugo to s3?

    • hugo deploy production