This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task :before_deploy_symlink do | |
resque.stop | |
resque.tweetstream.restart | |
end | |
before 'deploy:create_symlink', 'before_deploy_symlink' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
set -g default-terminal "screen-256color" | |
setw -g mode-keys vi | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
set -g mode-mouse on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% brew doctor | |
Warning: /usr/X11 is a symlink | |
Homebrew's X11 support has only be tested with Apple's X11. | |
In particular, "XQuartz" and "XDarwin" are not known to be compatible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a new file at /var/named/dev.zone | |
$TTL 60 | |
$ORIGIN dev. | |
@ 1D IN SOA localhost. root.dev. (46 3H 15M 1W 1D) | |
1D IN NS localhost. | |
1D IN A 127.0.0.1 | |
*.dev. 60 IN A 127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP/1.1 200 OK | |
Date: Sun, 19 Feb 2012 21:07:42 GMT | |
Server: Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.11 | |
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.11 | |
ETag: "76d301abb828ddc6a6f5440c58ffe945" | |
Cache-Control: max-age=0, private, must-revalidate | |
X-UA-Compatible: IE=Edge,chrome=1 | |
X-Runtime: 0.898667 | |
Set-Cookie: _rubygems_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlMjljYWNhZDk3NDVjYzMyMGZiNWQ1NDU2YTE3YTQ2YTRJIhBfY3NyZl90b2tlbgY7AEZJIjFTRFpLa3NvRjdzZndUMDgxeTRpYkoyZTFLRkZFeEtOYURONEZUZWJ6WjJNPQY7AEY%3D--81f88da37dff529bc0d87416a7ebae593dd7a6ce; path=/; HttpOnly | |
Status: 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sam@ubuntu:~$ sudo cat /etc/sudoers | |
# | |
# /etc/sudoers | |
# | |
# Generated by Chef for ubuntu.local | |
# | |
Defaults !lecture,tty_tickets,!fqdn | |
# User privilege specification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[samgranieri]% knife ssh "role:webserver" "sudo chef-client" -x sam | |
ubuntu.local [Sun, 16 Jan 2011 22:29:13 -0600] INFO: Starting Chef Run (Version 0.9.12) | |
ubuntu.local [Sun, 16 Jan 2011 22:29:15 -0600] INFO: Storing updated cookbooks/essential_packages/recipes/default.rb in the cache. | |
ubuntu.local [Sun, 16 Jan 2011 22:29:17 -0600] ERROR: bash[update to newer vim] (/var/chef/cache/cookbooks/essential_packages/recipes/default.rb:13:in `from_file') had an error: | |
ubuntu.local "bash" "/tmp/chef-script20110116-3977-tf1ga-0" returned 1, expected 0 | |
ubuntu.local /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:184:in `handle_command_failures' | |
ubuntu.local /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:131:in `run_command' | |
ubuntu.local /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/provider/execute.rb:49:in `action_run' | |
ubuntu.local /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/provider/script.rb:33:in `action_run' | |
ubuntu.local /usr/lib/ruby/gems/1. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash "update to newer vim" do | |
cwd "/tmp" | |
code <<-EOH | |
apt-add-repository ppa:passy/vim | |
apt-get update | |
apt-get upgrade | |
EOH | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cap deploy | |
triggering start callbacks for `deploy' | |
* executing `multistage:ensure' | |
*** Defaulting to `qa' | |
* executing `qa' | |
* executing `deploy' | |
* executing `deploy:update' | |
** transaction: start | |
* executing `deploy:update_code' | |
executing locally: "git ls-remote [email protected]:ORG_NAME/APP_NAME.git HEAD" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[samgranieri]% cap deploy | |
triggering start callbacks for `deploy' | |
* executing `multistage:ensure' | |
*** Defaulting to `qa' | |
* executing `qa' | |
* executing `deploy' | |
* executing `deploy:update' | |
** transaction: start | |
* executing `deploy:update_code' | |
executing locally: "git ls-remote [email protected]:ORG_NAME/APP_NAME.git HEAD" |