Short Hand That I Always I Forget I know

Git, Postgres, Yarn, why am I always looking these commands up? Idk. This post is more for me than it is for you but I hope you gain something from it as well.


git commit --amend --no-edit


- Super intro sh*t I always forget the order :




# One liner for the terminal
python -c "import sys; print('\n'.join(sys.path))"

If you are on Linux

    Open your favorite terminal program;

    Open the file ~/.bashrc in your text editor – e.g. atom ~/.bashrc;

    Add the following line to the end:
        export PYTHONPATH=/home/my_user/code
    Save the file.

    Close your terminal application;

    Start your terminal application again, to read in the new settings, and type this:
        echo $PYTHONPATH
    It should show something like /home/my_user/code.

Django Migrations




(no longer being supported) use virtualenv love <3 ;`(


The following should give you the paths

$ pipenv --where

$ pipenv --venv

- Linux - How to end a port that’s hanging out there

If you want to kill a process running on port number 8080 then first you need to find the 8080 port process identification number(PID) and then kill it. Run the following command to find 8080 port number PID:


  • sudo - command to ask admin privilege(user id and password).
  • lsof - list of files(Also used for to list related processes)
  • -t - show only process ID
  • -i - show only internet connections related process
  • :8080 - show only processes in this port number

So you can now easily kill your PID using following command:

sudo lsof -t -i:8080


  • kill - command to kill the process
  • -9 - forcefully

You can use one command to to kill a process on a specific port using the following command:

sudo kill -9 <PID>

For more you can see the following link How to kill a process on a specific port on linux