Skip to content

Instantly share code, notes, and snippets.

View Zearin's full-sized avatar

Zearin Zearin

  • Virginia, U.S.A.
View GitHub Profile
@lwe
lwe / brew-more.rb
Created July 14, 2010 08:53
Try to scrape formula information from @formula.homepage.
# Small utility which uses the homepage and nokogori to get a description from the formula's homepage.
#
# As written in the homebrew wiki:
# > Homebrew doesn’t have a description field because the homepage is always up to date,
# > and Homebrew is not. Thus it’s less maintenance for us. To satisfy the description
# > we’re going to invent a new packaging microformat and persuade everyone to publish
# > it on their homepage.
#
# Too bad no packaging microformat has yet been invented, but brew-more just first looks for a
# `<meta name="description">` tag, then for an `a#project_summary_link` tag (which is used in
@juanpabloaj
juanpabloaj / 256colors.sh
Created January 25, 2012 00:18
256 terminal colors list
# 256 terminal colors
# http://superuser.com/q/285381
for i in {0..255} ; do
printf "\x1b[38;5;${i}mcolour${i}\n"
done
@Zearin
Zearin / icon-naming-spec.xml
Created May 31, 2011 15:29
Freedesktop.org’s icon naming specification, represented as XML. Intended as a convenience to XML devs.
<?xml version="1.0" encoding="UTF-8"?>
<!--
@source
http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
@author
Zearin <zearin@gonk.net>
@license
I haven’t chosen a license yet. In the meantime, feel free to reuse this
(*
Folder action to queue downloaded torrents in your uTorrent web gui. With a dyndns account you can initiate downloads on your file server from wherever you happen to be.
Gotta have uTorrent with web gui (Windows, Mac, or Linux with Wine).
Gotta have growl, too.
- Paste into Script Editor
- Edit the user, password, and server url below.
- Add as a folder action on your download directory
@ucnv
ucnv / README.md
Created May 3, 2009 09:01
Diff for gist.github