Skip to content

Instantly share code, notes, and snippets.

View sanderpick's full-sized avatar
🎟️
Got me a ticket to ride

Sander Pick sanderpick

🎟️
Got me a ticket to ride
View GitHub Profile
#!/bin/bash
# Disclaimer:
# We are not actively maintaining this script. We can't assure it will work, but we'll do our best to keep it updated.
# Credits:
# Original author: https://gist.github.com/lbosque/5876697
# Contributors:
# https://gist.github.com/andrewxhill/5884845 Mac-compatible version
# https://gist.github.com/kentr / http://maplight.org/ new uuid format bugfix + email notification
# https://gist.github.com/sanderpick/185bc819c6a80b06d1b8 allow spaces in filesnames
@sanderpick
sanderpick / gist:141223609e56f1196c60
Created August 25, 2014 22:09
install zeromq on amazon ebs
packages:
yum:
gcc: []
make: []
libtool: []
autoconf: []
automake: []
uuid: []
uuid-devel: []
source ~/.git-completion.bash
export CLICOLOR='true'
export PS1='\[\033[1;35m\]\u\[\033[0m\]:\[\033[1;35m\]\W\[\033[0m\] \[\033[1;92m\]$(__git_ps1 "(%s)")\[\033[0m\]\$ '
export PATH=/usr/local/bin:$PATH
# {{{
# Node Completion - Auto-generated, do not touch.
shopt -s progcomp
#!bash
#
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
sudo touch /usr/local/var/log/mongodb/output.log
sudo mongod --fork --logpath /usr/local/var/log/mongodb/output.log
@sanderpick
sanderpick / gist:7904891
Created December 11, 2013 03:59
for buddy
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
@sanderpick
sanderpick / gist:6041721
Created July 19, 2013 19:23
can i haz font names?
for(NSString* family in [UIFont familyNames]) {
NSLog(@"%@", family);
for(NSString* name in [UIFont fontNamesForFamilyName: family]) {
NSLog(@" %@", name);
}
}
this.occSearchView = new OccSearchView({parentView: this, listEl: 'table#mytable'}).render();
if (this.parentView.options.listEl)
this.$el.appendTo(this.parentView.$(listEl));
else
this.$el.appendTo(this.parentView.$el);
@sanderpick
sanderpick / gist:5470651
Created April 26, 2013 21:43
Start mongod on port 27017 (default), pointing to /data/db (default)
sudo touch /var/log/mongod.log
sudo mkdir -p /data/db
sudo mongod --fork --logpath /var/log/mongod.log
error: There was an error while attempting to start the app
error: Error spawning drone
error: Script took too long to listen on a socket
error: This type of error is usually a user error.