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
## CURL ## | |
Started GET "/" for 127.0.0.1 at 2013-10-10 17:45:09 +0000 | |
Processing by PagesController#show as | |
Dalli/SASL authenticating as app14233431%40heroku.com | |
Dalli/SASL: Authenticated | |
Rendered layouts/_clicky_external.html.haml (5.6ms) | |
Rendered layouts/_snapengage.html.haml (4.3ms) | |
Rendered pages/home.html.haml within layouts/corporate (2801.9ms) | |
Completed 200 OK in 2819ms (Views: 581.3ms | ActiveRecord: 4756.6ms) |
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
worker_processes 5 | |
user "deploy" | |
working_directory "/srv/www/meetfm/current" | |
listen "/srv/www/meetfm/shared/sockets/unicorn.sock", :backlog => 1024, :tcp_nodelay => tr | |
ue, :tcp_nopush => false, :tries => 5, :delay => 0.5, :accept_filter => "httpready" | |
timeout 60 |
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
{ | |
"deploy": { | |
"discourse": { | |
"database": { | |
"adapter": "postgresql", | |
"host": "aaa.amazonaws.com", | |
"port": "5432", | |
"database": "bbb", | |
"pool": "5", | |
"username": "ccc", |
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
NODE: ["opsworks_commons", "opsworks_agent", "opsworks", "opsworks_initial_setup", "pa | |
ckages", "opsworks_bundler", "opsworks_rubygems", "ruby", "ruby_enterprise", "dependencies", "ebs", "a | |
pache", "ganglia", "logrotate", "deploy", "rails", "unicorn", "applications", "ssh_users", "tags", "la | |
nguages", "kernel", "os", "os_version", "network", "counters", "hostname", "fqdn", "domain", "ipaddres | |
s", "macaddress", "ip6address", "ohai_time", "chef_packages", "keys", "dmi", "ec2", "cloud", "lsb", "p | |
latform", "platform_version", "platform_family", "virtualization", "etc", "current_user", "command", " | |
root_group", "filesystem", "block_device", "memory", "cpu", "uptime_seconds", "uptime", "idletime_seco | |
nds", "idletime", "recipes", "roles"] |
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
[2013-09-24T15:33:57+00:00] DEBUG: Re-raising exception: Chef::Exceptions::ResourceNotFound - resource template[/etc/monit/conf.d/unicorn_web_app-splice_web.monitrc] is configured to notify resource service[monit] with action restart, but service[monit] cannot be found in the resource collection. |
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
{_, input} = File.read("input.txt") | |
rows = Enum.map(String.split(input, "\n"), fn(row) -> | |
Enum.map(String.split(row), fn(n) -> | |
{number, _} = String.to_integer(n) | |
number | |
end) | |
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
defmodule MyMod do | |
def sum(list) | |
Enum.reduce(list, 0, fn(x, acc) -> x + acc end) | |
end | |
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
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green |
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
<%= render :partial => 'photos/form', :collection => @billboard.photos, :locals => {:resize => true} %> |
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
<% @billboard.photos.each do |photo| %> | |
<div class="modal-container" style="display: none;"> | |
<div class="modal-form"> | |
<%= render :partial => 'photos/_sample', :locals => {:resize => 'true', :photo => photo} %> | |
</div> | |
</div> | |
<% end %> |