Skip to content

Instantly share code, notes, and snippets.

@drbraden
drbraden / git_local.rb
Created May 9, 2016 20:31 — forked from alediaferia/git_local.rb
Capistrano strategy for checking out git projects locally rather than on deployment destination machine
module LocalGitStrategy
def test
run_locally do
test " [ -f #{repo_path}/.git/HEAD ] "
end
end
def check
run_locally do
execute :git, :'ls-remote --heads', repo_url
@drbraden
drbraden / go.rake
Created May 9, 2016 20:33 — forked from alediaferia/go.rake
A couple of rake tasks to handle Go projects deployment
namespace :go do
task :upload do
on release_roles :all do
upload! "#{repo_path}/#{fetch(:application)}", release_path
end
end
task :build do
run_locally do
within repo_path do
@drbraden
drbraden / kill-sticky.js
Last active July 10, 2019 10:57 — forked from alisdair/kill-sticky.js
Kill sticky headers and re-enable scrolling
// Original gist from https://alisdair.mcdiarmid.org/kill-sticky-headers/ (thank you!)
// My only addition is re-enabling scrolling since some sites disable it while
// their pop-up is active.
// Just copy the below and paste it at http://mrcoles.com/bookmarklet/ to
// properly escape the string and create a convenient "this link" that can
// be dragged to the bookmark bar. A more advanced version, also written
// by Mr. Coles, is available on npm: npm -g install bookmarklet
var i, elements = document.querySelectorAll('body *');
for (i = 0; i < elements.length; i++) {

Keybase proof

I hereby claim:

  • I am drbraden on github.
  • I am dbraden (https://keybase.io/dbraden) on keybase.
  • I have a public key ASDuvqLRRrVdhB-hNwksd2gvipRmuwobd7yk3MnQu1oXEAo

To claim this, I am signing this object: