Skip to content

Instantly share code, notes, and snippets.

View imatefx's full-sized avatar

Stalin Pereira imatefx

View GitHub Profile
@imatefx
imatefx / module-releaser.sh
Last active June 3, 2016 10:56
bash script to automatically create a git / git flow release, bump npm version, build module, commit, publish module to npm
#!/bin/bash
autoFinishGitFlow=1
autoBuild=1
autoPublish=1
autoCreateGitFlowRelease=1
autoCommit=1
release="patch"
function getVersions {
@imatefx
imatefx / tar-backup.sh
Last active August 29, 2015 14:08
Local tar based incremental backups
#!/bin/bash
# imatefx
# backup.sh <full / inc> <source dir> <snapshot dir> <dest dir> <backup name>
# To restore 1st restore a full backup and then all the incremental backups in order
# tar --extract --gunzip --listed-incremental=/dev/null --file hyppo-home.20090130.master.tar.gz
# tar --extract --gunzip --listed-incremental=/dev/null --file hyppo-home.20090131.tar.gz
if [ "$#" -ne 5 ]; then
echo "Illegal number of parameters"
echo "Make sure all the directories path ends with /"