Skip to content

Instantly share code, notes, and snippets.

View jessejlt's full-sized avatar

Jesse Thompson jessejlt

View GitHub Profile
@akurkin
akurkin / common.yml
Last active March 10, 2017 13:24
ROSI docker-compose.yml
#
# Shared definition of ruby microservice
#
microservice:
command: "runsvdir /etc/service"
environment:
PORT: 3000
RAILS_ENV: development
SERVICE_PLATFORM: "mia"
ports:
@turadg
turadg / Send Chrome to OmniFocus.scpt
Created September 24, 2011 22:43
OmniFocus integrations
-- based on post by iNik: http://forums.omnigroup.com/showthread.php?p=101947#post101947
global theTitle, theTaskNote
set theTaskNote to ""
tell application "Google Chrome"
-- activate
tell window 1 to tell active tab
@dirkk0
dirkk0 / doit.sh
Created July 12, 2013 09:57
Installing Cloud9 on Amazon EC2 (revisted, Cloud9 v0.7)
sudo apt-get update
# get ec2 ip and hostname
sudo apt-get install -y build-essential g++ libssl-dev apache2-utils git libxml2-dev screen
#install node
git clone https://github.com/joyent/node.git
# git checkout v0.10.13 did work once, but I couldn't work again, so I fell back to 0.8
#compilation takes over 30 minutes on a t1.micro

build

Clone and build Node for analysis:

$ git clone https://github.com/joyent/node.git
$ cd node
$ export GYP_DEFINES="v8_enable_disassembler=1"
$ ./configure
$ make -j4
@terrafied
terrafied / rmb.sh
Created January 15, 2012 21:22
Remove merged branches from a git repo
#!/bin/bash
# From: http://snippets.freerobby.com/post/491644841/remove-merged-branches-in-git
current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
if [ "$current_branch" != "master" ]; then
echo "WARNING: You are on branch $current_branch, NOT master."
fi
echo "Fetching merged branches..."
git remote prune origin
remote_branches=$(git branch -r --merged | grep -v '/master$' | grep -v "/$current_branch$")