Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
# Usage: new-github topfunky tidy_table | |
function new-github() { | |
git remote add origin [email protected]:$1/$2.git | |
git push origin master | |
git config branch.master.remote origin | |
git config branch.master.merge refs/heads/master | |
git config push.default current | |
} |
/*! ****************************** | |
Handlebars helpers | |
*******************************/ | |
// debug helper | |
// usage: {{debug}} or {{debug someValue}} | |
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/) | |
Handlebars.registerHelper("debug", function(optionalValue) { | |
console.log("Current Context"); | |
console.log("===================="); |
redis-cli KEYS "*" | xargs redis-cli DEL |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
ProxyCommand "C:\Program Files\git\bin\connect.exe" -H proxy.example.com:8080 %h %p | |
Host github.com | |
HostName ssh.github.com | |
Port 443 | |
IdentityFile C:\Users\hoge\.ssh\id_rsa | |
Host bitbucket.org | |
HostName altssh.bitbucket.org | |
Port 443 | |
IdentityFile C:\Users\hoge\.ssh\id_rsa |