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
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
# Mac OSX Mountain Lion | |
# Ruby on Rails Development Environment | |
# RVM | |
curl -L https://get.rvm.io | bash -s stable && rvm install 1.9.3 && rvm install 1.8.7 | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile | |
source ~/.bash_profile | |
# Disable rarely used RDOC |
# SSL self signed localhost for rails start to finish, no red warnings. | |
# 1) Create your private key (any password will do, we remove it below) | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
module ActionController | |
class Metal | |
attr_internal :cached_content_for | |
end | |
module Caching | |
module Actions | |
def _save_fragment(name, options) | |
return unless caching_allowed? |
# this works with oauth 0.5.1 | |
client = OAuth2::Client.new(CLIENT_ID, CLIENT_SECRET, | |
:authorize_url => "/o/oauth2/auth", | |
:token_url => "/o/oauth2/token", | |
:site => 'https://accounts.google.com/') | |
redirect_uri = "#{SERVER_URL}/oauth2callback" | |
get '/auth' do |
module Sunspot | |
module SessionProxy | |
class NamespacedSessionProxy | |
class MultipleConnectionsError < StandardError | |
def initialize | |
super("Can not perform operations against multiple namespaced (connections)") | |
end | |
end | |
class NotImplementedError < StandardError | |
def initialize |
module ActionController | |
class Metal | |
attr_internal :cached_content_for | |
end | |
module Caching | |
module Actions | |
def _save_fragment(name, options) | |
return unless caching_allowed? |