Skip to content

Instantly share code, notes, and snippets.

View peteburtis's full-sized avatar

Pete Burtis peteburtis

View GitHub Profile
@peteburtis
peteburtis / gist:3693384
Created September 10, 2012 19:49
Goddady server list for /etc/hosts
# Get onto godaddy.com to change your nameservers:
# In /etc/hosts add
208.109.4.201 godaddy.com
208.109.4.201 www.godaddy.com
216.69.149.215 mya.godaddy.com
216.69.149.90 idp.godaddy.com
@peteburtis
peteburtis / gist:5251160
Created March 27, 2013 02:44
I take credit for less than 10% of this. Sadly I've lost the source.
#add git branch to prompt; paste at the end of your .bash_profile
function parse_git_branch_and_add_brackets {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\[\1\]/'
}
PS1="\h:\W\[\033[0;31m\]\$(parse_git_branch_and_add_brackets)\[\033[0m\] \u\$ "
@peteburtis
peteburtis / gist:6447277
Last active December 22, 2015 08:48
Folder lock out bug in FileBase 0.6
If you:
a) Hilight **multiple files at the same time** in the FileBase interface
-and-
b) Click the Download button or pick Download from the File menu (but **not** if
you download by dragging and dropping)
FileBase will clobber the permissions (but not the owner) of the **folder you're
@peteburtis
peteburtis / Download ADN Photos Daily.scpt
Last active January 4, 2016 06:49
This is an AppleScript that works with FileBase 0.8 (free beta from filebase.co) to download a subset of App.net photos. It remembers which photos it's downloaded before using FileBase's tagging feature, so it's suitable to run frequently (perhaps daily) via a calendar event, cron job, or some other mechanism.
--
-- An AppleScript to download a subset of App.net photos
-- into a folder on your local computer.
--
-- By default, it downloads everything to '~/Pictures/ADN Photos'
--
-- It remembers which photos have been downloaded and
-- which have not (via FileBase's tagging feature),
-- making it suitable to run every day via a calendar
-- event or cron job or equivalent.
@peteburtis
peteburtis / Email App.net Links.scpt
Last active January 4, 2016 07:59
A simple AppleScript droplet that uploads files and/or folders dropped on it to App.net, and then creates a new outgoing Mail.app message pre-populated with App.net's public links to those files/folders.