- Maven (2 or 3) - http://maven.apache.org
- Java (Sun JDK recommended): http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html. Make sure that you export the
JAVA_HOME
environment variable. - Gcc and friends (or XCode package for Mac OS X).
- git (only from developing from source)
- python > 2.6
- lzo - only needed for LZO compression inside Hadoop and HBase
- A java IDE, or VIM :)
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
# ~/.tmux.conf | |
# | |
# See the following files: | |
# | |
# /opt/local/share/doc/tmux/t-williams.conf | |
# /opt/local/share/doc/tmux/screen-keys.conf | |
# /opt/local/share/doc/tmux/vim-keys.conf | |
# | |
# URLs to read: | |
# |
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
#include <stdio.h> | |
typedef enum _endian {little_endian, big_endian} EndianType; | |
EndianType CheckCPUEndian() { | |
unsigned short x; | |
unsigned char c; | |
EndianType CPUEndian; | |
x = 0x0001;; | |
c = *(unsigned char *)(&x); | |
if( c == 0x01 ) |
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
package main | |
import ( | |
"sdl" | |
"math" | |
"time" | |
"rand" | |
"flag" | |
"fmt" | |
) |
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
wget http://archive.apache.org/dist/incubator/thrift/0.5.0-incubating/thrift-0.5.0.tar.gz | |
tar zxf thrift-0.5.0.tar.gz | |
pushd thrift-0.5.0 | |
./configure && make && make install | |
pushd lib/py | |
sudo python setup.py install | |
popd | |
echo "Done. To install extra language libraries, come back here and do it by hand" | |
popd |
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
package sync | |
import ( | |
"sync" | |
"sync/atomic" | |
) | |
type nullLocker struct {} | |
func (n *nullLocker) Lock() {} |
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
#include <stdio.h> | |
#define CONFIG_FOO 1 | |
#define CONFIG_NOO 0 | |
#define is_set(macro) is_set_(macro) | |
#define macrotest_1 , | |
#define is_set_(value) is_set__(macrotest_##value) | |
#define is_set__(comma) is_set___(comma 1, 0) | |
#define is_set___(_, v, ...) v |
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
wget http://mirrors.hostingromania.ro/apache.org/thrift/0.8.0/thrift-0.8.0.tar.gz | |
tar zxf thrift-0.8.0.tar.gz | |
pushd thrift-0.8.0 | |
wget https://issues.apache.org/jira/secure/attachment/12511532/thrift-1465_1.patch | |
patch -p0 < thrift-1465_1.patch | |
./configure --without-erlang --without-haskell --without-ocaml && make && make install | |
pushd lib/py | |
sudo python setup.py install | |
popd | |
echo "Done. To install extra language libraries, come back here and do it by hand" |
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
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns | |
Compress 1K bytes with Zippy 3,000 ns 3 µs | |
Send 2K bytes over 1 Gbps network 20,000 ns 20 µs | |
Read 1 MB sequentially from memory 250,000 ns 250 µs | |
Round trip within same datacenter 500,000 ns 0.5 ms | |
Disk seek 10,000,000 ns 10 ms |
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
Started GET "/dashboard" for 127.0.0.1 at Fri Jun 15 16:00:51 -0700 2012 | |
Processing by DashboardController#index as HTML | |
User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 | |
Project Load (0.5ms) SELECT "projects".* FROM "projects" | |
Project Load (2.5ms) SELECT "projects".* FROM "projects" INNER JOIN "project_revisions" ON "project_revisions"."project_id" = "projects"."id" INNER JOIN "reviews" ON "reviews"."project_revision_id" = "project_revisions"."id" WHERE "projects"."user_id" = 2 GROUP BY projects.id, projects.user_id, projects.created_at, projects.updated_at, projects.private, projects.slots, projects.title, projects.description | |
Rendered dashboard/_submitter.html.erb (213.0ms) | |
Project Load (0.4ms) SELECT "projects".* FROM "projects" INNER JOIN "project_revisions" ON "project_revisions"."project_id" = "projects"."id" INNER JOIN "reviews" ON "reviews"."project_revision_id" = "project_revisions"."id" WHERE "reviews"."user_id" = 2 | |
Project Load (1.0ms) SELECT projects |