Skip to content

Instantly share code, notes, and snippets.

View wbotelhos's full-sized avatar
💭
I'm not my code.

Washington Botelho wbotelhos

💭
I'm not my code.
View GitHub Profile
@wbotelhos
wbotelhos / git-file-size-diff.sh
Created June 10, 2016 17:35
Git File Size Diff
#!/bin/sh
. "$(git --exec-path)/git-sh-setup"
args=$(git rev-parse --sq "$@")
eval "git diff-tree -r $args" | {
total=0
while read A B C D M P; do
@wbotelhos
wbotelhos / error-eventmachine-openssl_ssl.h.md
Last active December 8, 2015 14:16
./project.h:116:10: fatal error: 'openssl/ssl.h' file not found
gem install eventmachine -v '1.0.8' -- --with-cppflags=-I/usr/local/opt/openssl/include
brew link --force openssl
@wbotelhos
wbotelhos / xcodebuild_accept.md
Created November 6, 2015 20:04
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
sudo xcodebuild -license
@wbotelhos
wbotelhos / keybase.md
Created March 1, 2015 17:34
keybase.md

Keybase proof

I hereby claim:

  • I am wbotelhos on github.
  • I am wbotelhos (https://keybase.io/wbotelhos) on keybase.
  • I have a public key whose fingerprint is 50FD 2C39 0CD1 1E75 867C 41E7 9B76 DB1D ECBF 4CC7

To claim this, I am signing this object:

@wbotelhos
wbotelhos / selenium_firefox_arguments_error.sh
Created January 30, 2015 01:54
Selenium::WebDriver::Error::JavascriptError: arguments[0] is undefined
# When: Capybara execution.
# Cause: Using Firefox 35.x.
# Fix: Downgrade to Firefox 34.x.
@wbotelhos
wbotelhos / nokogiri_install.sh
Created October 23, 2013 16:14
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-linux-gnu/ports/libxml2/2.8.0... OK Running 'configure' for libxml2 2.8.0... OK Running 'compile' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-linux-gnu/ports/libxml2/2.8.0/compile.log'…
NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install
@wbotelhos
wbotelhos / phantomjs_intaller.sh
Last active December 12, 2019 12:08
Installing PhantomJS 1.9 on Ubuntu 12/14.xx x64/x86
#!/bin/bash
sudo apt-get remove phantomjs
sudo unlink /usr/local/bin/phantomjs
sudo unlink /usr/local/share/phantomjs
sudo unlink /usr/bin/phantomjs
cd /usr/local/share
@wbotelhos
wbotelhos / debugger-linecache.sh
Created September 17, 2013 19:50
An error occurred while installing debugger-linecache (1.1.2), and Bundler cannot continue.
# replace ruby-1.9.3-p448 for your ruby version
gem install debugger-linecache -v '1.1.2' -- --with-ruby-include=$rvm_path/rubies/ruby-1.9.3-p448
@wbotelhos
wbotelhos / sphinx_install.md
Last active December 19, 2015 02:18
Sphinx Install

Install

sudo mkdir -p /opt/local/src
cd /opt/local/src
sudo wget http://sphinxsearch.com/files/sphinx-2.1.3-release.tar.gz
sudo tar xvf sphinx-2.1.3-release.tar.gz
cd sphinx-2.1.3-release
sudo ./configure --prefix=/opt/local/sphinx/2.1.3
@wbotelhos
wbotelhos / vagrant_cookbook_error.sh
Last active December 19, 2015 00:18
FATAL: NameError: undefined local variable or method `use_inline_resources' for #<Class:0xb709d348>
# If your Chef version is earlier than 11.0.0, use version 1.10.0 of this cookbook: https://github.com/opscode-cookbooks/apt/commit/dd29a85257161ff42c9595627dd370b02be2060f
vagrant halt
cd cookbooks/apt
git reset --hard 1.10.0
vagrant up