Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am aharpervc on github.
  • I am aharpervc (https://keybase.io/aharpervc) on keybase.
  • I have a public key ASCeREmQzpaC7NydK-cUf-dNT54fQY2yqux6EoMutuSMowo

To claim this, I am signing this object:

@aharpervc
aharpervc / deploy.rb
Created November 4, 2015 19:48
Capistrano task to handle git repository url changes
task :cope_with_git_repo_relocation do
on roles(:app) do
capture "if [ -d #{repo_path} ]; then cd #{repo_path} && git remote set-url origin #{fetch(:repo_url)}; else true; fi"
end
end
before :updating, 'deploy:cope_with_git_repo_relocation'
@aharpervc
aharpervc / README.md
Last active August 29, 2015 14:22 — forked from mbostock/.block
@aharpervc
aharpervc / prepare_xrubies.patch
Created May 18, 2015 16:11
Cross build ruby 2.2
--- prepare_xrubies Mon May 18 12:09:54 2015
+++ prepare_xrubies_fixed Mon May 18 12:09:49 2015
@@ -41,5 +41,12 @@
# Build x64 Ruby 2.1
rake-compiler cross-ruby VERSION=2.1.4 HOST=x86_64-w64-mingw32 debugflags="-g"
+# Build 2.2.1 using >= 2.0 as base
+rvm use 2.0
+rake-compiler cross-ruby VERSION=2.2.1 HOST=i686-w64-mingw32 debugflags="-g"
+
@aharpervc
aharpervc / securerandom.rb.patch
Created May 18, 2015 16:03
patch for ruby 2.2 securerandom.rb to get rake-compiler to cross build ruby 2.2
--- /home/vagrant/.rake-compiler/sources/ruby-2.2.1/lib/securerandom.rb.original 2015-05-18 08:49:56.007018200 -0700
+++ /home/vagrant/.rake-compiler/sources/ruby-2.2.1/lib/securerandom.rb 2015-05-18 08:58:42.187018200 -0700
@@ -45,9 +45,14 @@
module AdvApi32 # :nodoc:
extend Fiddle::Importer
- dlload "advapi32"
- extern "int CryptAcquireContext(void*, void*, void*, unsigned long, unsigned long)"
- extern "int CryptGenRandom(void*, unsigned long, void*)"
+
/*
Ractive.js v0.4.0
2014-04-08 - commit b30cd124
http://ractivejs.org
http://twitter.com/RactiveJS
Released under the MIT License.
*/
@aharpervc
aharpervc / dabblet.css
Last active December 26, 2015 08:29 — forked from LeaVerou/dabblet.css
/**
* iOS 6 style switch checkboxes
* by Lea Verou http://lea.verou.me
*
* Fork: small style tweaks that scale better at larger font sizes, and disable text selection on the switch
*/
.switch {
user-select: none;
}