This file contains hidden or 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 | |
# VPN_GATEWAY is the remote address of the vpn tunnel | |
# when ppp executes this script it will pass several values to it | |
# $5 will hold the remote gateway | |
VPN_GATEWAY=192.168.20.239 | |
if [ "${5:-}" = "${VPN_GATEWAY}" ] | |
then | |
/sbin/route add 192.168.30.0/24 $5 | |
fi |
This file contains hidden or 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
(* | |
Run as Automator Service and add keyboard shortcut in "Keyboard" preference pane. | |
*) | |
on run {input, parameters} | |
tell application "TaskPaper" | |
tell front document | |
tell project named "Inbox" |
This file contains hidden or 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
#!/usr/local/bin/ruby | |
# To parse GitHub Flavored Markdown | |
# | |
# Setup | |
# $ sudo easy_install pygments | |
# $ sudo gem install pygments.rb | |
# $ sudo gem install redcarpet | |
require 'redcarpet' | |
require 'pathname' |
This file contains hidden or 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/bash | |
# https://gist.github.com/2371406 | |
# version 0.1 - Not much error handling yet. | |
# version 0.2 - Added --edit command | |
# | |
# Add to ~/bin/pw and chmod +x it. | |
# See bottom of file for usage. | |
PASSWORD_FILE=~/Documents/.passwords.csv |
This file contains hidden or 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 "Google Chrome" | |
set theTitle to title of active tab of front window | |
set theURL to URL of active tab of front window | |
end tell | |
tell application "OmniFocus" | |
set theDoc to default document | |
set theTask to theTitle | |
set theNote to theURL | |
This file contains hidden or 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
# Dynamically load virtualenvwrapper functions to reduce shell startup | |
# time. | |
# | |
# Copyright 2012 Aron Griffis <[email protected]> | |
# Released under the GNU GPL v3 | |
####################################################################### | |
# Python virtualenvwrapper loads really slowly, so load it on demand. | |
if [[ $(type -t workon) != function ]]; then | |
virtualenv_funcs=( workon deactivate mkvirtualenv ) |
This file contains hidden or 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
#!/usr/bin/python | |
# VertiCal: A slim monthly calendar (that's perfect for GeekTool) | |
# by Rob Dumas | |
# Copyright (c) 2012 GNU Public License version 3. | |
# See http://www.gnu.org/licenses/licenses.html for details on this license. | |
import sys | |
import datetime | |
import calendar |
This file contains hidden or 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
/* | |
Drafts App Bookmarklets (http://agiletortoise.com/drafts) | |
Author: Sean Korzdorfer | |
Date: 14:01:43 Wed May 02 2012 | |
Nota Bene: It's probably best to have the bookmarklet create a script tag that includes an external JS. | |
See: https://gist.github.com/2777049 | |
Sends the current Mobile Safari Tab to Drafts app as Markdown link with date and time stamps |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>DVTConsoleDebuggerInputTextColor</key> | |
<string>0 0 0 1</string> | |
<key>DVTConsoleDebuggerInputTextFont</key> | |
<string>Menlo-Bold - 11.0</string> | |
<key>DVTConsoleDebuggerOutputTextColor</key> | |
<string>0 0 0 1</string> |