This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Email configuration. | |
## | |
# IMAP Connection | |
set imap_user = '[email protected]' | |
set imap_pass = 'youwish' | |
set spoolfile = 'imaps://imap.mail.me.com:993/INBOX' | |
set folder = 'imaps://imap.gmail.com:993' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{-- Define all our servers --}} | |
@servers(['staging' => '', 'production' => '']) | |
@setup | |
{{-- The timezone your servers run in --}} | |
$timezone = 'Europe/Amsterdam'; | |
{{-- The base path where your deployments are sitting --}} | |
$path = '/var/www/site.com/htdocs'; |