My utilities (shell scripts)
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


My utilities (shell scripts)

Minify JS

  • file: minifyJS
  • desc: Use Google Closure Compiler jar to minify multiple js files to one file
  • prerequisite: Google Closure Compiler Jar
  • usage: minifyJS yourjs.js yourjs2.js yourjs3.js > yourjs.all.min.js

Remote Mongo db backup

  • file: backup/mongo_backup
  • desc: Use s3cmd to backup mongo db remotely

Remote MySQL backup

  • file: backup/mysql_backup
  • desc: Use s3cmd to backup mysql remotely

Remote Redis DB backup

  • file: backup/redis_backup
  • desc: Use s3cmd to backup redis db remotely (bgsave before backup)