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 | |
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 -- \ |
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
-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}, |
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 "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 |
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/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' |
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
[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 |
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
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 |
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
[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 |
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 ruby | |
# Requirements: | |
# gem install yajl-ruby | |
# | |
# Usage: | |
# | |
# $ curl -\# http://localhost:5984/somedb/_all_docs | ./find_dupes.rb | |
# | |
# or |
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
Installing pg (0.9.0) with native extensions /Users/basti/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) | |
/Users/basti/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb | |
checking for pg_config... no | |
=========== WARNING =========== | |
You are building this extension on OS X without setting the | |
ARCHFLAGS environment variable, and pg_config wasn't found in | |
your PATH. If you are seeing this message, that means that the |
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
(ruby-1.9.2-p0) {~} I ruby -v | |
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0] | |
(ruby-1.9.2-p0) {~} I irb | |
ruby-1.9.2-p0 > require "iconv" | |
LoadError: no such file to load -- iconv | |
from <internal:lib/rubygems/custom_require>:29:in `require' | |
from <internal:lib/rubygems/custom_require>:29:in `require' | |
from (irb):1 | |
from /Users/basti/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in `<main>' | |
ruby-1.9.2-p0 > |