Skip to content

Instantly share code, notes, and snippets.

View mattbailey's full-sized avatar
🦆
quack

Matt Bailey mattbailey

🦆
quack
View GitHub Profile
Lastlog:
18:12 <+ ribo> https://github.com/mroth/lolcommits
20:52 <@ kyl> https://github.com/mroth/lolcommits
20:54 < jrick> https://github.com/mroth/lolcommits
20:55 <+ snk> lolcommits is awesome
21:05 <+ qbit_> brycec: yeah - check fo rthe first lolcommits :D
21:05 <@ brycec> 13:51 < jrick> https://github.com/mroth/lolcommits
End of Lastlog
Reduced Functionality:
This version of wkhtmltopdf has been compiled against a version of QT without
the wkhtmltopdf patches. Therefore some features are missing, if you need
these features please use the static version.
Currently the list of features only supported with patch QT includes:
* Printing more then one HTML document into a PDF file.
* Running without an X11 server.
* Adding a document outline to the PDF file.
los ☁ 0 ~ dig api.coderloop.com
; <<>> DiG 9.7.3-P3 <<>> api.coderloop.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 25357
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;api.coderloop.com. IN A
#!/usr/bin/env perl
$flood = 0;
use Irssi;
use Image::Magick;
use warnings;
use vars qw($flood $VERSION %IRSSI);
$VERSION = '1.00';
#!/usr/bin/env ruby
# Do not edit this script from the host, it is generated by chef
require 'rubygems'
require 'aws'
$aws_id = "REDACTED"
$aws_key = "REDACTED"
AWS.config(:access_key_id => $aws_id, :secret_access_key => $aws_key, :ec2_endpoint => "ec2.amazonaws.com")
---
# Utility server
- name: utility
env: production
retention: 3
volumes:
- device: sda1
id: vol-1c99ae73
- device: sdf
id: vol-a087b5cf
#!/bin/bash
SLD="<%= @domain %>"
AWSID="<%= @awsid %>"
AWSKEY="<%= @awskey %>"
SHORTHOST=`echo <%= node[:this_server] %> | sed 's/_/-/g' | sed "s/.${SLD}//"`
HOSTNAME="${SHORTHOST}.${SLD}"
cat > ~/.aws-secrets << EOF
%awsSecretAccessKeys = (
[ 12.063460] blkfront: barrier: empty write xvda op failed
[ 12.063475] blkfront: xvda: barrier or flush: disabled
[ 12.063495] end_request: I/O error, dev xvda, sector 13145
[ 12.063529] end_request: I/O error, dev xvda, sector 13145
[ 12.063554] Buffer I/O error on device xvda1, logical block 1643
[ 12.063575] lost page write due to I/O error on xvda1
[ 12.063615] Aborting journal on device xvda1.
[ 12.064315] EXT3-fs (xvda1): error: ext3_journal_start_sb: Detected aborted journal
[ 12.064362] EXT3-fs (xvda1): error: remounting filesystem read-only
@mattbailey
mattbailey / swatchout.sh
Created August 8, 2012 19:27
swatchout.sh
#!/bin/bash
### USAGE:
# execute from swatch and only swatch
# exec echo '$_' | swatchout.sh <NAME> <SECONDS> <WARNING_EVENTS> <CRITICAL_EVENTS>
EMAIL="foo@bar.com"
NAME=$1
@mattbailey
mattbailey / backend.swatch
Created August 8, 2012 19:28
backend.swatch
watchfor /Error|ERROR|fail|FAIL|Fail|Fatal|fatal|FATAL|WARN|Warn|warn/
exec echo '$_' | swatchout.sh backend_daily 34560 1 20000
watchfor /Error|ERROR|fail|FAIL|Fail|error/
exec echo '$_' | swatchout.sh backend_error 600 20 25
watchfor /Fatal|FATAL|fatal/
exec echo '$_' | swatchout.sh backend_fatal 5 1 1
watchfor /warn|Warn|WARN/