This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
| [mergetool] | |
| prompt = false | |
| keepBackup = false | |
| keepTemporaries = false | |
| [merge] | |
| tool = winmerge | |
| [mergetool "winmerge"] | |
| name = WinMerge |
| # $Rev$ from $Date$ | |
| # Catalog assumes your InstallESD is at the lastest build available on the Mac App Store. If you are on an older build, uncomment the combo updater. | |
| Installer Disc Builds: 12A269, 12B19, 12C60, 12D78 | |
| Output Volume Name: Macintosh HD | |
| Output File Name: 10.8_vanilla | |
| OS Updates: |
| (* | |
| Add to Reading List | |
| Script for Apple Mail to find http and https links in emails and add them to Safari's Reading List automatically. | |
| Best practice: setup with "any recipient contains '+reading'". Actions "mark as read", "execute AppleScript", "delete message", "stop evaluating rules" | |
| Created by Andreas Zeitler on 2012-10-07 | |
| Mac OS X Screencasts. www.macosxscreencasts.com | |
| *) |
| #!/bin/bash | |
| # Might as well ask for password up-front, right? | |
| sudo -v | |
| # Keep-alive: update existing sudo time stamp if set, otherwise do nothing. | |
| while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & | |
| # Example: do stuff over the next 30+ mins that requires sudo here or there. | |
| function wait() { |
| var http = require('http'); | |
| var server = http.createServer(function(req, res) { | |
| // console.log(req); // debug dump the request | |
| // If they pass in a basic auth credential it'll be in a header called "Authorization" (note NodeJS lowercases the names of headers in its request object) | |
| var auth = req.headers['authorization']; // auth is in base64(username:password) so we need to decode the base64 | |
| console.log("Authorization Header is: ", auth); |
| // | |
| // This server will start a bash shell and expose it | |
| // over socket.io to a browser. See ./term.html for the | |
| // client side. | |
| // | |
| // You should probably: | |
| // | |
| // npm install socket.io | |
| // curl -O https://github.com/LearnBoost/Socket.IO/raw/master/socket.io.min.js | |
| // |
| ;; Note: you need to create the ~/tmp directory in your home folder for this to work: | |
| (defun org-agenda-make-timeline-for-tree () | |
| "make a timeline view in agenda for current tree" | |
| (interactive) | |
| (org-copy-subtree) | |
| (find-file "~/tmp/agenda_tmp.org") | |
| (beginning-of-buffer) | |
| (let ((beg (point))) (end-of-buffer) (delete-region beg (point))) | |
| (org-paste-subtree) |
| #!/usr/bin/env ruby -w | |
| # brew-services(1) - Easily start and stop formulas via launchctl | |
| # =============================================================== | |
| # | |
| # ## SYNOPSIS | |
| # | |
| # [<sudo>] `brew services` `list`<br> | |
| # [<sudo>] `brew services` `restart` <formula><br> | |
| # [<sudo>] `brew services` `start` <formula> [<plist>]<br> |
| #!/bin/bash | |
| if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
| appify v3.0.1 for Mac OS X - http://mths.be/appify | |
| Creates the simplest possible Mac app from a shell script. | |
| Appify takes a shell script as its first argument: | |
| `basename "$0"` my-script.sh |