Skip to content

Instantly share code, notes, and snippets.

backtick 10 3600 3600 status
# backtick 11 300 300 prod_db_load
caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= %10` - %l - %LD %d %LM - %c"
# bound to 'home' on kinesis
escape ^Zz
bind b eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'"
defscrollback 5000
bind s split
@bpo
bpo / gist:1552606
Created January 2, 2012 23:28
keepalive
#! /bin/bash
#
# # keepalive #
#
# Keeps your processes running - handy quick-restart for services.
#
# USAGE:
#
# Run a server with:
#
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (Darwin)
mQGiBEnzy8IRBACRuhmgUKgKS4qsjmIvx5eAtLvSauMHv2sr99bU/ep9jbg1jeEI
G4gtChEtrE1Uy9pB1e6cupmLT0vrn8ZM6Xo9u8ntmsLH6aHpzznCl6uKn8p4pUOa
nMYuVpetdAMScPqwKjLjc0nM/93K3d3rLWwV1Vbs48M8yySvjWPpZprrdwCgk35r
vw2+jyieO5eT71nx5zJFps8D/ifMdOpTgSRYuVSrSPpdukblJRkZpNsStCdfRoPC
jqjduUzoomq78FpHRNJIkCRcVADm0k5bVbjOTIqKR2IXbwMeVjogxRewgpsVq+Ut
BNe943fy6SR5yaFAardUaC0C1CfFqp3vHjaPIgB2zLi+OVoYhHZTvwTSIEMY/vvf
GobCBACOgpLqPq/9bzf9GRDNo4teP26h8QPlk3fnqjvU1ToXWAKLGZTqVqRwKmLy
@bpo
bpo / patch.rb
Created September 8, 2011 10:37
sorted simpledb select support (ruby 1.8)
module Fog
module Parsers
module AWS
module SimpleDB
class Select < Fog::Parsers::AWS::SimpleDB::Basic
class ItemEnumeration
include Enumerable
attr_writer :response
# generate a bunch of files filled with 0x55 for postgres
ruby -e '0x005F.upto(0x0108) {|x| `dd bs=1k count=256 if=/dev/zero | tr '\000' U > #{"%04X" % x}` }'
@bpo
bpo / screenrc
Created January 20, 2011 21:51
send screen data to osx clipboard
bind b eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'"
WARN: *****WARN:WARN: You must place your validation key in:WARN: /etc/chef/validation.pem
WARN: Before generating instance data with Knife!WARN:
WARN: *****
@bpo
bpo / gist:709210
Created November 21, 2010 22:17
detaching from tty?
vagrant@vagrantup:~$ cat test.sh
#! /bin/bash
sleep 20
vagrant@vagrantup:~$ ./test.sh &
[1] 10488
vagrant@vagrantup:~$ disown 10488
vagrant@vagrantup:~$ ps -a
PID TTY TIME CMD
10488 pts/0 00:00:00 test.sh
10489 pts/0 00:00:00 sleep
We're interested to see how you perform under pressure - so try to get through as many as you can. That said, this is not a strict pass/fail test, and we're more interested in good solutions than fast ones.
Instructions:
# ssh to `purgatory.doloreslabs.com` using the identity provided to you in-person. Your username is `virgil` - you have full sudo power.
# Copy the contents of this gist into a new *private* gist of your own. Add your answers and notes inline to your new gist.
# Don't worry about messing up our machine - this is a game.
# Feel free to use the web or anything else as a reference.
# Please take notes - we're interested in what you tried as much as what you did.
# You have 90 minutes - complete as many of the following as you can, in any order.
# This is a sample git configuration file for using git with TextMate.
#
# Simply save the contents of this file in a file called .gitconfig
# in your HOME directory.
#
# Be sure to change your name, email, and github username.
# Everything else can remain the same.
#
[user]