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> | |
| <title>client-side script.js node example</title> | |
| <script src="script.js"></script> | |
| <p>This is a little html page</p> |
| # Git Shortcuts | |
| alias gs='git status' | |
| alias gst='git status -sb' | |
| alias ga='git add' | |
| alias gau='git add -u' # Removes deleted files | |
| alias gp='git pull' | |
| alias gpu='git push' | |
| alias gc='git commit -v' | |
| alias gca='git commit -v -a' # Does both add and commit in same command, add -m 'blah' for comment | |
| alias gco='git checkout' |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| /* | |
| * Load external modules and init variables | |
| */ | |
| var twitter = require('ntwitter'), | |
| http = require('http'), | |
| bitly = require('bitly'), | |
| b = new bitly('USER', 'API_KEY'), | |
| tweeted = {}, | |
| load_time = Math.round(new Date().getTime() / 1000), | |
| score_threshold = 100; |
| Subject: Thanks for signing up! | |
| Date: {{date}} | |
| To: {{recipient}} | |
| From: {{sender}} | |
| MIME-Version: 1.0 | |
| Content-Type: text/plain | |
| Thanks for signing up for the Foobar service! | |
| Your email address is: {{recipient}} |
| The "WTH" Public License | |
| Copyright (C) 2012 Paul Isaac | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| #. You can do whatever-the-heck you like with this code. |
| #!/bin/sh | |
| IF=eth0 | |
| iptables -F | |
| iptables -t nat -F | |
| iptables -X | |
| iptables -Z | |
| # drop all packets by default |
| " this is the configuration file for linux and mac systems | |
| " symlink this to your home folder as .vimrc | |
| " It loads pathogen and loads all modules from ~/.vim/bundles. | |
| " It then loads ~/.vimrc_main which has the main | |
| " configuration that works across all systems. | |
| call pathogen#runtime_prepend_subdirectories(expand('~/.vim/bundles')) | |
| call pathogen#helptags() | |
| source ~/.vimrc_main |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |