Skip to content

Instantly share code, notes, and snippets.

natelandau / .bash_profile
Last active Oct 18, 2020
Mac OSX Bash Profile
View .bash_profile
# ---------------------------------------------------------------------------
# Description: This file holds all my BASH configurations and aliases
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
zackdever / gist:8701478
Created Jan 30, 2014
arc diff off another diff
View gist:8701478
taken directly from
Advanced topic: Dependent Phabricator reviews
Say you have an upstream called master, and a feature branch F1, and a second change that depends on F1, (call it F2).
git checkout master
git checkout -b F1
# work work
git commit -a
arc diff
anonymous / gist:4567542
Created Jan 18, 2013
Reads a random Urban Dictionary Definition (Must be run from a Mac OS X Terminal)
View gist:4567542
curl -L | awk '$0 ~ /(<title>)|(\<div class\=\"definition\"\>)/{print}' | sed -e 's#<[^>]*>##g' | sed 's/Urban Dictionary\:\(.*\)/\1\, Definition:/' | say
qtproduction /
Created Sep 26, 2012
Retrive website from Google Cache without blocking IP
#Retrive old website from Google Cache. Optimized with sleep time, and avoid 504 error (Google block Ip send many request).
#Programmer: Kien Nguyen - QTPros
#change search_site and search_term to match your requirement
import urllib, urllib2
import re
import socket
brandonb927 /
Last active Oct 7, 2020
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see
# Alot of these configs have been taken from the various places
# on the web, most from here
pec1985 / customnav.js
Created Jun 22, 2011
Custom Navigation Controller, compatible with Android and iPhone
View customnav.js
// Flags, is this for Android or iPhone?
var iPhone = false;
var Android = false;
if(Ti.Platform.osname == 'iphone'){
iPhone = true
if(Ti.Platform.osname == 'android'){
Android = true
aurels / gist:843967
Created Feb 25, 2011
stream system command output to STDOUT (ruby)
View gist:843967
IO.popen('ant run') do |io|
while (line = io.gets) do
puts line
You can’t perform that action at this time.