Skip to content

Instantly share code, notes, and snippets.

View tisba's full-sized avatar
🚀
Perf Testing all the Things!

Sebastian Cohnen tisba

🚀
Perf Testing all the Things!
View GitHub Profile
[2011-01-21 10:32:38] make
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -I. -I.ext/include/x86_64-darwin10.6.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o main.o -c main.c
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -I. -I.ext/include/x86_64-darwin10.6.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o dln.o -c dln.c
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -I. -I.ext/include/x86_64-darwin10.6.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o dmydln.o -c dmydln.c
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwri
brew install io
/usr/local/bin/git
==> Cloning git://github.com/stevedekorte/io.git
Cloning into /Users/basti/Library/Caches/Homebrew/io--git...
remote: Counting objects: 5525, done.
remote: Compressing objects: 100% (3889/3889), done.
remote: Total 5525 (delta 1627), reused 3906 (delta 1008)
Receiving objects: 100% (5525/5525), 12.46 MiB | 553 KiB/s, done.
Resolving deltas: 100% (1627/1627), done.
==> Downloading patches
[live;Overview]
total_bandwidth.graph_args --base 1000 -l 0
total_bandwidth.cdef 0
total_bandwidth.graph_category network
total_bandwidth.graph_title Aggregated Network Traffic
total_bandwidth.graph_vlabel bits/s
total_bandwidth.upload.label upload
total_bandwidth.upload.sum ip-A-B-C-D=ip-A-B-C-D.eu-west-1.compute.internal:if_eth0.up ip-E-F-G-H=ip-E-F-G-H.eu-west-1.compute.internal:if_eth0.up
total_bandwidth.upload.type COUNTER
total_bandwidth.download.type COUNTER
@tisba
tisba / aws-cfn-tools.patch
Created June 6, 2011 10:25
aws-cfn-tools 1.0.6 -> 1.0.7
diff --git a/Library/Formula/aws-cfn-tools.rb b/Library/Formula/aws-cfn-tools.rb
index 9f58fb7..a6e81c6 100644
--- a/Library/Formula/aws-cfn-tools.rb
+++ b/Library/Formula/aws-cfn-tools.rb
@@ -6,8 +6,8 @@ require "#{File.dirname __FILE__}/ec2-api-tools.rb"
class AwsCfnTools <AmazonWebServicesFormula
homepage 'http://aws.amazon.com/developertools/AWS-CloudFormation/2555753788650372'
url 'https://s3.amazonaws.com/cloudformation-cli/AWSCloudFormation-cli.zip'
- version '1.0.6'
- md5 'f3bff05e8e5e1a169e5f247077583b6e'
@tisba
tisba / yaml-check.rb
Created July 19, 2011 09:15
Check YML locales
require "YAML"
Dir["**/*yml"].each do |file|
begin
YAML.load_file(File.join(File.dirname(__FILE__), file))
rescue Exception => e
puts "Error in #{file}:"
p e
end
end
-module (test).
-export([start/0]).
start() ->
{ok, Pid} = riakc_pb_socket:start_link("127.0.0.1", 8087),
pong = riakc_pb_socket:ping(Pid),
{ok, _} = riakc_pb_socket:mapred(Pid,
[<<"sc">>],
[
{map, {modfun, riak_kv_mapreduce, map_object_value}, none, false},
#!/usr/bin/env bash
RVM_RUBY_NAME=`rvm current`
RUBY_VERSION='ruby-1.9.3-p125'
curl --location -O http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
curl --location -O http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
gem install linecache19-0.5.13.gem
gem install ruby-debug-base19-0.11.26.gem -- \
@tisba
tisba / avocadodb.rb
Created April 17, 2012 16:33
brew formula for AvocadoDB
require 'formula'
class Avocadodb < Formula
url "https://github.com/triAGENS/AvocadoDB/zipball/v0.3.11"
head "https://github.com/triAGENS/AvocadoDB.git"
homepage 'http://www.avocadodb.org/'
sha1 '5189d501e8e8eed540acf7997be31dfc38315409'
depends_on 'libev'
var interval = 1000 / parseInt(process.argv[2], 10);
var counter = 0;
setInterval(function() {
counter++;
}, interval);
setInterval(function() {
console.log(counter);
counter = 0;
@tisba
tisba / a.md
Created June 29, 2012 08:09 — forked from rkh/a.md

This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:

  • Netflix
  • Hulu / HuluPlus
  • CBS
  • ABC
  • MTV
  • theWB
  • CW TV
  • Crackle