Skip to content

Instantly share code, notes, and snippets.

@sammyd
sammyd / .gitignore
Created May 11, 2012 14:37 — forked from gaza3g/.gitignore
Xcode 4 .gitignore file
.DS_Store
*~
*.swp
*~.nib
build/
*.pbxuser
*.perspective
*.perspectivev3
@sammyd
sammyd / enter-password.js
Created April 11, 2012 11:50 — forked from isaacs/enter-password.js
Password collection from the console for node.js
var get_pass = function(callback) {
console.info("Enter password:")
var stdin = process.openStdin()
stdin.setEncoding('utf8')
var tty = require('tty')
tty.setRawMode(true)
var password = ""
stdin.on("data", function (c) {
@sammyd
sammyd / git_svn_bash_prompt.sh
Created August 14, 2011 07:46 — forked from edgar/git_svn_bash_prompt.sh
Set color bash prompt according to ruby version and git/svn branch, and return status of last command
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the ruby version
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#