This file contains 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
./cassandra-stress read n=100000 -node 192.168.1.50 | |
Warming up READ with 50000 iterations... | |
Failed to connect over JMX; not collecting these stats | |
INFO 18:41:53 Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) | |
Connected to cluster: Edison Cluster | |
INFO 18:41:53 New Cassandra host /192.168.1.50:9042 added | |
Datatacenter: datacenter1; Host: /192.168.1.50; Rack: rack1 | |
Sleeping 2s... | |
Running with 4 threadCount | |
Running READ with 4 threads for 100000 iteration |
This file contains 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 ( | |
"bufio" | |
"github.com/gocql/gocql" | |
"log" | |
"os" | |
"regexp" | |
) |
This file contains 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 'formula' | |
class Opencv < Formula | |
homepage 'http://opencv.org/' | |
url 'http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.2/OpenCV-2.4.2.tar.bz2' | |
sha1 '96ff27b87e0f028d1d16201afebabec4e0c72367' | |
env :std # to find python | |
option '32-bit' |
This file contains 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
#!/bin/bash | |
ffmpeg -i ./quick_tips_1280x720.mp4 -c copy -map 0 -vbsf h264_mp4toannexb -f segment -segment_time 5 -segment_list quick_tips.m3u8 -segment_format mpegts quick_tips_hd%06d.ts |
This file contains 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
alias be="bundle exec" | |
alias te="RAILS_ENV=test bundle exec" | |
alias sr="redis-server /usr/local/etc/redis.conf" |
This file contains 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
#!/bin/bash | |
# Load RVM into a shell session *as a function* | |
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then | |
# First try to load from a user install | |
source "$HOME/.rvm/scripts/rvm" | |
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then | |
# Then try to load from a root install | |
source "/usr/local/rvm/scripts/rvm" | |
else |
This file contains 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
{ | |
"name": "dbox-poller", | |
"version": "0.0.1", | |
"dependencies": { | |
"dbox": "0.4.1", | |
"coffee-script": "1.3.1", | |
"mongodb": "1.0.0", | |
"mongoose": "2.6.0", | |
"bson": "0.0.7" | |
}, |
This file contains 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 'https://rubygems.org' | |
# Note this was running on a Fedora 16 box | |
gem 'ruby-inotify' | |
gem 'guard' | |
gem 'activerecord' | |
gem 'mysql2' |
This file contains 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
/*----------------------------------------------------- | |
960 Grid System ~ Core CSS. | |
Learn more ~ http://960.gs/ | |
Licensed under GPL and MIT. | |
-------------------------------------------------------*/ | |
/* Grid Settings | |
---------------------------*/ | |
// 12-column grid |
This file contains 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 'rake' | |
require 'erb' | |
desc 'Builds manifest.js files for models, and collections.' | |
task :build_class_manifests do | |
STDOUT.sync = true | |
# Build Class Manifests First | |
classes = ['initializers', 'config', 'models', 'collections'] | |