Skip to content

Instantly share code, notes, and snippets.

Butts.send :butt=>'fart'
100.times {puts <<EOF
___ ___ ___ ___ ___ ___ ___
/ / / / | / / / / / / / / / /
/__/ /__/ |/ / /__ /__/ / / / /__ /__
/ | / \ / / / / \ / / / / /
/__/ / \ / /___ /___ / \ /__/ /__ /___ ___/
EOF
}
puts <<EOF
require 'spec_helper'
describe GroupsController do
include SessionTestHelper
describe "GET 'show'" do
it "should load the group from the database" do
@the_group = Factory(:group)
Group.stub(:find_active_by_unique_name).with("london-developers").
and_return(@the_group)
#include <stdlib.h>
#define BLOCKS 8192
#define BLOCKSIZE 8192
int main() {
int* blocks[BLOCKS];
int i;
for (i=0;i<BLOCKS;i++) {
blocks[i] = (int*)calloc(BLOCKSIZE,sizeof(int));

THE CANONICAL LIST OF HIPSTER-APPROVED JOBS

  1. Professional blogger or "web producer"
  2. Barista
  3. Bicycle messenger
  4. Baker
  5. Freelance photographer
  6. Unemployed
proc twitgrep q {
set page [wget http://search.twitter.com/search.atom?q=$q];
set titles [regexp -all -inline {<title>(.*?)</title>} $page];
set names [regexp -all -inline {<uri>(.*?)</uri>} $page];
set i 3;
set j 1;
set x "cocks";
while {$x ne ""} {
set x [lindex $titles $i];
set n [lindex $names $j];
@bkerley
bkerley / find_matches.json
Created February 19, 2015 01:30
kibana queries
{
"query": {
"filtered": {
"query": {
"bool": {
"should": [
{
"query_string": {
"query": "kibana.dev"
}
@bkerley
bkerley / .gitignore
Last active May 8, 2019 03:06
cxx_goofin
main.dSYM
main
@bkerley
bkerley / ecc.rb
Created June 29, 2011 21:42
ruby ECDSA fun time
# derived from http://h2np.net/tips/wiki/index.php?RubyOpenSSLDigitalSignatureSample
require 'openssl'
require 'base64'
include OpenSSL
group_name = 'secp521r1'
message = '10000 fartbux sent to bryce from a can of beans'
key = PKey::EC.new(group_name)
key = key.generate_key
require 'spec_helper'
describe GroupsController do
include SessionTestHelper
describe "GET 'show'" do
it "should load the group from the database" do
@the_group = Factory(:group)
Group.stub(:find_active_by_unique_name).with("london-developers").
and_return(@the_group)
  • 80 grams (about 1 cup whole beans) coffee
  • 2 cups room temperature water

Makes about 3 iced-coffee

  1. Grind beans coarsely, I used one setting below the coarsest. Mix water and coffee into a container, cover, and let sit for 10 hours.
  2. After, filter the brewed coffee as best you can. The result will be strong, too strong to drink. I suggest diluting with 0.5:1.0 water to brew.
  3. Pour over ice, or, heat.