Safari: http://sobolev.us/stylish/
Chrome: https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en
This file contains hidden or 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
1 /* | |
2 * Instantly submit the form on hidemyass.com | |
3 * For use with Safari Keyword Searches etc. | |
4 * --- | |
5 * Setup this keyword search: | |
6 * http://hidemyass.com/proxy/index.php?site=http://@@@ | |
7 */ | |
8 $(function(){ | |
9 // Auto-submit form if filled in already | |
10 if ($("#hmaurl").attr("value") != "http://google.com") |
This file contains hidden or 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
# Hack File.fnmatch to support braces | |
# eg. "*.{ht,x}ml" | |
class ::File | |
class << self | |
alias :_fnmatch :fnmatch | |
def fnmatch(pattern, path, flags = 0) | |
regex = /\{(.+)\}/i | |
# Look for braces | |
if match = pattern.match(regex) |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<array> | |
<string>$select</string> | |
<string> ⚫⚪ </string> | |
</array> | |
<array> | |
<string>[$sel]($paste)$cursor</string> |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# In the morning: | |
# $ firmafon | |
# In the afternoon | |
# $ firmafon -q | |
apps = %w{BreakTime Fogbugz HipChat FirmafonApps} | |
def bracketize(str = "") |
This file contains hidden or 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
nb() { | |
if [[ $(git branch | tr -d '* ' | grep "$1") != "" ]]; then | |
git checkout $1 | |
else | |
git checkout -b $1 | |
fi | |
} | |
_nb() { reply=($(git branch | tr -d '* ' | xargs echo)) } | |
compctl -K _nb nb |
This file contains hidden or 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
var a=encodeURI(window.location.href);window.location='drafts://x-callback-url/create?text='+a+'&action=Copy%20to%20Clipboard&x-success='+a; |
This file contains hidden or 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
require 'rack' | |
require './littlest_proxy' | |
run Rack::URLMap.new("/proxy" => LittlestProxy.new("http://google.com")) | |
# /proxy?path=/search => http://google.com/search |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# $ gem install CFPropertyList | |
require 'cfpropertylist' | |
path = File.expand_path '~/Library/Safari/Bookmarks.plist' | |
plist = CFPropertyList::List.new file: path | |
list = plist.value.value["Children"].value.select do |item| | |
if title = item.value["Title"] | |
title.value == 'com.apple.ReadingList' |
This file contains hidden or 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
/** | |
* Naively responsive GitHub | |
* For use with something like | |
* Safari: http://sobolev.us/stylish/ or | |
* Chrome: https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en | |
*/ | |
body { min-width: 300px !important; } | |
.header { min-width: 300px !important; } | |
.container { width: 100%; padding-left: 10px; padding-right: 10px; } | |
.columns { margin-left: 0; margin-right: 0; } |