Skip to content

Instantly share code, notes, and snippets.

View wizardishungry's full-sized avatar
🐫
Copyright 1987-2013, Larry Wall

Jon Williams wizardishungry

🐫
Copyright 1987-2013, Larry Wall
View GitHub Profile
@wizardishungry
wizardishungry / .gitattributes
Created April 13, 2009 21:47
Apple's .plist files have two equivalent on-disk representations, binary and xml. These snippets help keep binary crap out of your repository.
*.plist filter=xmlplist
# surprise! Quartz patches are plists, too!
*.qtz filter=xmlplist
@wizardishungry
wizardishungry / export_address_book.applescript
Created April 22, 2009 18:40
Exports all current address book contacts as individual VCards; suitable for storing in Git :)
tell application "Address Book"
tell application "Finder" to get folder of (path to me) as Unicode text
set PathName to result
--
set npersons to count of people
repeat with i from 1 to npersons
set vcardinfo to (vcard of person i) as text
set personName to (name of person i) as text
set target_file to PathName & personName & ".vcf" as text
try
#!/bin/sh
#short circuit if screensaver is running
/usr/sbin/lsof /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine && exit
CAPTURE="/opt/local/bin/isightcapture -t jpg"
cd $HOME/Documents/captures
D1=`date +%y%m%d/%H`
D2=`date +%y%m%d.%H%M%S`
@wizardishungry
wizardishungry / MYSQL-lib.model.schema.sql
Created June 24, 2009 18:34
mysql schema for limetracker 1.0
# This is a fix for InnoDB in MySQL >= 4.1.x
# It "suspends judgement" for fkey relationships until are tables are set.
SET FOREIGN_KEY_CHECKS = 0;
#-----------------------------------------------------------------------------
#-- client
#-----------------------------------------------------------------------------
DROP TABLE IF EXISTS `client`;
sudo tcpdump -vi en0 'dst port 53'
command GrepWord :execute 'grep -r --exclude=metrics/coverage/* --exclude=*.log --exclude=*.*-base --exclude=vendor/* --exclude=*.tmp '.expand('<cword>').' *' | :copen | :cc
@wizardishungry
wizardishungry / myspace.css
Created December 28, 2009 21:54
myspace css for chmmr
body { background:url(http://farm3.static.flickr.com/2690/4052388930_f9a6e55e78_o.png) !important; background-position:top center;margin-top: 1500px; background-repeat: no-repeat !important; background-attachment: fixed !important; } body * { background: 0000ff99; color: orange !important; border:none !important; border-width:0 !important;} tr * {background:url(http://farm3.static.flickr.com/2690/4052388930_f9a6e55e78_o.png);}ul { background: white;}
table td { background: white; }
table, tr, td {border: none; background-color: transparent; padding: 0;}
table {border: none; background-color: transparent;}
table table {border: none; border-color: none; background-color: transparent;}
table table table {border: 1px solid; border-color: FFFF00; background-color: 18ff00; padding: 0;}
table table table table {border: none; border-color: none;}
a:link, a:link font, a:active, a:active font, a:visited, a:visited font, a.navbar:link, a.navbar:active, a.navbar:visited, a.redlink:link, a.redlink:active, a.redlink:visi
We couldn’t find that file to show.
@wizardishungry
wizardishungry / facebook-like_bomb.bookmarklet.js
Created February 2, 2010 01:14
javascript to be really funny on facebook
elms=document.getElementsByTagName('button');for(var like in elms){if(typeof elms[like] === 'object'&& elms[like].hasClass('like_link')){elms[like].click()}}
PANTS: HELLO ??? AM I LATE FOR BURNING MAN ??? IT IS COLD
PANTS: THEY PROMISED FOUR AND TWENTY BLACKBIRDS
PANTS: THIS IS MORE LIKE FOUR HUNDRED AND TWENTY BLACK DICKS ALL AT ONCE (WITHOUT REMORSE OR AN OUNCE OF POLITENESS I MIGHT ADD)