Skip to content

Instantly share code, notes, and snippets.

View martinstreicher's full-sized avatar
🎯
Focusing

Martin Streicher martinstreicher

🎯
Focusing
View GitHub Profile
Colossus-2:miner strike$ cat /Users/strike/.rvm/log/ruby-1.9.3-p0/make.log
[2011-11-02 15:33:39] make
CC = gcc-4.2
LD = ld
LDSHARED = gcc-4.2 -dynamiclib
CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I. -I.ext/include/x86_64-darwin10.8.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/strike/.rvm/rubies/ruby-1.9.3-p0/lib/libruby.1.9.1.dylib -current_version 1.9.1 -compatibility_version 1.9.1 -Wl,-unexported_symbol,_Init_* -Wl,-unexported_symbol,*_threadptr_* -Wl,-u,_objc_msgSend
SOLIBS =
@martinstreicher
martinstreicher / Command-line
Created November 29, 2011 16:10
Mac OS X Lion and 1.9.3
rvm install 1.9.3-p0 --with-gcc=clang
Installing Ruby from source to: /Users/strike/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)...
ruby-1.9.3-p0 - #fetching
ruby-1.9.3-p0 - #extracted to /Users/strike/.rvm/src/ruby-1.9.3-p0 (already extracted)
Fetching yaml-0.1.4.tar.gz to /Users/strike/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/strike/.rvm/src
Configuring yaml in /Users/strike/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/strike/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/strike/.rvm/usr
@martinstreicher
martinstreicher / gist:1410852
Created November 30, 2011 21:14
rvm install 1.9.3 on Lion
Colossus-2:migrator strike$ cat !$
cat /Users/strike/.rvm/log/ruby-1.9.3-head/make.log
[2011-11-30 16:08:23] make
CC = clang
LD = ld
LDSHARED = clang -dynamiclib
CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I. -I.ext/include/x86_64-darwin11.2.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/strike/.rvm/rubies/ruby-1.9.3-head/lib/libruby.1.9.1.dylib -current_version 1.9.1 -compatibility_version 1.9.1 -Wl,-unexported_symbol,_Init_* -Wl,-unexported_symbol,*_threadptr_* -Wl,-u,_objc_msgSend
@martinstreicher
martinstreicher / Brew list
Created November 30, 2011 21:46
List of /opt/local/bin
Colossus-2:migrate strike$ /usr/local/bin/brew list
couchdb freeimage icu4c memcached readline sphinx
erlang git-flow libevent nspr redis spidermonkey
@martinstreicher
martinstreicher / gist:1431262
Created December 4, 2011 21:02
Controller test
require 'spec_helper'
describe AccountsController do
before :each do
@user = create :user_with_requested_subdomain
@request.host = "#{@user.subdomain}.local"
end
describe 'authenticate_user!' do
it 'precludes access unless logged in' do
@martinstreicher
martinstreicher / gist:1935754
Created February 28, 2012 22:37
Log of Lion build
Colossus-2:realvolve strike$ cat !$
cat /Users/strike/.rvm/log/ruby-1.9.3-p125/make.log
[2012-02-28 17:27:22] make
CC = clang
LD = ld
LDSHARED = clang -dynamiclib
CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I. -I.ext/include/x86_64-darwin11.3.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/strike/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.1.9.1.dylib -current_version 1.9.1 -compatibility_version 1.9.1 -Wl,-unexported_symbol,_Init_* -Wl,-unexported_symbol,*_threadptr_* -Wl,-u,_objc_msgSend
@martinstreicher
martinstreicher / gist:93a80346851e643e652a
Created May 20, 2014 16:20
Odd result from Ansible.
When I do this…
- name: capture the remote user's home directory
sudo: False
shell: pwd
register: home_dir
Why does home_dir show me this…
{"formulary_id"=>"F05421", "custom_value"=>"Lantus Solostar subcutaneous PreferredRx Peanuts"}, {"formulary_id"=>"F05422", "custom_value"=>"Lantus Solostar subcutaneous SuperRx Peanuts"}], "step1_brand_name"=>"Lantus Solostar subcutaneous", "step1_generic_name"=>"Lantus Solostar subcutaneous", "epdrug"=>{"epdrug_id"=>"9", "formulary_ids_arry"=>["F05421", "F05422"], "med_ids_arry"=>[551714], "step2"=>"Peanuts", "custom_msg_hash"=>[{"formulary_id"=>"F05421", "custom_value"=>"Lantus Solostar subcutaneous PreferredRx Peanuts"}, {"formulary_id"=>"F05422", "custom_value"=>"Lantus Solostar subcutaneous SuperRx Peanuts"}], "step1_brand_name"=>"Lantus Solostar subcutaneous", "step1_generic_name"=>"Lantus Solostar subcutaneous"}}
Colossal:emerald strike$ rvm install jruby-9.0.0.0.pre2 --disable-binary
jruby-9.0.0.0.pre2 - #removing src/jruby-9.0.0.0.pre2..
Checking requirements for osx.
Requirements installation successful.
$JAVA_HOME was empty, setting up JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home, if it fails try setting JAVA_HOME to something sane and try again.
HEAD is now at cb96d72 Bump for version
Previous HEAD position was cb96d72... Bump for version
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
From git://github.com/jruby/jruby
@martinstreicher
martinstreicher / gist:a29530a7989b916e2cc5
Created December 22, 2015 17:23
Output of VCR matching
[webmock] Handling request: [get https://maps.google.com/maps/api/geocode/json?address=613%20Wolf%20Crescent,Lake%20Mandychester,New%20Hampshire&sensor=false] (disabled: false)
[webmock] Identified request type (recordable) for [get https://maps.google.com/maps/api/geocode/json?address=613%20Wolf%20Crescent,Lake%20Mandychester,New%20Hampshire&sensor=false]
[webmock] Handling request: [get https://maps.google.com/maps/api/geocode/json?address=9341%20Wiegand%20Gardens,Wavabury,New%20York&sensor=false] (disabled: false)
[webmock] Identified request type (recordable) for [get https://maps.google.com/maps/api/geocode/json?address=9341%20Wiegand%20Gardens,Wavabury,New%20York&sensor=false]
[Cassette: 'cms/sms_08'] Initialized with options: {:record=>:once, :match_requests_on=>[:uri, :method], :allow_unused_http_interactions=>true, :serialize_with=>:yaml, :persist_with=>:file_system, :allow_playback_repeats=>false}
[webmock] Handling request: [get https://maps.google.com/maps/api/geocode/json?address=469%20Bill%20Tra