Skip to content

Instantly share code, notes, and snippets.

View Nerian's full-sized avatar

Gonzalo Rodríguez-Baltanás Díaz Nerian

View GitHub Profile
➜ sample-capybara-rspec-issue git:(master) ✗ rspec
Puma starting in single mode...
* Version 3.10.0 (ruby 2.4.2-p198), codename: Russell's Teapot
* Min threads: 0, max threads: 4
* Environment: test
* Listening on tcp://127.0.0.1:49219
Use Ctrl-C to stop
....^CFFFFFFFFFFFFFFFF- Gracefully stopping, waiting for requests to finish
=== puma shutdown: 2017-11-19 10:37:49 +0100 ===
- Goodbye!
# MySQL sandbox
export SANDBOX_HOME="$HOME/.mysql_sb"
export BINARY_BASE="$HOME/.mysql_sb_bin"
alias mysql_sandbox_start="$HOME/.mysql_sb/rsandbox_5_5_16/start_all"
alias mysql_sandbox_stop="$HOME/.mysql_sb/rsandbox_5_5_16/stop_all"
alias mysql_sandbox_pidcleanup="rm $HOME/.mysql_sb/*/*/data/*.pid"
alias give_a_console="RAILS_ENV=fastdev ruby script/console"
alias resque_worker='RAILS_ENV=fastdev QUEUE=fast,medium,slow,singleton,cloud_backup rake environment resque:work'
alias reset_the_database="time (rake db:reset; rake db:test:clone_structure)"
alias haiku_make_cloud="rake s3:cloudify_domain DOMAIN=lawrence_schools_in confirm=true"
➜ ~ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install openssl098 --use-llvm 2>&1
==> Downloading http://www.openssl.org/source/openssl-0.9.8y.tar.gz
Already downloaded: /Library/Caches/Homebrew/openssl098-0.9.8y.tar.gz
tar xf /Library/Caches/Homebrew/openssl098-0.9.8y.tar.gz
==> ./config --prefix=/usr/local/Cellar/openssl098/0.9.8y --openssldir=/usr/local/etc/openssl zlib-dynamic shared
./config --prefix=/usr/local/Cellar/openssl098/0.9.8y --openssldir=/usr/local/etc/openssl zlib-dynamic shared
Operating system: i386-apple-darwinDarwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64
Configuring for darwin-i386-cc
Configuring for darwin-i386-cc
no-camellia [default] OPENSSL_NO_CAMELLIA (skip dir)
➜ ~ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install openssl098 2>&1
==> Downloading http://www.openssl.org/source/openssl-0.9.8y.tar.gz
Already downloaded: /Library/Caches/Homebrew/openssl098-0.9.8y.tar.gz
tar xf /Library/Caches/Homebrew/openssl098-0.9.8y.tar.gz
==> ./config --prefix=/usr/local/Cellar/openssl098/0.9.8y --openssldir=/usr/local/etc/openssl zlib-dynamic shared
./config --prefix=/usr/local/Cellar/openssl098/0.9.8y --openssldir=/usr/local/etc/openssl zlib-dynamic shared
Operating system: i386-apple-darwinDarwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64
Configuring for darwin-i386-cc
Configuring for darwin-i386-cc
no-camellia [default] OPENSSL_NO_CAMELLIA (skip dir)
➜ gem install rake
dyld: NSLinkModule() error
dyld: Symbol not found: _dump_conf_value_doall_arg
Referenced from: /Users/Nerian/.rvm/rubies/ruby-1.8.6-p383/lib/ruby/1.8/i686-darwin12.3.0/openssl.bundle
Expected in: flat namespace
in /Users/Nerian/.rvm/rubies/ruby-1.8.6-p383/lib/ruby/1.8/i686-darwin12.3.0/openssl.bundle
@Nerian
Nerian / .zprofile
Last active December 15, 2015 02:19
[[ -s "/Users/Nerian/.rvm/scripts/rvm" ]] && source "/Users/Nerian/.rvm/scripts/rvm" # This loads RVM into a shell session.
@Nerian
Nerian / .guardrc
Last active December 13, 2015 22:39
Put this in ~/.guardrc and then, once you are in Guard, you can do `doc` to switch to RSpec documentation format and 'fuu' to switch to Fuubar fornat.
Pry::Commands.block_command 'fuu', "Use fuubar formatter in rspec" do
options = ::Guard.guards(:rspec).runner.options
options[:cli] = options[:cli].sub(/\-\-format \w+/, '--format Fuubar')
output.puts "Using Fuubar as RSpec formatter."
end
Pry::Commands.block_command 'doc', "Use documentation formatter in rspec" do
options = ::Guard.guards(:rspec).runner.options
options[:cli] = options[:cli].sub(/\-\-format \w+/, '--format documentation')
output.puts "Using Documentation as RSpec formatter."
/* @group Base */
.chzn-container {
position: relative;
display: inline-block;
}
.chzn-container .chzn-drop {
background: #fff;
border: 1px solid #aaa;
border-top: 0;
position: absolute;
➜ ~ brew doctor
Your system is raring to brew.
HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install libinfinity
==> Downloading http://releases.0x539.de/libinfinity/libinfinity-0.5.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/libinfinity-0.5.2.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/libinfinity-0.5.2.tar.gz
==> Downloading patches
/usr/bin/curl -f#LA Homebrew 0.9.3 (Ruby 1.8.7-358; Mac OS X 10.8.2) https://trac.macports.org/export/92297/trunk/dports/comms/libinfinity/files/patch-infinoted-infinoted-pam.c.diff -o 000-homebrew.diff
######################################################################## 100,0%
==> Patching
/usr/bin/patch -f -p0 -i 000-homebrew.diff