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
class CurlAdapter | |
class Response | |
attr_reader :http_response_code | |
attr_reader :time_total | |
def initialize(http_response_code, time_total) | |
@http_response_code = http_response_code | |
@time_total = time_total | |
end |
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
\documentclass{article} | |
\usepackage{listings} | |
\begin{document} | |
\lstinputlisting[numbers=left,firstline=4,lastline=6]{sandbox.tex} | |
\end{document} | |
% this gives me smth like that: | |
% | |
% |
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
{~} I brew uninstall gawk | |
Uninstalling /usr/local/Cellar/gawk/3.1.7... | |
{~} I brew install spidermonkey -vd | |
==> Build Environment | |
PATH: /usr/local/Cellar/autoconf213/2.13/bin:/usr/local/Cellar/readline/6.0/bin:/usr/local/Cellar/autoconf213/2.13/bin:/usr/local/Cellar/readline/6.0/bin:/usr/local/sbin:/usr/local/bin:/Applications/sshfs/bin/:/Users/basti/.gem/bin:/Users/basti/.gem/ruby/1.8/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin:/Users/basti/.ec2/bin | |
CFLAGS: -O4 -march=core2 -mmmx -msse4.1 -w -pipe | |
LDFLAGS: -L/usr/local/Cellar/autoconf213/2.13/lib -L/usr/local/Cellar/readline/6.0/lib -L/usr/local/Cellar/autoconf213/2.13/lib -L/usr/local/Cellar/readline/6.0/lib | |
CPPFLAGS: -I/usr/local/Cellar/autoconf213/2.13/include -I/usr/local/Cellar/readline/6.0/include -I/usr/local/Cellar/autoconf213/2.13/include -I/usr/local/Cellar/readline/6.0/include | |
MAKEFLAGS: -j2 | |
CC: /Developer/usr/bin/llvm-gcc |
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 "rubygems" | |
require "active_support/core_ext" | |
require "curb" | |
require "yajl" | |
class CouchDBChanges | |
def self.consume(database_url, opts={}, &block) | |
opts = {:feed => :continuous}.merge(opts) |
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
diff --git a/riak-client/lib/riak/client.rb b/riak-client/lib/riak/client.rb | |
index 127c2c8..be94f75 100644 | |
--- a/riak-client/lib/riak/client.rb | |
+++ b/riak-client/lib/riak/client.rb | |
@@ -35,6 +35,9 @@ module Riak | |
# @return [Fixnum] The port of the Riak HTTP endpoint | |
attr_reader :port | |
+ # @return [Array] of Riak HTTP endpoint hashes each consisting of :host and :port | |
+ attr_accessor :backends |
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
diff --git a/bin/pillow.tpl.in b/bin/pillow.tpl.in | |
index bc0bdfb..bfb9408 100755 | |
--- a/bin/pillow.tpl.in | |
+++ b/bin/pillow.tpl.in | |
@@ -214,7 +214,7 @@ start_pillow () { | |
touch $PID_FILE | |
interactive_option="+Bd -noinput" | |
fi | |
- command="/usr/bin/erl -sname pillow $interactive_option -boot start_sasl +K true \ | |
+ command="%ERL%/erl -sname pillow $interactive_option -boot start_sasl +K true \ |
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
#!/usr/bin/env bash | |
# where do you want couchdb and its deps to be installed | |
COUCHDB_PREFIX="/opt/couchdb-1.0.1" | |
# Let's determine the correct arcitecture and choose the installer | |
if [ "`uname -m`" = "x86_64" ]; then | |
echo "Using 64-bit installer" | |
COUCHDB_INSTALLER_DOC_ID="26f246a0fe23d6a53d5326713308f43c" | |
COUCHDB_INSTALLER_BIN="install-couchdb-1.0.1_rel1-linux-x64.bin" |
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
# stolen from http://github.com/cschneid/irclogger/blob/master/lib/partials.rb | |
# and made a lot more robust by me | |
# this implementation uses erb by default. if you want to use any other template mechanism | |
# then replace `erb` on line 13 and line 17 with `haml` or whatever | |
module Sinatra::Partials | |
def partial(template, *args) | |
template_array = template.to_s.split('/') | |
template = template_array[0..-2].join('/') + "/_#{template_array[-1]}" | |
options = args.last.is_a?(Hash) ? args.pop : {} | |
options.merge!(:layout => false) |
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
#!/usr/bin/env bash | |
# add partner sources | |
echo -e "deb http://archive.canonical.com/ubuntu lucid partner \n\ | |
deb-src http://archive.canonical.com/ubuntu lucid partner" >> /etc/apt/sources.list | |
# update package list | |
apt-get update | |
# read and accept the agreement |
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
#!/usr/bin/env bash | |
# Build CouchDB 1.0.1 from source using build-couchdb. All needed dependencies | |
# are also build from source and form a self-contained installation. Specifiy | |
# COUCHDB_PREFIX to the location where you would like to have everything | |
# installed to. | |
# When everything is done, the init.d-script and default settings for CouchDB | |
# are linked to the right places, the bind address is set to 0.0.0.0 and CouchDB | |
# will be started, so you can relax! |
OlderNewer