Skip to content

Instantly share code, notes, and snippets.

@serradura
Last active July 29, 2016 02:44
Show Gist options
  • Save serradura/d1c96d20b7014ec8a21a to your computer and use it in GitHub Desktop.
Save serradura/d1c96d20b7014ec8a21a to your computer and use it in GitHub Desktop.
Short shell scripts
# # Uninstall all installed gems - Ruby 2.3.x
gem list | grep -Ev 'test-unit|rvm|rubygems-bundler|rdoc|psych|power_assert|net-telnet|io-console|gem-wrappers|executable-hooks|did_you_mean|rake|bundler-unload|bigdecimal|minitest|json' | cut -d" " -f1 | xargs gem uninstall -aIx
# Uninstall all installed gems
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
# Delete all git local tags
git tag | grep | cut -d" " -f1 | xargs git tag -d
# Manual js minification
# Runtime dependency: npm install uglify-js -g
rm FILE.js; uglifyjs FILE.js -c -mt > FILE.min.js; cat FILE.min.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment