Skip to content

Instantly share code, notes, and snippets.

View fancyremarker's full-sized avatar

Frank Macreery fancyremarker

  • Aptible
  • Catskill Mountains
View GitHub Profile
@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 / 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 / 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 / forecast.io.css
Created February 12, 2014 15:30
My Stylebot styles
span.inner {
display: none;
}
@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 / Gemfile
Created February 27, 2014 22:04
Demonstration of header caching bug in HyperResource
gem 'sinatra'
gem 'hyperresource'
@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 / momentum-todo.rb
Created June 19, 2014 23:09
Load Momentum TODO list from a text file
#!/usr/bin/env ruby
require 'sqlite3'
require 'json'
require 'securerandom'
EXTENSION_ID = 'laookkfknpbbblfpciffpaejjkokdgca'
DBFILE = "#{ENV['HOME']}/Library/Application Support/Google/Chrome/Default/" \
"Local Storage/chrome-extension_#{EXTENSION_ID}_0.localstorage"
@fancyremarker
fancyremarker / check-unread-chats.rb
Last active August 29, 2015 14:03
check-unread-chats
#!/usr/bin/env ruby
require 'net/http'
require 'nokogiri'
require 'yaml'
def credential_pairs_from_yaml
YAML.load(File.open("#{ENV['HOME']}/.google-credentials.yml"))
rescue
{}
@fancyremarker
fancyremarker / onename.txt
Created August 17, 2014 19:41
Onename Verification
Verifying that +fancyremarker is my Bitcoin username. You can send me #bitcoin here: https://onename.io/fancyremarker