Skip to content

Instantly share code, notes, and snippets.

@nfedyashev
Created November 4, 2019 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfedyashev/bbebb3d6880b59f4520f1bffd4c5720d to your computer and use it in GitHub Desktop.
Save nfedyashev/bbebb3d6880b59f4520f1bffd4c5720d to your computer and use it in GitHub Desktop.
alias whitespace='find . -not \( -name .svn -prune -o -name .git -prune \) -type f -print0 | xargs -0 file -In | grep -v binary | cut -d ":" -f1 | xargs -0 sed -i '' -E "s/[[:space:]]*$//"'
@nfedyashev
Copy link
Author

alias prettify_json='python -mjson.tool'

@nfedyashev
Copy link
Author

alias ikill="ps aux | percol | awk '{ print $2 }' | xargs kill"
alias history_sort='history | cut -c 8- | sort | uniq -c | sort -rn'
alias df='df -h'
alias du='du -h'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment