Created
December 6, 2021 06:46
-
-
Save muradddd/05af4ea325d86158f00e95007263f0f4 to your computer and use it in GitHub Desktop.
alias commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias runserver="python manage.py runserver" | |
alias makemigrations="python manage.py makemigrations" | |
alias showmigrations="python manage.py showmigrations" | |
alias migrate="python manage.py migrate" | |
alias createsuperuser="python manage.py createsuperuser" | |
alias dump="python manage.py dumpdata --natural-foreign -e contenttypes -e auth.Permission -e admin.Logentry" | |
alias load="python manage.py loaddata" | |
alias shell="python manage.py shell" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias dpa="docker ps -a" | |
alias dcu="docker-compose up -d" | |
alias dcub="docker-compose up -d --build" | |
alias dcd="docker-compose down" | |
alias dsp="docker system prune -f" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias venv="python3 -m venv .venv" | |
alias pipr="pip install -r requirements.txt" | |
alias pipi="pip install" | |
alias activate="source .venv/bin/activate" | |
kill_server(){ | |
sudo fuser -k "$1"/tcp | |
} | |
alias redis_kill="/etc/init.d/redis-server stop" | |
alias lower_battery="sudo pm-powersave true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias gs="git status" | |
alias gps="git push" | |
alias gpl="git pull" | |
alias gst="git stash push -u -m" | |
alias gsta="git stash apply" | |
alias gstl="git stash list" | |
alias glog="git log --all" | |
alias gcl="git clone" | |
alias gck="git checkout" | |
alias gbr="git branch" | |
alias gscf="git diff-tree --no-commit-id --name-only -r" | |
alias gm="git merge --no-ff" | |
alias gfa="git fetch --all" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment