Skip to content

Instantly share code, notes, and snippets.

View fancyremarker's full-sized avatar

Frank Macreery fancyremarker

  • Aptible
  • New York
View GitHub Profile
@fancyremarker
fancyremarker / .aptible.yml
Last active December 20, 2016 01:23
[:octopus:] Files required to Aptible-ize a Heroku-conformant Rails app
before_release:
- bundle exec rake db:migrate
@fancyremarker
fancyremarker / Gemfile
Created February 27, 2014 22:04
Demonstration of header caching bug in HyperResource
gem 'sinatra'
gem 'hyperresource'
@fancyremarker
fancyremarker / README.md
Created February 12, 2014 16:15
My Artblock Plus filters

I use these filters with ArtBlock but they will also work with Adblock Plus.

The idea is to use Adblock's default filter lists to block all ads, but to whitelist certain assets necessary for the proper functioning of interactive sites.

@fancyremarker
fancyremarker / forecast.io.css
Created February 12, 2014 15:30
My Stylebot styles
span.inner {
display: none;
}
@fancyremarker
fancyremarker / silence.css
Created November 18, 2013 18:39
CSS styles to silence annoying IRC status messages
.x-status_container.purple,
.x-status_container.purple > .x-text,
.x-status_container.purple > .x-time
{
padding: 0 !important;
margin: 0 !important;
border: none !important;
display: none !important;
}
@fancyremarker
fancyremarker / Gemfile
Last active December 18, 2015 08:29
Demonstration of browsers' failure to honor HTTP caching headers on history navigation
source "https://rubygems.org"
gem "sinatra"
@fancyremarker
fancyremarker / background.js
Created December 26, 2012 04:58
Svpply Chrome extension converted from bookmarklet via @peterlegierski's plugin
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.tabs.executeScript(tab.id, {file: "bookmarklet.js"})
});
@fancyremarker
fancyremarker / background.js
Created December 26, 2012 04:51
Instapaper Chrome extension converted from bookmarklet via @peterlegierski's plugin
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.tabs.executeScript(tab.id, {file: "bookmarklet.js"})
});
@fancyremarker
fancyremarker / gist:4136584
Created November 23, 2012 17:33
Blazingly fast key repeat in OS X
#!/bin/sh
defaults write -g KeyRepeat -int 0 # <- 0 ms
defaults write -g InitialKeyRepeat -int 10 # <- 100 ms
defaults write -g ApplePressAndHoldEnabled -bool false
@fancyremarker
fancyremarker / post-checkout
Created July 25, 2012 19:37
Sane Git hooks for projects with submodules
#!/bin/sh
# Check if this is a branch checkout
if [ "${3}" -eq "1" ] ; then
git submodule update --init
fi