Skip to content

Instantly share code, notes, and snippets.

@Apreche
Last active April 7, 2020 15:53
Show Gist options
  • Save Apreche/1239622 to your computer and use it in GitHub Desktop.
Save Apreche/1239622 to your computer and use it in GitHub Desktop.
bash_aliases
alias apt-search="apt-cache search --names-only"
alias greppy='find ! -path "*migrations*" -name "*.py" | xargs grep'
alias grephtml='find -name "*.html" | xargs grep'
alias grepjs='find -name "*.js" | xargs grep'
alias grepcss='find -name "*.css" | xargs grep'
alias grepall='find ! -path "*migrations*" -and ! -name "*.pyc" | xargs grep'
alias grepregex='grep -rnE'
alias rmpyc='find -name "*.pyc" -delete'
alias runserver='./manage.py runserver_plus 0.0.0.0:8000'
alias gittag='git tag | sort -g'
alias curljax='curl -H "X_REQUESTED_WITH: XMLHttpRequest"'
alias prettyjson='python -m json.tool'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment