Skip to content

Instantly share code, notes, and snippets.

View anveo's full-sized avatar
🤘

Brian Racer anveo

🤘
View GitHub Profile
18:08:45 root@ops-staging:/opt/graphite/conf
→ rabbitmqctl list_exchanges
Listing exchanges ...
amq.direct direct
amq.topic topic
amq.rabbitmq.trace topic
amq.rabbitmq.log topic
amq.fanout fanout
amq.headers headers
direct
{
"checks": {
"mongodb_metrics": {
"type": "metric",
"handlers": ["graphite"],
"command": "/etc/sensu/plugins/mongodb-metrics.rb --scheme stats.:::name:::",
"interval": 10,
"subscribers": [ "base" ]
}
}
{
"checks": {
"mongodb_metrics": {
"type": "metric",
"handlers": ["graphite"],
"command": "/etc/sensu/plugins/mongodb-metrics.rb --scheme stats.:::name:::.mongob",
"interval": 10,
"subscribers": [ "base" ]
}
}
16:26:48 root@postgresql02:~
→ salt-minion
Traceback (most recent call last):
File "/usr/bin/salt-minion", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2671, in <module>
working_set.require(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 654, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 552, in resolve
window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var a=[].slice.call(arguments);(typeof console.log==="object"?log.apply.call(console.log,console,a):console.log.apply(console,a))}};
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try
{console.log();return window.console;}catch(err){return window.console={};}})());
@anveo
anveo / sleepsort.sh
Created April 25, 2012 20:21
sleep sort
#!/bin/bash
function f() {
sleep "$1"
echo "$1"
}
while [ -n "$1" ]
do
f "$1" &
shift
server {
server_name www.volumeone.org;
rewrite ^(.*) http://volumeone.org$1 permanent;
}
server {
listen 80;
server_name staging.volumeone.org;
server_tokens off;
root /home/volumeone/sites/staging.volumeone.org/web;
18:00:26 deploy@puppet:~ ruby-1.8.7-p352@system
$ rvm info
ruby-1.8.7-p352@system:
system:
uname: "Linux puppet.zaarly.net 2.6.32-317-ec2 #36-Ubuntu SMP Fri Jul 8 18:12:30 UTC 2011 x86_64 GNU/Linux"
bash: "/bin/bash => GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu)"
zsh: " => not installed"
#!/usr/bin/env php
<?php
//setup global $_SERVER variables to keep WP from trying to redirect
$_SERVER = array(
"HTTP_HOST" => "http://mysite.com",
"SERVER_NAME" => "http://mysite.com",
"REQUEST_URI" => "/",
"REQUEST_METHOD" => "GET"
);
$ cat /etc/rvmrc
umask g+w
export rvm_ps1=1
export rvm_user_install_flag=0
$ rvm info
system:
system: