Skip to content

Instantly share code, notes, and snippets.

@firien
firien / safari-beta.css
Last active March 31, 2016 14:54
Style Sheet for Safari Technical Preview
/*
Safari Technical Preview is nearly indistinguishable from Safari
this stylesheet will place a red banner on every page, so you can easily tell what browser you are using
Save file to disk
From Safari Technical Preview
Preferences | Advanced
Choose this css file as 'Style sheet' option
*/
@firien
firien / gist:887b6c2d8aba6af9985c
Created June 5, 2014 18:41
crop screenshots and create gif (with ImageMagick)
convert -delay 125 -crop 680x410+330+210 +repage *.png animated.gif
@firien
firien / sinatra.rb
Last active August 29, 2015 14:02
example inline sinatra file
require 'sinatra'
require 'coffee_script'
require 'haml'
# configure do
# set :bind, '0.0.0.0'
# end
js = DATA.read
get '/shibboleth.js' do
@firien
firien / blaster.rb
Last active October 4, 2015 06:57
self enclosed js that removes unmentionables from DOM
# encoding: UTF-8
require 'uri'
require 'uglifier'
require 'coffee-script'
js = CoffeeScript.compile DATA.read
#plain js
puts js
#bookmarklet