Skip to content

Instantly share code, notes, and snippets.

@Rudd-O
Rudd-O / gist:1469695
Created December 12, 2011 23:46
monitoring.json config file example (for role webservers)
{
"checks": {
"Test Web server is alive": {
"command": "check_http",
"subscribers": [
"webservers"
],
"interval": 30
},
"Test Web server is not delivering garbage": {
@Rudd-O
Rudd-O / libeatmydata.spec
Created July 17, 2012 01:57
libeatmydata spec file
Name: libeatmydata
Version: 59
Release: 1%{?dist}
Summary: Disable fsync() and friends
Group: System Environment/Libraries
License: GPLv3+
Url: http://flamingspork.com/projects/libeatmydata/
Source0: http://flamingspork.com/projects/libeatmydata/libeatmydata-59.tar.gz
%description
10.0.248.17 Resolving www.opscode.com (www.opscode.com)...
10.0.248.17 184.106.28.83
10.0.248.17
10.0.248.17 Reusing existing connection to opscode.com:80.
10.0.248.17 HTTP request sent, awaiting response...
10.0.248.17 200 OK
10.0.248.17 Length:
10.0.248.17 5801
10.0.248.17 (5.7K)
10.0.248.17 [application/x-sh]
@Rudd-O
Rudd-O / otcauth.sh
Created December 18, 2012 07:35 — forked from anonymous/otcauth.sh
#!/bin/bash
# install in ~/.kde/share/apps/konversation/scripts as otcauth
# chmod +x that file
# enable logging such that gribble from freenode ends up in
# ~/.kde/share/apps/konversation/logs/freenode_gribble.log
# restart konversation
# and then enjoy automatic auth script
# by going /otcauth NICKNAME
# directly from konversation
@Rudd-O
Rudd-O / gist:4705140
Created February 4, 2013 05:15
slow!
[root@melody rudd-o]# time salt '*' test.ping
karen.dragonfear:
True
melody.dragonfear:
True
real 0m7.441s
user 0m6.800s
sys 0m0.290s
i want the following:
for host in $hosts:
pools=`get all pools`
for pool in $pools:
create / update jenkins job file in mathilda
restart jenkins if the job file changed
- hosts:
- karen.dragonfear
- paola.dragonfear
- mathilda.dragonfear
user: root
vars:
backupserver: mathilda.dragonfear
tasks:
- name: get zpool data
action: shell zpool list -H -o name
tasks:
- name: obtain SSH key of the backup server
action: shell cat /root/.ssh/id_rsa.pub
delegate_to: $backupserver
register: ssh_key
- name: deploy SSH key of the backup server
action: authorized_key key='${ssh_key.stdout}' user=root
From: "Manuel Amador (Rudd-O)" <rudd-o@rudd-o.com>
To: ianb@colorstudy.com
Subject: PIP patch to forfeit requirements
Date: Wed, 18 Mar 2009 17:26:59 -0500
User-Agent: KMail/1.11.0 (Linux/2.6.28; KDE/4.2.0; x86_64; ; )
X-KMail-Transport: Rudd-O.com
X-KMail-QuotePrefix: >
MIME-Version: 1.0
Content-Type: multipart/signed;
boundary="nextPart3350413.Wev56ftyb1";
include:
- users
...
extend:
rudd-o:
user:
- groups:
- plone3
- require:
- group: plone3