Last active
July 19, 2021 20:31
-
-
Save wall-e-08/8fc246e7f565182d98b99700d3cd5076 to your computer and use it in GitHub Desktop.
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
# sed -e '5ij\n\n\nfjfjfjf' -i file.txt ## insert text at 5th line in file.txt file | |
# wget -pkr www.website.com/ => to download website | |
# copy to clipboard by piping: xclip -sel clip | |
copyfromfile(){ | |
cat $1 | xclip -sel clip | |
} | |
alias apt='sudo apt' | |
alias hgup='hg pull && hg update' | |
# dokku settings | |
export DOKKU_HOST=dev.concitus.com | |
alias dokku='$HOME/.dokku/contrib/dokku_client.sh' | |
alias vp3='virtualenv -p python3 env' | |
alias e_act='source env/bin/activate' | |
alias python='python3' | |
alias pp='ping goo.gl' | |
killbyname(){ | |
kill -9 $(ps aux | grep $1 | awk '{print $2}') | |
} | |
djmn(){ | |
i="" # variable init | |
if [ "$1" = "mkmg" ]; then | |
i="makemigrations" | |
elif [ "$1" = "mg" ]; then | |
i="migrate" | |
elif [ "$1" = "su" ]; then | |
i="createsuperuser" | |
elif [ "$1" = "st" ]; then | |
i="collectstatic --no-input" | |
elif [ "$1" = "rs" ]; then | |
i="runserver 8007" | |
else | |
i=$1 | |
fi | |
echo "running $i" | |
python manage.py $i | |
} | |
alias samba_start='sudo /etc/init.d/smbd start' | |
alias samba_stop='sudo /etc/init.d/smbd stop' | |
alias ibus_restart='ibus-daemon &' | |
alias pipignore_err='cat requirements.txt | xargs -n 1 pip install' | |
export GIT_EDITOR=vim | |
export SYSTEMD_EDITOR=vim | |
alias android_phn_emulator='emulator @Pixel_3a_API_28' | |
alias android_phn_emulator_cold_boot='emulator @Pixel_3a_API_28 -no-snapshot-load' | |
#alias switch_php='sudo update-alternatives --config php' | |
alias genymotion_android_emulator='/home/wall-e/softwares/genymotion/genymotion' | |
#export PATH=$PATH:/usr/local/nodejs/bin | |
#export PATH=$PATH:$HOME/.npm-global/bin | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment