Skip to content

Instantly share code, notes, and snippets.

@zzot
zzot / ensure_mate.scpt
Created March 15, 2010 15:04 — forked from danmackinlay/ensure_mate.scpt
Actually, you can use the standard UNIX interpreter syntax directly with osascript; just mark the file as executable and you're set.
#!/usr/bin/osascript
-- invoke with $ osascript ensure_mate.scpt /path/to/project
-- or create a wrapper script that looks like this:
-- #!/bin/sh
-- osascript ~/bin/ensure_mate.scpt $@ &
-- Created 2010 Dan MacKinlay and hereby released into the public domain
on run (wantedPath)
set wantedPathFound to false
global wantedDoc
@zzot
zzot / license
Created January 27, 2010 16:15 — forked from defunkt/license
MIT License Generator
#!/bin/sh -e
# Usage: license
# Prints an MIT license appropriate for totin' around.
#
# $ license > COPYING
#!/bin/sh
echo "Copyright (c) `date +%Y` Josh Dady
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the