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
Scenario: Get List of My Hitchhiking Items via API | |
Given the existing things: | |
|name| | |
|The Guide (duh)| | |
|A towel| | |
|Sub-Etha Sens-O-Matic| | |
|Pan Galactic Gargle Blaster| | |
|Kill-o-Zap blaster pistol| | |
And the existing accounts: | |
|email|name|password| |
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
require "rubygems" | |
# require "yajl/json_gem" | |
require "json" | |
class FooBarBase | |
attr_accessor :name, :type | |
def initialize(attributes = {}) | |
attributes.each { |attr_name, attr_value| send("#{attr_name}=", attr_value) } | |
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
npm install qunit | |
npm info it worked if it ends with ok | |
npm info using npm@0.2.5-1 | |
npm info install qunit@0.0.4 | |
npm info preinstall qunit@0.0.4 | |
npm info install qunit@0.0.4 | |
cd ./deps/jscoverage/ && ./configure && make | |
checking for a BSD-compatible install... /usr/local/bin/ginstall -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p |
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 | |
rm -rf ~/.rvm/usr | |
rvm package install iconv | |
rvm package install readline | |
rvm package install zlib | |
rvm package install autoconf | |
rvm use system | |
rvm remove 1.9.2 | |
rvm install 1.9.2 --with-iconv-dir=$rvm_path/usr \ | |
--with-readline-dir=$rvm_path/usr \ |
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 gemedit | |
# | |
# INSTALLATION: | |
# | |
# Create a new TextMate command, paste this code, assign an activation shortcut, | |
# set output to "Show as Tool Tip" and done. |
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
[2010-09-02 22:10:52] make | |
file.c: In function ‘file_expand_path’: | |
file.c:2844: warning: ‘b’ may be used uninitialized in this function | |
regcomp.c: In function ‘add_compile_string_length’: | |
regcomp.c:423: warning: implicit conversion shortens 64-bit value into a 32-bit value | |
regcomp.c:431: warning: implicit conversion shortens 64-bit value into a 32-bit value | |
regcomp.c: In function ‘compile_string_raw_node’: | |
regcomp.c:550: warning: implicit conversion shortens 64-bit value into a 32-bit value | |
regcomp.c: In function ‘get_char_length_tree1’: | |
regcomp.c:2308: warning: implicit conversion shortens 64-bit value into a 32-bit value |
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 > |
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
#!/usr/bin/env ruby | |
# Requirements: | |
# gem install yajl-ruby | |
# | |
# Usage: | |
# | |
# $ curl -\# http://localhost:5984/somedb/_all_docs | ./find_dupes.rb | |
# | |
# or |