most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
<?php | |
// Register an app: http://dev.twitter.com/apps | |
define('CONSUMER_KEY', 'YOUR CONSUMER KEY'); | |
define('CONSUMER_SECRET', 'YOUR CONSUMER SECRET'); | |
define('TWITTER_TOKEN', ''); | |
define('TWITTER_TOKEN_SECRET', ''); | |
$oauth = new OAuth(CONSUMER_KEY, CONSUMER_SECRET, OAUTH_SIG_METHOD_HMACSHA1, OAUTH_AUTH_TYPE_URI); |
#! /bin/sh | |
# boranj! | |
# see instructions here: | |
# http://broadcasterproject.wordpress.com/2010/07/14/how-to-make-a-timelapse-shared-memory-server/ | |
# see also screencast version here: http://plebiandesign.com/blog/?p=552 | |
# ************* for capturing frames from a camera: | |
# ************* LINUX is STREAMER | |
# ************* MAC is WACAW | |
# whatever you want to be your directory of files | |
cd ~/Pictures/OMPD |
<?php | |
/** | |
* A simple Facebook PHP example. | |
* | |
* - This is not a "Facebook SDK". | |
* - This example uses Curl, Hash, JSON, Session extensions. | |
* - This does not use the JavaScript SDK, nor the cookie set by it. | |
* - This works with Canvas, Page Tabs with IFrames, the Registration Plugin | |
* and with any other flow which uses the signed_request. |
<?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>Label</key> | |
<string>com.github.mxcl.homebrew.daemontools</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/svscanboot</string> | |
</array> |
<!DOCTYPE HTML> | |
<html xmlns:ng="http://angularjs.org" ng:controller="Main"> | |
<head> | |
<title ng:bind-template="Prefix: {{pageTitle}}"></title> | |
<script type="text/javascript" src="build/angular.js" ng:autobind></script> | |
<script type="text/javascript"> | |
function Main(){} | |
function Child(){} | |
</script> |
server { | |
listen 80; | |
server_name localhost; | |
# ... other default site stuff, document root, etc. ... | |
location ~ ^/~(?<userdir_user>.+?)(?<userdir_uri>/.*)?$ { | |
alias /home/$userdir_user/public_html$userdir_uri; | |
index index.html index.htm index.php; | |
autoindex on; |
# using libfaac on Mac OS X 10.6.8 | |
# -vn : not copying video | |
# -acodec : specify codec used in flv file | |
# -ac : channels. 1 is for mono, 2 is for stereo | |
# -ab : specify bitrate for output file (note that rate is not kbps but bps) | |
# -ar : sampling frequency (Hz) | |
# -threads: number of threads for encoding | |
# "-strict experimental" is necessary to use libfaac | |
ffmpeg -y -i xxxxxxxxxxx.flv -vn -acodec aac -ac 2 -ab 128000 -ar 44100 -threads 4 -strict experimental xxxxx.m4a |
$ brew doctor | |
Your system is raring to brew. | |
$ brew update | |
Already up-to-date. | |
$ brew install -v gpg | |
==> Downloading ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.12.tar.bz2 | |
File already downloaded in /Users/ivaughan/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/ivaughan/Library/Caches/Homebrew/gnupg-1.4.12.tar.bz2 |