This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.plist filter=xmlplist | |
# surprise! Quartz patches are plists, too! | |
*.qtz filter=xmlplist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How do I get the first "echo" to output a tab character? Using ^V in bash to get a literal control character. | |
find Music/{iTunes/iTunes\ Music,Mp3\ Dump} -type f -exec echo -n {} " " \; -exec md5 -q {} \; >> music-md5sums.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setting: | |
password: | |
key: password | |
vendor: <?php echo trackerUser::crypt('LimeTracker'),"\n"; ?> | |
intent: | |
key: intent | |
vendor: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
user='WIZARDISHUNGRY' | |
password='youdidntreallythinksodidyou' | |
path=~/path/to/data/delicious.xml | |
cd `dirname $path` | |
curl --user $user:$password -fsS -o $path 'https://api.del.icio.us/v1/posts/all' | |
git add $path | |
git commit -m 'automated delicious backup' > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# foreach argument runs git pull | |
for arg in $@; do | |
cd $arg && | |
if [ -d ".git" ] ; then | |
/bin/echo -n "$arg: " | |
BRANCH=`git branch --no-color 2> /dev/null | sed -e 's/* \(.*\)/\1/'` | |
if [ "$BRANCH" == "master" ] ; then | |
git pull |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
This continually evolving script can be dropped into a LimeTracker install and used to diagnose problems. | |
**/ | |
if(isset($_GET['phpinfo'])) { phpinfo(); exit(); } | |
function assert_callcack($file, $line, $message) { | |
echo "assert failed: <code>$message</code><br>\n"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
propel: | |
class: sfPropelDatabase | |
param: | |
encoding: binary | |
persistent: true | |
# mysql | |
param: | |
dsn: mysql://user:password@localhost/limetracker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
@apache_setenv('no-gzip', 1); | |
@ini_set('zlib.output_compression', 0); | |
@ini_set('implicit_flush', 1); | |
function hardFlush() { | |
flush(); | |
ob_flush(); | |
} | |
header('Content-type: multipart/x-mixed-replace;boundary="rn9012"'); | |
for($i=0;$i<=10;$i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port install apache2 +darwin_9 | |
port install apr | |
port install apr-util | |
port install autoconf | |
port install autoconf213 | |
port install automake | |
port install bash-completion | |
port install bitchx | |
port install bzip2 | |
port install cclient |