Skip to content

Instantly share code, notes, and snippets.


Emory L. emory

View GitHub Profile
jpinnix / Pixelgrazer.taskpapertheme
Created Jul 8, 2010
Pixelgrazer TaskPaper Theme
View Pixelgrazer.taskpapertheme
<!-- Window Style -->
<color id="foreground" red="1.0" green="0.776" blue="0.427" alpha="1.0" />
<color id="background" red="0.255" green="0.255" blue="0.255" alpha="1.0" />
<window foregroundColorID="foreground" backgroundColorID="background" shouldUseHUDScrollers="no" />
<!-- Text View Style -->
<color id="tag" red="0.800" green="0.471" blue="0.200" alpha="1.0" />
<color id="handle" extendsColorID="foreground" />
<color id="insertionPoint" red="1.0" green="1.0" blue="1.0" alpha="1.0" />
visnup / gist:733671
Created Dec 8, 2010
We couldn’t find that file to show.
msabramo /
Created Jan 4, 2011
How to force the OS X Services menu to rebuild itself; a good thing to try if your Services menu is stuck saying "Building..."
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
# - or -
launchctl stop
joe-pindell / ExportThingsToTaskPaper.scpt
Created Apr 8, 2011
An Applescript to export from Things to TaskPaper
View ExportThingsToTaskPaper.scpt
set thePath to (path to desktop as Unicode text) & "ThingsToDo.txt"
set thingsToDoFile to (open for access file thePath with write permission)
set eof of thingsToDoFile to 0
set cr to ASCII character 10
tell application "Things"
-- Export to-dos from Inbox
write "Inbox:" & return to thingsToDoFile as «class utf8»
repeat with td in to dos of list "Inbox"
imathis / Pullquote.css
Created Jun 19, 2011
Jekyll Pullquote plugin for Octopress
View Pullquote.css
.has-pullquote:before {
/* Reset metrics. */
padding: 0;
border: none;
/* Content */
content: attr(data-pullquote);
/* Pull out to the right, modular scale based margins. */
float: right;
dsanson / custom.css
Created Jul 12, 2011
A custom.css for use with
View custom.css
This is my hacked up copy of
1. Smaller headings
2. ~~No scrollbars~~ (I now prefer the Lion default behavior)
3. Styling of definition lists ala LaTeX description lists.
4. Centering h1.title,, (pandoc's title/author/date block).
melpomene /
Created Oct 11, 2011
Wordlist generating script that parses websites for words.
#!/usr/bin/env python2.7
''' Creates wordlists from web scraping. BeautifulSoup requierd (pip install beautifulsoup) '''
import sys
import os
import robotparser
from BeautifulSoup import BeautifulSoup as bs
import urllib2
from urlparse import urlparse
vanto /
Last active Dec 23, 2021
OEmbed Liquid Tag for Jekyll

OEmbed Liquid Tag for Jekyll

This is a simple liquid tag that helps to easily embed images, videos or slides from OEmbed enabled providers. It uses Magnus Holm's great oembed gem which connects to the OEmbed endpoint of the link's provider and retrieves the HTML code to embed the content properly (i.e. an in-place YouTube player, Image tag for Flickr, in-place slideshare viewer etc.). By default it supports the following OEmbed providers (but can fallback to or OoEmbed for other providers):

  • Youtube
  • Flickr
  • Viddler
  • Qik
  • Revision3
  • Hulu
  • Vimeo
timsavery / Ruby Download Parse JSON
Created Jan 22, 2012
Example For Downloading and Parsing JSON (Ruby)
View Ruby Download Parse JSON
require "rubygems"
require "json"
require "net/http"
require "uri"
uri = URI.parse("")
http =, uri.port)
request =
dyba / asa_cmds_rule_deletion.rb
Created Jan 27, 2012
Cisco ASA Firewall Rule Deletion Generator via RedSeal Device Cleanup Analysis Results
View asa_cmds_rule_deletion.rb
# The purpose of this script is to generate a list of commands to delete unused access rules from a
# Cisco PIX or ASA firewall. This script is appropriate if you use the RedSeal application:
# Currently the results are printed to the screen only.
# When you want to clean up unused rules on a firewall. Use the RedSeal application to run a cleanup:
# Tools > Manage Device Cleanup (Alt+T, C). When finished, export the results as a CSV file. Don't
# forget to include the .CSV extension. Run this script and type the name of the file with the