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
<!doctype html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<script src="client/socket.io.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript" charset="utf-8"> | |
var socket = new io.Socket(null, {rememberTransport: false, port: 8080}); | |
socket.connect(); | |
socket.addEvent('message', function(data) { | |
$('body').append('<p>' + $.map(data, function(e,i) { |
[alias] | |
# install t first: http://github.com/sjl/t | |
todo = !python ~/path/to/t.py --task-dir "$(git rev-parse --show-toplevel)" --list TODO | |
bug = !python ~/path/to/t.py --task-dir "$(git rev-parse --show-toplevel)" --list BUGS |
''' | |
streaming_api.py | |
Written May 17-20, 2011 by Josiah Carlson | |
Released under the GNU GPL v2 | |
available: http://www.gnu.org/licenses/gpl-2.0.html | |
Other licenses may be available upon request. | |
Given a Redis server and a task queue implementation, this code implements the |
require 'yaml' | |
require 'uri' | |
require 'tempfile' | |
require 'tmpdir' | |
SDK_DIR = "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk" | |
TESTFLIGHT_URL = 'http://testflightapp.com/api/builds.json' | |
PROJECT_DIR = File.dirname __FILE__ | |
RUBIOS_DIR = File.join(PROJECT_DIR, 'rubios') |
var express = require('express'); | |
var sys = require('util'); | |
var oauth = require('oauth'); | |
var app = express.createServer(); | |
var _twitterConsumerKey = process.env['TWITTER_CONSUMER_KEY']; | |
var _twitterConsumerSecret = process.env['TWITTER_CONSUMER_SECRET']; | |
console.log("_twitterConsumerKey: %s and _twitterConsumerSecret %s", process.env['TWITTER_CONSUMER_KEY'], process.env['TWITTER_CONSUMER_SECRET']); |
$(function () { | |
"use strict"; | |
// for better performance - to avoid searching in DOM | |
var content = $('#content'); | |
var input = $('#input'); | |
var status = $('#status'); | |
// my color assigned by the server | |
var myColor = false; |
Now moved here... | |
https://github.com/jonohunt/Mute-filters-for-Tweetbot |
#!/usr/bin/env python | |
# A quick and dirty script to rename a pinboard.in tag. | |
# I'll probably update this become a proper command line app one day | |
import urllib2 | |
import pinboard | |
pinuser = "" | |
pinpasswd = "" |
tell application "System Events" | |
tell process "Finder" | |
if window 1 exists then | |
tell application "Finder" | |
set thePath to get quoted form of POSIX path of (target of front Finder window as text) | |
return "cd " & thePath & return | |
end tell | |
else | |
display alert "Finder doesn't have a window open." as warning giving up after 2 | |
end if |