Skip to content

Instantly share code, notes, and snippets.

Working from home

Tomas Salazar atomsfat

Working from home
View GitHub Profile
daicham / gist:10253947
Last active May 31, 2019
SSH config for connecting to github and bitbucket over proxy
View gist:10253947
ProxyCommand "C:\Program Files\git\bin\connect.exe" -H %h %p
Port 443
IdentityFile C:\Users\hoge\.ssh\id_rsa
Port 443
IdentityFile C:\Users\hoge\.ssh\id_rsa
naholyr /
Created Dec 13, 2012
Sample /etc/init.d script

Sample service script for debianoids

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)
domix /
Created Jan 15, 2012
Delete all keys in Redis
redis-cli KEYS "*" | xargs redis-cli DEL
elidupuis / handlebars-helpers.js
Last active Jul 7, 2020
Simple Handlebars.js helpers
View handlebars-helpers.js
/*! ******************************
Handlebars helpers
// debug helper
// usage: {{debug}} or {{debug someValue}}
// from: @commondream (
Handlebars.registerHelper("debug", function(optionalValue) {
console.log("Current Context");
topfunky /
Created Jul 25, 2011
Shell shortcut to setup a Git repo with GitHub. Works with zsh or bash.
# Usage: new-github topfunky tidy_table
function new-github() {
git remote add origin$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
You can’t perform that action at this time.