This file contains 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
#git | |
reinit = "!f(){ | |
git checkout -b wait; \ | |
git branch -D master; \ | |
git fetch; \ | |
git checkout master; \ | |
git pull; \ | |
git branch -D wait; \ | |
git branch -D $1;\ | |
git push --delete origin $1;\ |
This file contains 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
# git | |
fixpr = "!f(){ \ | |
git stash;\ | |
git checkout master;\ | |
git pull;\ | |
git branch -D \"$1-fixed\";\ | |
git push --delete origin \"$1-fixed\";\ | |
git branch -D \"$1-pre-fix\";\ | |
git checkout $1;\ | |
git checkout -b \"$1-pre-fix\"; \ |
This file contains 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
# git | |
feature = "!f(){ \ | |
git stash;\ | |
git checkout -b wait; \ | |
git branch -D master; \ | |
git fetch; \ | |
git pull origin master; \ | |
git checkout master;\ | |
git branch -D wait;\ | |
git branch -D develop;\ |
This file contains 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
{ | |
"description": "Search big json file", | |
"dependencies": { | |
"node-status": "^1.0.0", | |
"JSONStream": "^1.3.3" | |
} | |
} |
This file contains 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
/*jslint node: true */ | |
"use strict"; | |
var express = require("express"), | |
consolidate = require("consolidate"), | |
Handlebars = require("handlebars"), | |
fs = require("fs"); | |
var app = express(); |
This file contains 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
numnodes=2 | |
baseip="192.168.10" | |
#global script | |
$global = <<SCRIPT | |
#check for private key for vm-vm comm | |
[ -f /vagrant/id_rsa ] || { | |
ssh-keygen -t rsa -f /vagrant/id_rsa -q -N '' | |
} |