Last active
July 29, 2016 02:44
-
-
Save serradura/d1c96d20b7014ec8a21a to your computer and use it in GitHub Desktop.
Short shell scripts
This file contains hidden or 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
# # 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