Skip to content

Instantly share code, notes, and snippets.

View Zearin's full-sized avatar

Zearin Zearin

  • Virginia, U.S.A.
View GitHub Profile
@ucnv
ucnv / README.md
Created May 3, 2009 09:01
Diff for gist.github
(*
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
@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
@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
@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
@pmuellr
pmuellr / gist:1004413
Created June 2, 2011 13:24
BBEdit Language Module for CoffeeScript
<?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">
<!--
BBEdit Language Module for CoffeeScript
Put this file in
~/Library/Application Support/BBEdit/Language Modules
or equivalent.
Based off of the examples shipped in the BBEdit SDK.
/**
* This library defines magic properties and methods
* for objects. Generic hooks are: __get__, __set__,
* __delete__, __count__, __call__, __construct__,
* __noSuchProperty__ and __noSuchMethod__.
*
* Used features: Harmony (ES6) proxies.
*
* Tested in FF4 beta.
*
@caruccio
caruccio / bash-named-param
Created April 24, 2012 03:25
Named parameters in bash
# Do you like python named parameters (kvargs) ?
# Well, you can have it in bash too!!
$ function myfunc() { local $*; echo "foo=$foo, bar=$bar"; }
$ myfunc bar=world foo=hello
foo=hello, bar=world
@balupton
balupton / README.md
Last active April 29, 2019 11:57
DocPad: Use DocPad, GitHub & Prose as a Wiki

Use DocPad, GitHub and Prose as a Wiki

This guide will walk you through how you can use a GitHub repository to house your wiki content, have DocPad render it, and automatically update on changes. It's also really nice as we get to benefit from the github project workflow for our wiki, that is issues, pull requests, etc.

We use this workflow heavily by linking the DocPad Website and the DocPad Documentation repositories allowing us to have users edit and submit pull requests for improvements to our documentation, and once merged, the website regenerates automatically.

1. Create a new repository for your Wiki Content

@bartdag
bartdag / Java
Created July 7, 2011 19:18
Java and Python and Py4J
package p1;
import py4j.GatewayServer;
public class MyApplication {
public static void main(String[] args) {
GatewayServer server = new GatewayServer(null);
// This will start the Py4J server and now, the JVM is ready to receive Python commands.