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| install PostgreSQL 9 in Mac OSX via Homebrew | |
| Mac OS X Snow Leopard | |
| System Version: Mac OS X 10.6.5 | |
| Kernel Version: Darwin 10.5.0 | |
| Install notes for PostgreSQL 9.0.1 install using Homebrew: | |
| sh-3.2# brew install postgresql |
| /** | |
| * converted stringify() to jQuery plugin. | |
| * serializes a simple object to a JSON formatted string. | |
| * Note: stringify() is different from jQuery.serialize() which URLEncodes form elements | |
| * UPDATES: | |
| * Added a fix to skip over Object.prototype members added by the prototype.js library | |
| * USAGE: | |
| * jQuery.ajax({ |
| # This is not a complete Nginx configuration! It only shows the relevant parts for integrating Diaspora. | |
| # [...] | |
| http { | |
| # Your standard server configuration goes here | |
| # [...] | |
| gzip_static on; |
| #!/bin/bash | |
| # from | |
| # http://bergamini.org/computers/creating-favicon.ico-icon-files-with-imagemagick-convert.html | |
| convert source-WxW.png -resize 256x256 -transparent white favicon-256.png | |
| convert favicon-256.png -resize 16x16 favicon-16.png | |
| convert favicon-256.png -resize 32x32 favicon-32.png | |
| convert favicon-256.png -resize 64x64 favicon-64.png | |
| convert favicon-256.png -resize 128x128 favicon-128.png |
| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| <?php | |
| /** | |
| * Plugin Name: Auto-embeds Disabler | |
| * Version: 0.1 | |
| * Description: Disables the auto-embeds function in WordPress 3.5 | |
| * Author: Dominik Schilling | |
| * Author URI: http://wphelper.de/ | |
| * Plugin URI: http://wpgrafie.de/1078/ | |
| * | |
| * |
rsync (Everyone seems to like -z, but it is much slower for me)
| <?php | |
| /** | |
| * A helper file for Laravel 5, to provide autocomplete information to your IDE | |
| * Generated for Laravel 5.5.13 on 2017-09-28. | |
| * | |
| * @author Barry vd. Heuvel <[email protected]> | |
| * @see https://github.com/barryvdh/laravel-ide-helper | |
| */ | |
| namespace { | |
| exit("This file should not be included, only analyzed by your IDE"); |