Skip to content

Instantly share code, notes, and snippets.

# Lighter -- Campfire from the command line
# usage: ruby lighter.rb
require "rubygems"
require "tinder"
require "readline"
require "highline/import"
TOKEN="XXX"
SUBDOMAIN="XXX"
ROOM="XXX"
1 Author: Casey Speer <[email protected]>
1 Author: Mark Erdmann <[email protected]>
2 Author: Brian P O'Rourke <[email protected]>
2 Author: lukas Biewald <[email protected]>
3 Author: John <john@john-lap.(none)>
4 Author: Howie <[email protected]>
17 Author: Chris Van Pelt <[email protected]>
28 Author: Tyson Tate <[email protected]>
Setting up chef-server-webui (0.8.14-1) ...
sed: file /tmp/tmp.MDGihUcFdX/tmp.DJDuHWdZlh line 1: unknown option to `s'
dpkg: error processing chef-server-webui (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
chef-server-webui
E: Sub-process /usr/bin/dpkg returned an error code (1)
:syntax on
:autocmd FileType * set formatoptions=tcql ts=4 sw=2 nocindent comments&
:autocmd FileType c,cpp set formatoptions=croql ts=4 sw=4 cindent comments=sr:/*,mb:*,ex:*/,://
:autocmd FileType java set formatoptions=croql ts=4 sw=4 cindent comments=sr:/*,mb:*,ex:*/,://
:autocmd FileType make set noexpandtab
" Rackup files are Ruby
:autocmd BufRead,BufNewFile *.ru set sw=4 sts=4 et si ft=ruby nocompatible
" For Viki
:autocmd BufNewFile,BufRead *.viki set ft=viki nocompatible
require 'resque_scheduler'
module Resque
module Failure
##
# Support for automatically retrying jobs after the fashion of
# Delayed::Job.
class AutoRetry < Base
extend Helpers
Please create a mixin which adds 'send_later' support to objects of the class it's included on.
Async#send_later( :method, *args )
Calling `send_later` on an object with the Async ducktype should cause the message to be executed asynchronously.
Your implementation should not rely on anything other than the Ruby standard library.
@bpo
bpo / job.md
Created January 18, 2010 20:32 — forked from tysonmote/job.md

#Backend engineer

Dolores Labs is funded, growing, and, frankly, where the action is at in San Francisco. However, we have a bit of a problem: Ruby doesn't scale. We need someone to rewrite our entire application in Java. JUST KIDDING. But our system and user base have both been growing by leaps and bounds. We need a creative, smart and resourceful engineer to help our systems meet the growing demands of our users.

##Skills that are a must

Startup: You're able to learn quickly, design creative solutions, and work independently.

People: We have an API which is used by many clients and customers. In addition to building and improving this API, you'll help our customers understand and use it in ways that support their business.

#! /usr/bin/env ruby -w
o = ['!','@','#','$','%','&','*',(0..9),('a'..'z'),('A'..'Z')].map{|i| i.to_a}.flatten;
puts (0..50).map{ o[rand(o.length)] }.join;
# vim: sw=4 sts=4 et si filetype=gitconfig
[user]
name = Brian P O'Rourke
email = [email protected]
[color]
status = auto
diff = auto
branch = auto
interactive = auto
# /bin/bash
# Initialize a new completely empty branch.
if [ $# -lt 1 ]; then
echo "Usage: $0 <NEW_BRANCH>"
exit 1
fi
if [ -a $1 ]; then
echo "Error: file $1 exists locally."