This file contains hidden or 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
def filter_grouped | |
count = 0 | |
begin | |
timeout(3) do |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# | |
# This handler creates and resolves PagerDuty incidents, refreshing | |
# stale incident details every 30 minutes | |
# | |
# Copyright 2011 Sonian, Inc <[email protected]> | |
# | |
# Released under the same terms as Sensu (the MIT license); see LICENSE | |
# for details. |
This file contains hidden or 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
[2012-12-05T00:55:04+00:00] FATAL: Errno::ENOENT: service[redis] (redis::_server_service line 14) had an error: Errno::ENOENT: No such file or directory - /etc/init.d/redis-server stop |
This file contains hidden or 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
%w{/var/cache/local /var/cache/local/preseeding}.each do |dirname| | |
directory dirname do | |
owner "root" | |
group "root" | |
mode 0644 | |
action :create | |
end | |
end |
This file contains hidden or 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
Boil 1.5c water | |
Melt 1 pat butter and add .5c steel cut oats; toast for 2min | |
Add boiling water to oats, simmer for 25min, stirring regularly | |
Mix ~1tsp brown sugar | |
Add splash of whole milk to taste, stir | |
Pour into bowl and enjoy! |
This file contains hidden or 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
lighting requirements | |
- side lights | |
red port, green starboard | |
arc of visibility 112.5 deg | |
- stern light | |
white | |
arc of visibility 135 deg | |
- steaming light |
This file contains hidden or 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
==== Build errors (non-DEBUG) ==== | |
dmake: Warning: Target `install' not remade because of errors | |
The following command caused the error: | |
dmake: Warning: Target `install' not remade because of errors | |
The following command caused the error: | |
dmake: Warning: Command failed for target `libbrand' | |
dmake: Warning: Target `install' not remade because of errors | |
The following command caused the error: | |
dmake: Warning: Target `install' not remade because of errors |
This file contains hidden or 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
1 | 22 | 21 | t | t | |
2 | 22 | 21 | t | t | |
3 | 22 | 21 | t | t | |
4 | 22 | 21 | t | t | |
5 | 22 | 21 | t | t |
This file contains hidden or 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
from fabric.api import * | |
import time | |
env.name = 'myapp' | |
env.python = 'python2.6' | |
env.time = int(time.time()) | |
env.buildroot = '/tmp/%s/%d' % (env.name, env.time) | |
env.app = '%s/%s' % (env.buildroot, env.name) | |
env.deploy = '/usr/local/%s/releases' % env.name |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'sensu-handler' | |
require 'socket' | |
class Graphite < Sensu::Handler | |
def send_graphite(metric, msg) | |
host = 'graphite.host.com' |