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
;; This sets the Emacs "PATH" environment variable and the `exec-path` | |
;; variable to the same value your login shell sees. The reason this | |
;; is necessary is because of this: | |
;; | |
;; http://developer.apple.com/library/mac/#qa/qa1067/_index.html | |
;; | |
;; Basically apps launched from Finder inherit their environment from | |
;; a .plist file rather than the shell environment. | |
(defun set-exec-path-from-shell-PATH () |
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
(defun chomp (str) | |
"Chomp leading and tailing whitespace from STR." | |
(while (string-match "\\`\n+\\|^\\s-+\\|\\s-+$\\|\n+\\'" str) | |
(setq str (replace-match "" t t str))) str) | |
(defun get-keychain-password (account-name) | |
"Gets `account` keychain password from OS X Keychain" | |
(chomp | |
(shell-command-to-string | |
(concatenate |
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
/* | |
* node-ws - pure Javascript WebSockets server | |
* Copyright Bradley Wright <brad@intranation.com> | |
*/ | |
// Use strict compilation rules - we're not animals | |
'use strict'; | |
var net = require('net'), | |
crypto = require('crypto'); |
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
# Django licence | |
""" | |
Copyright (c) Django Software Foundation and individual contributors. | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, | |
are permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, | |
this list of conditions and the following disclaimer. |
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 | |
# Setup script designed to get a Ubuntu 10.4 LTS server | |
# up and running with secure defaults. | |
# Documentation for StackScripts | |
# is pretty sparse: see http://www.linode.com/stackscripts/ | |
# User-inputted values for new Linode | |
# <UDF name="user_hostname" Label="Hostname for new Linode" /> |
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 -e | |
# opinionated Flask bootstrap script | |
# assumes you'll be using MySQL, Fabric, and Blueprints | |
# creates a virtualenv and an Alembic migrations system | |
# The script will halt on any error, and remove the project dir if it created one | |
# accepts a single argument: a new directory name under which to create the project | |
# check that Python is installed | |
type python >/dev/null 2>&1 || { echo >&2 "Python doesn't appear to be installed. Aborting."; exit 1; } |
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
-- Send currently selected Mail.app message to OmniFocus 2 quick entry box, then archive it | |
-- Archive behaviour found at: http://vemedio.com/blog/posts/my-archive-email-apple-script | |
tell application "Mail" | |
set theSelectedMessages to selection | |
set the selected_message to item 1 ¬ | |
of the theSelectedMessages | |
set message_id to the message id of the selected_message | |
set my_subject to the subject of the selected_message | |
set message_url to "message://%3c" & message_id & "%3e" |
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
Debugger entered--Lisp error: (void-variable G43505) | |
ad-Advice-magit-status(#[(dir) "\304!\211\204 \305\306\307\"!\203 \310!\210\304! \205> |