Skip to content

Instantly share code, notes, and snippets.

View lance's full-sized avatar
🎯
Focusing

Lance Ball lance

🎯
Focusing
View GitHub Profile
21:01 bobmcw: git fetch origin
21:01 bobmcw: git rebase origin/master
21:01 bobmcw: # test
21:01 bobmcw: git push origin master
21:01 bobmcw: avoids a merge commit
21:02 tcrawley: or add an alias to ~/.gitconfig: frebase = !git fetch && git rebase origin
0:50 bobmcw: and wanted to test-build an appliance, but it didn't check my local RPM builds
10:50 bobmcw: so I had to scp to repository.boxgrinder.org and createrepo
10:50 bobmcw: is there some --local-rpms flag to use locally-produced RPMs during early dev cycle?
10:50 bobmcw: I know I could add a file:/// repo to my appl
10:50 bobmcw: but that seemed ugly
10:50 mgoldmann: bobmcw: some kind of
10:51 mgoldmann: yes, this is the way, + mark it as ephemeral repo
10:51 bobmcw: "mark as emphemeral repo" ?
10:51 mgoldmann: yes, it's ugly, you don't want to check in this to the repo
10:51 mgoldmann: ephemeral: true
@goldmann
goldmann / gist:651548
Created October 28, 2010 15:12
Ephemeral storage on EC2 instances running Fedora 13+
t1.micro:
Nothing
m1.small:
/dev/xvda3: 1GB
/dev/xvdb: 160GB
c1.medium:
@lance
lance / steamcannon-amis.txt
Created November 16, 2010 23:17
SteamCannon 1.2 AMIs
frontend-64 1.2.final: 0606f16f
frontend-32: 1.2.final: 6e05f207
appserver-64 1.2.final: ec06f185
appserver-32: 1.2.final: 7005f219
postgresql-64 1.2.final: ee06f187
postgresql-32: 1.2.final: 4c05f225
developer-standalone-64 1.2.final: f206f19b
Quicksort
=========
I happened across a big pile of stuff
And decided that it should be sorted.
The time I could spend was hardly enough,
Any more time could not be afforded.
I picked up a thing, at random, I'm sure,
And to each of the rest I compared it.
I made two more piles of stuff, as it were:
@lance
lance / config.ru
Created May 10, 2011 19:37
A Very Simple Sinatra App With TorqueBox
require 'rubygems'
require 'sinatra'
module Simple
class Application < Sinatra::Base
get '/' do
"Hello! TorqueBox says it's #{Time.now}."
end
end
end
@lance
lance / gist:967267
Created May 11, 2011 20:28
Go The Fuck To Sleep
The cats nestle close to their kittens now.
The lambs have laid down with the sheep.
You’re cozy and warm in your bed, my dear.
Please go the fuck to sleep.
The windows are dark in the town, child.
The whales huddle down in the deep.
I’ll read you one very last book if you swear
You’ll go the fuck to sleep.
@jm
jm / gist:1146838
Created August 15, 2011 14:15
Hoedown 2011 Schedule
RUBY HOEDOWN 2011
Day 1
-----
8:00 - Registration opens
9:00 - Kickoff with The Improv Effect
10:00 - TorqueBox: A True Application Server for Ruby
@lance
lance / .java.env.sh
Created March 15, 2012 22:04
Java version switcher
# Props to qmx and abstractj for the inspiration
#
# Put this file in your home directory and these lines to .profile
# if [[ -f "$HOME/.java.env" ]]; then
# source "$HOME/.java.env";
# fi
VERSION=$1
if [ ! -n "$VERSION" ]
@lance
lance / vpn_toggle.scpt
Created May 29, 2012 12:08
Toggle VPN
tell application "System Events"
tell current location of network preferences
set VPNservice to service "NAME OF YOUR VPN"
if exists VPNservice then set isConnected to connected of current configuration of VPNservice
if isConnected is false then
connect VPNservice
else
disconnect VPNservice