Skip to content

Instantly share code, notes, and snippets.

View richo's full-sized avatar

richö butts richo

View GitHub Profile
{
"settings": {
"notify": "#builds"
},
"usernames": {
"richo": "RichoHealey",
"creativej": "JamisonLu",
"joshamos": "JoshAmos",
"mtibben": "MichaelTibben",
def decorator(fn):
def _(arg1, arg2):
fn(arg2, arg1)
@decorator
def puts(*args):
print " ".join(args)
puts("world!", "Hello)") # > "Hello world!"
<?PHP
function break_everything()
{
try {
explodinate();
}
catch (Exception $e)
{
$msg = $e->getMessage() . "\nConnecting to ";
#!/bin/sh
set -x
sudo mkdir ~/.ssh
sudo chown -R `whoami` ~/.ssh
chmod 700 ~/.ssh
if [ ! -f .ssh/id_rsa ]; then
ssh-keygen -b 4096 -N "" -f ~/.ssh/id_rsa
fi
#!/usr/bin/env ruby
#
require 'fog'
$access_key=""
$secret_key=""
def connection
@connection ||= Fog::Compute.new({
:provider => 'AWS',
dep "pear.bin" do
on(:ubuntu) do
requires "pear.managed"
on(:osx) do
requires "php53.brew"
end
end
dep "php53.brew" do
requires "brew tapped".with("homebrew/dupes")
/*
* prime.c
*
* Created on: Oct 21, 2012
* Author: emma
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
met {
installed = `pip freeze`.chomp.lines
required = File.read('requirements.txt').lines
required.map do |req|
installed.include? req
end.all?
}
/Users/richo/.rvm/rubies/ruby-1.9.3-p286/bin/ruby -S rspec spec/build_callback_spec.rb spec/build_environment_spec.rb spec/build_process_spec.rb spec/build_queue_spec.rb spec/juici_app_spec.rb
*....../Volumes/Code/code/ext/juici/lib/juici/build_logic.rb:23: [BUG] Segmentation fault
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin12.2.0]
-- Control frame information -----------------------------------------------
c:0030 p:---- s:0112 b:0112 l:000111 d:000111 CFUNC :sigprocmask
c:0029 p:0093 s:0107 b:0107 l:000106 d:000106 METHOD /Volumes/Code/code/ext/juici/lib/juici/build_logic.rb:23
c:0028 p:0059 s:0101 b:0101 l:000100 d:000100 METHOD /Volumes/Code/code/ext/juici/lib/juici/build_logic.rb:8
c:0027 p:0021 s:0098 b:0098 l:000097 d:000097 METHOD /Volumes/Code/code/ext/juici/lib/juici/models/build.rb:71
c:0026 p:0011 s:0094 b:0094 l:000084 d:000093 BLOCK /Volumes/Code/code/ext/juici/lib/juici/build_queue.rb:52
def method_missing(*args)
args.map(&:to_s).join(" ")
end
puts ruby has bare words