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| worker: QUEUE=* bundle exec rake environment resque:work | |
| scheduler: bundle exec rake environment resque:scheduler |
| # | |
| # Wide-open CORS config for nginx | |
| # | |
| location / { | |
| if ($request_method = 'OPTIONS') { | |
| add_header 'Access-Control-Allow-Origin' '*'; | |
| # |
| #!/bin/sh | |
| echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
| read inputline | |
| name="$inputline" | |
| echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
| read inputline | |
| url="$inputline" |
| #!/usr/bin/env escript | |
| -export([main/1]). | |
| main([]) -> | |
| {ok,[AppConfig]} = file:consult("app.config"), | |
| [Http] = get_config_value(AppConfig, riak_core, http), | |
| io:format("HTTP Address: ~p~n", [Http]), | |
| Updated = update_config_value(AppConfig, riak_core, http, [{"0.0.0.0", 8080}]), | |
| io:format("Original Values:~n~p~n", [AppConfig]), | |
| io:format("Updated Values:~n~p~n", [Updated]). |
| #!/bin/bash | |
| # | |
| # This script installs and configures couchdb on a fresh Amazon Linux AMI instance. | |
| # | |
| # Must be run with root privileges | |
| # Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5) | |
| # | |
| export BUILD_DIR="$PWD" |
| require File.join(File.dirname(__FILE__), 'deploy/nginx') | |
| require File.join(File.dirname(__FILE__), 'deploy/log') | |
| default_run_options[:pty] = true | |
| set :ssh_options, { :forward_agent => true } | |
| set :application, "appname" | |
| set :repository, "git@giturl" | |
| set :scm, :git |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
| #!/bin/bash | |
| sudo apt-get -qq install build-essential g++ apache2-utils libssl-dev curl | |
| latest_dir="http://nodejs.org/dist/latest/"; | |
| latest_version=$(curl -s "$latest_dir" | grep "tar\.gz" | sed -re 's/.*?href="node-(v[0-9\.]+)\.tar\.gz".*/\1/'); | |
| cleanup() { | |
| rm -rf "$temp"; | |
| } |
| #!/bin/bash | |
| # | |
| # This script installs and configures rabbitmq on a fresh Amazon Linux AMI instance. | |
| # Requires Erlang to be installed | |
| # | |
| export BUILD_DIR="$PWD" | |
| wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.7.1/rabbitmq-server-generic-unix-2.7.1.tar.gz |