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
{ | |
"timestamp":"2014-05-03T01:55:11.241076+0000", | |
"level":"info", | |
"message":"handler output", | |
"handler":{ | |
"type":"pipe", | |
"command":"/etc/sensu/handlers/slack.rb", | |
"token":"REDACTED", | |
"team_name":"REDACTED", | |
"channel":"#ops", |
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 -s -d \ | |
'{ | |
"auth": | |
{ | |
"RAX-KSKEY:apiKeyCredentials": | |
{ | |
"username": "RACKSPACE_API_USERNAME", | |
"apiKey": "RACKSPACE_API_KEY"} | |
} | |
}' \ |
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
ansible all -i production/inventory -m apt -a 'update_cache=yes name=bash state=latest' -s -k |
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
#!/usr/bin/env ruby | |
require 'fog' | |
connection = Fog::Compute.new({ | |
:provider => 'rackspace', | |
:rackspace_username => ENV['RACKSPACE_API_USERNAME'], | |
:rackspace_api_key => ENV['RACKSPACE_API_KEY'], | |
:version => :v2, | |
:rackspace_region => :ord |
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
#!/usr/bin/env ruby | |
# | |
# Check the size of a resque queue | |
# === | |
# | |
# Copyright 2014 Patrick Humpal <patrick@netvilla.net> | |
# | |
# Released under the same terms as Sensu (the MIT license); see LICENSE | |
# for details. |
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
include Opscode::Aws::Ec2 | |
#Auto locates and attached ebs devices based on the data bag they reside in. The following test cases need to be performed | |
# Create multiple resources with new node: PASS | |
# | |
# Re-attach multiple resources after a reboot: PASS | |
# | |
# Create resources across 2 runs. First run creates first raid set, second run re-attaches then creates: PASS | |
# |
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
#!/bin/sh | |
set -u | |
set -e | |
# Example init script, this can be used with nginx, too, | |
# since nginx and unicorn accept the same signals | |
# Feel free to change any of the following variables for your app: | |
APP_ROOT=/home/deploy/public_html/rm/current | |
PID=$APP_ROOT/tmp/pids/unicorn.pid | |
ENV=production |
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
*** logzilla-svn/html/includes/ajax/rbac.php 2012-05-30 09:53:41.000000000 -0700 | |
--- logzilla/html/includes/ajax/rbac.php 2012-05-30 09:53:02.000000000 -0700 | |
*************** | |
*** 196,201 **** | |
--- 196,204 ---- | |
if ($newkey > 0) { | |
$sql = "UPDATE hosts set rbac_key=$newkey WHERE host='$host'"; | |
$result = perform_query($sql, $dbLink, $_SERVER['PHP_SELF']); | |
+ } elseif ($newkey == 0) { | |
+ $sql = "UPDATE hosts set rbac_key=1 WHERE host='$host'"; |
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
#!/bin/bash | |
VENV=$1 | |
if [ -z $VENV ]; then | |
echo "usage: runinenv [virtualenv_path] CMDS" | |
exit 1 | |
fi | |
. ${VENV}/bin/activate | |
shift 1 | |
echo "Executing $@ in ${VENV}" | |
exec "$@" |
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
description "sensu-client" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
chdir /opt/sensu | |
pre-start script |
OlderNewer