Skip to content

Instantly share code, notes, and snippets.

View randysecrist's full-sized avatar

Randy Secrist randysecrist

View GitHub Profile
@rustyio
rustyio / gproc_tests.erl
Created September 16, 2009 13:16
gproc_tests.erl
-module(gproc_tests).
-compile(export_all).
-include_lib("stdlib/include/qlc.hrl").
go() -> make:all([load]).
register_stuff() ->
gproc:reg({n, l, key1}, value1),
gproc:reg({n, l, key2}, value2),
gproc:reg({n, l, key3}, value3),
@mirakui
mirakui / imlib2_magick_benchmark2.rb
Created July 24, 2010 04:29
Benchmark Imlib2 vs ImageMagick
require "rubygems"
require "benchmark"
require "imlib2"
N = (ARGV.shift || 1).to_i
def bench(title)
puts "\nBenchmark: #{title} (#{N} times)"
Benchmark.bm(7, ">total:", ">avg:") do |bm|
@protocool
protocool / caveatPatchor.js
Created February 14, 2011 02:29
Sample caveatPatchor.js file for use in Propane 1.1.2 and above
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
@travisbhartwell
travisbhartwell / gist:967137
Created May 11, 2011 19:31
Amazing Quote
Amazing quote that sums up why I love software development:
-----
Programming is a science dressed up as art, because most of us don't
understand the physics of software, and it's rarely if ever
taught. The physics of software is not algorithms, data structures,
languages and abstractions. These are just tools we make, use, throw
away. The real physics of software is the physics of people.
@fairchild
fairchild / install_euca_tools.sh
Created August 9, 2011 04:14
script to install euca-tools 1.3.1 from source, tested on a mac
export VERSION="1.3.1"
export WORKING_DIR=~/Downloads/euca2install
mkdir -p ${WORKING_DIR}
cd ${WORKING_DIR}
wget http://open.eucalyptus.com/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://eucalyptussoftware.com/downloads/releases/euca2ools-${VERSION}-src-deps.tar.gz
tar -zxvf euca2ools-${VERSION}-src-deps.tar.gz
cd euca2ools-${VERSION}-src-deps
tar -zxvf boto-1.9b.tar.gz
cd boto-1.9b
@travisbhartwell
travisbhartwell / gist:1257132
Created October 2, 2011 06:12
Python Script to download October 2011 General Conference Archives
#!/usr/bin/python
"""
This is a handy script to download the media from General Conference
for your own use. Modify the options below, starting with DOWNLOAD_
to download the files you wish.
The only non-Python standard library dependency is BeautifulSoup.
"""
@gburd
gburd / haproxy.conf
Last active July 5, 2022 13:34
Recommended haproxy settings to balance Riak protobuf and http interfaces (note: WORK IN PROGRESS)
# Documentation for HAProxy
# http://code.google.com/p/haproxy-docs/w/list
# http://haproxy.1wt.eu/download/1.2/doc/architecture.txt
# NOTES:
# open files limits need to be > 256000, use ulimit -n to set (on most POSIX systems)
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
@scizo
scizo / Gemfile
Created January 25, 2012 01:53
AMQP Demo
source :rubygems
gem 'bunny'
gem 'json'
@seancribbs
seancribbs / jruby-1.7.2.txt
Last active December 15, 2015 00:29 — forked from bkerley/Gemfile
storing 10000 objects
done storing
Rehearsal ----------------------------------------------
individual 3.170000 0.250000 3.420000 ( 8.162000)
threaded/2 4.780000 0.350000 5.130000 ( 5.546000)
threaded/4 5.220000 0.410000 5.630000 ( 3.777000)
threaded/8 5.210000 0.430000 5.640000 ( 3.187000)
------------------------------------ total: 19.820000sec
user system total real
@kenrett
kenrett / Selenium Cheat Sheet.md
Last active May 25, 2023 01:28
Selenium Cheat Sheet - Ruby

#Getting Started

##Webpage:

<html>
<head>
    <title>Testing with Ruby and Selenium WebDriver</title>
</head>
 
<body bgcolor="antiquewhite">