Skip to content

Instantly share code, notes, and snippets.

[client]
default-character-set = utf8
[server]
default-character-set = utf8
default-collation = utf8_general_ci
innodb_buffer_pool_size = 256M
user user group;
worker_processes 5;
pid /var/run/nginx.pid;
events {
worker_connections 8192;
use epoll;
}
http {
>> n = Notification.find(:first, :include => [{:event, :target}], :order => 'id DESC')
Notification Load (0.000361) SELECT * FROM `notifications` ORDER BY id DESC LIMIT 1
Event Load (0.000306) SELECT * FROM `events` WHERE (`events`.`id` IN (45))
ActivityItem Load (0.000320) SELECT * FROM `activity_items` WHERE (`activity_items`.`id` IN (3))
=> #<Notification id: 28, event_id: 45, user_id: 3, sent: false, created_at: "2008-10-03 21:58:52", updated_at: "2008-10-03 21:58:52", subscription_id: 1>
>> n.event.target
=> #<Event id: 45, created_at: "2008-10-03 21:58:52", deleted: nil, info: "", detail: "<subject>$0</subject> <predicate>updated</predicate...", event_category_id: nil, system_only: false, verb: "update", actor_type: "User", actor_id: 3, target_type: "ActivityItem", target_id: 3, obfuscated_id: "395adf80f8ba3cf9a63e07e5f129db84249ebef5", notifications_made: true, owner_id: nil, owner_type: nil, updated_at: "2008-10-03 21:58:52">
# Lets us trigger monit reloads from other modules
# monit_file { "nginx": ensure => present }
define monit_file($ensure = 'absent') {
file { "/etc/monit.d/${name}.run":
owner => "root",
group => "root",
mode => "0644",
replace => true,
source => "puppet:///${name}/${name}.run",
ensure => $ensure,
[color]
diff = auto
status = auto
branch = auto
interactive = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
<!-- Define your application-wide tags here -->
<include src="rapid" plugin="hobo"/>
<set-theme name="puppetshow"/>
<def tag="app-name">Puppet Show</def>
<def tag="page" extend-with="app">
<page-without-app merge>
<!-- Define your application-wide tags here -->
<include src="rapid" plugin="hobo"/>
<set-theme name="puppetshow"/>
<def tag="app-name">Puppet Show</def>
<def tag="page" extend-with="app">
<page-without-app merge>
Tue Nov 11 06:41:19 -0800 2008: HTTP parse error, malformed request (127.0.0.1): #<Mongrel::HttpParserError: HTTP element REQUEST_PATH is longer than the 1024 allowed length.>
Tue Nov 11 06:41:19 -0800 2008: REQUEST DATA: "GET /trynow/facebook/online_collaboration_all/https://app.onehub.com/trynow/facebook/online_collaboration_all/https://app.onehub.com/trynow/facebook/online_collaboration_all/https://app.onehub.com/trynow/facebook/online_collaboration_all/https://app.onehub.com/trynow/facebook/online_collaboration_all/https://app.onehub.com/trynow/facebook/online_collaboration_all/https://app.onehub.com/trynow/facebook/online_collaboration_all/https://app.onehub.com/trynow/facebook/online_collaboration_all/https://app.onehub.com/trynow/facebook/online_collaboration_all/https://app.onehub.com/trynow/facebook/online_collaboration_all/https://app.onehub.com/trynow/facebook/online_collaboration_all/https://app.onehub.com/trynow/facebook/online_collaboration_all/https://app.onehub.com/trynow/facebook/onlin
#!/usr/bin/ruby
require 'rubygems'
require 'right_aws'
access_key = 'abc'
secret = 'xyz'
src = 'src'
dest = 'dest'
[color]
diff = auto
status = auto
branch = auto
interactive = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]