This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
gem 'bunny' | |
gem 'json' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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), |
NewerOlder