Skip to content

Instantly share code, notes, and snippets.

View mcfearsome's full-sized avatar
💭
hacking the mainframe

mcfearsome mcfearsome

💭
hacking the mainframe
View GitHub Profile
# Example of getting all files in a directory listing using wget
# -r tell wget to recurse over the links on a page
# -np keeps wget from moving up to the parent
wget -r -np -np http://gnosis.cx/download/relax/
@mcfearsome
mcfearsome / Greasekit_Helper.js
Created July 27, 2008 15:17
Recreation of GM_ functions from GreaseMonkey for use with GreaseKit
//
// GreaseKit friendly
//
if(typeof GM_xmlhttpRequest === "undefined") {
GM_xmlhttpRequest = function(/* object */ details) {
details.method = details.method.toUpperCase() || "GET";
if(!details.url) {
throw("GM_xmlhttpRequest requires an URL.");
// ==UserScript==
// @name bitlyUI
// @namespace http://fluidapp.com
// @description What does this do?
// @include *
// @author Someone
// ==/UserScript==
//
// GreaseKit friendly
<!-- DTD for TV listings
This is a DTD to represent a TV listing. It doesn't explicitly group
programmes by day or by channel, instead broadcast time and channel
are attributes of the 'programme' element. Optionally, data about the
TV channels used can be stored in 'channel' elements.
Data about a TV programme are stored in the subelements of element
'programme', but metadata such as when it will be broadcast are stored
as attributes.
default namespace = "urn:TMSWebServices"
start =
programs
| schedules
| (notAllowed
| element xtvd {
attribute schemaVersion { xsd:float "1.3" },
attribute to {
xsd:dateTime {
namespace gd = "http://schemas.google.com/g/2005"
include "atom.rnc" {
start =
comments
| contactSection
| email
| entryLink
| extendedProperty
| feedLink
@mcfearsome
mcfearsome / .gitignore
Created July 31, 2008 08:31
TVP Translations
.DS_Store
// ==UserScript==
// @name Tab Completion for Campfire
// @namespace http://code.cimians.com
// @description If you hit tab in the campfire chat window, it will tab complete on user names.
// @author Mat Schaffer, CIM Engineering
// @homepage http://code.cimians.com
// @include *.campfirenow.com/room*
// ==/UserScript==
(function() {
function pid {
ps xc | grep "$1" | awk '{print $1}'
}
# Behold the PATH
export PATH=/sw/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/Applications/Darwine/Contents/bin:/usr/local/maven-2.0.7/bin:/Users/comcast/sh:/Users/comcast/git-tools:/usr/local/pgsql/bin:/opt/local/bin:/opt/local/sbin:/usr/local/git/bin:$PATH
export PATH=/usr/local/bin/synergy:$PATH
# Google App Enging Path Stuff
export PATH=/Users/comcast/code/GoogleAppEngine:/Users/comcast/code/GoogleAppEngine/appengine_monkey:$PATH
// ==UserScript==
// @name dvr1
// @description TV Planner - add DVR button
// @include http://tvplanner.comcast.net/*
// ==/UserScript==
// john javes 8/26/2008
var thisElement;
var onTimeout = function(){
alert('time');