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
// | |
// BaseViewController.m | |
// | |
// Created by Peter Boctor on 5/4/11. | |
// | |
// Copyright (c) 2011 Peter Boctor | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
set :application, "appname" | |
set :deploy_to, "/var/www" | |
set :scm, :git | |
set :repository, "git@github.com:user/app.git" | |
default_run_options[:pty] = true | |
set :user, "www-data" | |
set :domain, "foo.tld" | |
set :normalize_asset_timestamps, false |
desc "Pull a database dump from remote server, drop the local database, then import the dump" | |
task :pull_database_to_local do | |
# Build out temporary file name with timestamp for uniqueness | |
timestamp = get_timestamp | |
temp_file_name = "database_dump_#{timestamp}" | |
remote_file_name = remote_mysqldump(temp_file_name) | |
download(remote_file_name, "/tmp/#{temp_file_name}.sql.gz") |
/*global require, define */ | |
define(function (require) { | |
"use strict"; | |
var slice = Array.prototype.slice; | |
// Simple logging shim which allows log messages to be filtered and redirected to a logging solution | |
// of your choice when debugging. | |
var Logger = { | |
<?php | |
// make sure you have enough time to download all pictures | |
ini_set('max_execution_time', 6000); | |
ini_set('memory_limit', '64M'); | |
// include the Facebook PHP SDK - https://github.com/facebook/php-sdk/ | |
require 'facebook.php'; | |
// enter your App ID and App Secret | |
// register an FB App at https://developers.facebook.com/apps/ |
/* | |
* grunt-subgrunt | |
* http://gruntjs.com/ | |
* | |
* Copyright (c) 2012 "Cowboy" Ben Alman | |
* Licensed under the MIT license. | |
* https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT | |
*/ | |
'use strict'; |
/** | |
* Module dependencies | |
*/ | |
var request = require("superagent"); | |
/** | |
* Middleware to sign the request | |
*/ | |
var authorizeRequest = function(token) { |
# Capistrano Laravel 4 Deployment Tasks | |
# Watts Martin (layotl at gmail com) | |
# https://gist.github.com/chipotle/5506641 | |
# updated 14-Aug-2013 | |
# Assumptions: | |
# | |
# - You are using a .gitignore similar to Laravel's default, so your | |
# vendor directory and composer(.phar) are *not* under version control | |
# - Composer is installed as an executable at /usr/local/bin/composer |