Skip to content

Instantly share code, notes, and snippets.

Go through the tutorial at http://postpostmodern.com/instructional/screenwatcher/ and then come back here.
Here’s the way I got it to work on OS X Leopard.
Change the shell script to:
#!/bin/bash
PID=`ps -ax | grep loginwindow.app | grep -v grep | awk '{print $1}'`
# Change to a Screenwatcher directory in your home directory
cd /Users/patrick/Pictures/Screenwatcher
@halbtuerke
halbtuerke / WordPress Journal
Created November 11, 2008 13:18
Automatic WordPress Journal
-----------------------------------------------------
-- WordPress Journal
-----------------------------------------------------
-- Created by Graham English
-- http://integral.grahamenglish.net
-- http://consulting.grahamenglish.net
-- http://www.grahamenglish.net/blog
-----------------------------------------------------
-- Released under the Creative Commons Attribution, ShareAlike license.
-----------------------------------------------------
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
#!/usr/bin/env python
"""
This small script takes the URL to one of your Pownce Export XML-files
and downloads it including (as far as I can tell) all your files into a
folder, which you can specify with the -o option::
$ python pownce-files.py <url_to_export>
Requirements: Python >= 2.5, < 3.0
"""
@halbtuerke
halbtuerke / my-twm.el
Created December 22, 2008 10:14 — forked from wilkes/my-twm.el
(require 'cl)
(defun twm-make-full-screen ()
(when (and (featurep 'aquamacs) (not (frame-parameter nil 'fullscreen)))
(aquamacs-toggle-full-frame)))
(defun twm-focus-window ()
"assumes the largest window is the focus window"
(get-largest-window))
export PATH=/Users/patrick/Applications:/usr/local/git/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:./cake/console:/Applications/xampp/xamppfiles/htdocs/cake_1.2_rc2/cake/console:$PATH
export TERM=xterm-color
export CLICOLOR=true
export LSCOLORS=exfxcxdxbxegedabagacad
export LC_CTYPE=en_US.UTF-8
export EDITOR="mate -w"
export CVSEDITOR="mate -w"
export SVN_EDITOR="mate -w"
export PKG_CONFIG_PATH="/Library/Frameworks/Mono.framework/Versions/1.9.1/lib/pkgconfig:/opt/local/lib/pkgconfig"
set completion-ignore-case On
set show-all-if-ambiguous on
"\e[A": history-search-backward
"\e[B": history-search-forward
# Cycle through completions by pressing tab
"\t": menu-complete
#!/usr/bin/ruby
# Dropzone Destination Info
# Name: Install Application with Backup
# Description: Drop an application disk image and it will be mounted, the old .app (if already existing) backed up, installed and ejected. The application will then be launched.
# Handles: NSFilenamesPboardType
# Creator: Patrick Mosby
# URL: http://www.schreiblogade.de
# IconURL: http://aptonic.com/destinations/icons/applications.png
[alias]
co = checkout
st = status
ci = commit
[apply]
whitespace = fix
[color]
status = auto
diff = auto
branch = auto