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| # Bash snippet to open new shells in most recently visited dir. | |
| # Useful if you want to open a new terminal tab at the present | |
| # tab's location. | |
| # | |
| # Put this in your .bashrc or whatever. | |
| pathed_cd () { | |
| if [ "$1" == "" ]; then | |
| cd | |
| else |
| === Epic Snow Leopard Upgrayyyyd Guide === | |
| Son, you’re now living in the land of 64-bit systems. | |
| That means that some of your 32-bit shit is now broken. | |
| Not all is lost. | |
| == Fixing MySQL weirdness |
| #!/usr/bin/env ruby | |
| ## | |
| # alert_me | |
| # | |
| # A simple delay timer to send a growl notification at specific time with a | |
| # message. Useful for when you need to check on something later | |
| # | |
| # echo "Go look at system 42" | alert_me in 2 hours | |
| # |
| require ".bundle/environment" | |
| Bundler.setup | |
| require "action_controller/railtie" | |
| class FooController < ActionController::Base | |
| def bar | |
| self.response_body = "HELLO" | |
| end | |
| end |
This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at Develop.GitHub.com.
OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.
| This is an example of using RVM's Project .rvmrc file | |
| to have it automatically bootstrap your environment, including bundler. | |
| This could be further expanded to do anything you require :) | |
| The important thing to remember is that the purpose of these files is | |
| to allow you to very easily have your 'project context' (aka 'environment') | |
| loaded automatically for you when you enter the project in the shell (cd). |
| user app; | |
| worker_processes 2; | |
| error_log /home/app/logs/nginx.error.log info; | |
| events { | |
| worker_connections 1024; | |
| } | |
| " Vim color file | |
| " Converted from Textmate theme Twilight using Coloration v0.2.5 (http://github.com/sickill/coloration) | |
| set background=dark | |
| highlight clear | |
| if exists("syntax_on") | |
| syntax reset | |
| endif |