Skip to content

Instantly share code, notes, and snippets.

View olly's full-sized avatar

Oliver Legg olly

View GitHub Profile
blkfront: xvdd: barriers enabled
xvdd: unknown partition table
XENBUS: Device with no driver: device/console/0
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
EXT3-fs: barriers not enabled
# Easily calculate mean and standard distribution of a distribution without
# collecting all values in memory
#
class Distribution
def initialize
@n, @sum_x, @sum_x_2 = 0, 0, 0
@min, @max = nil, nil
end
def <<(x)
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon
#!/bin/sh
echo ''
echo ' .__ '
echo ' ______ __ __ _____| |__ ___________ '
echo ' \____ \| | \/ ___/ | \_/ __ \_ __ \ '
echo ' | |_> > | /\___ \| Y \ ___/| | \/ '
echo ' | __/|____//____ >___| /\___ >__| '
echo ' |__| \/ \/ \/ '
echo ''
class common::editors {
apt::package { "emacs23-nox" : ensure => installed }
apt::package { "nano" : ensure => installed }
apt::package { "vim" : ensure => installed }
}
root@balancer:~# puppetd --server operations.Boomer.local --test
info: Creating a new SSL key for balancer.boomer.local
warning: peer certificate won't be verified in this SSL session
info: Caching certificate for ca
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
info: Caching certificate_request for balancer.boomer.local
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
Exiting; no certificate found and waitforcert is disabled
info: access[^/catalog/([^/]+)$]: allowing 'method' find
info: access[^/catalog/([^/]+)$]: allowing $1 access
info: access[/certificate_revocation_list/ca]: allowing 'method' find
info: access[/certificate_revocation_list/ca]: allowing * access
info: access[/report]: allowing 'method' save
info: access[/report]: allowing * access
info: access[/file]: allowing * access
info: access[/certificate/ca]: adding authentication no
info: access[/certificate/ca]: allowing 'method' find
info: access[/certificate/ca]: allowing * access
root@ubuntu:/# puppetd --server puppet.example.com --waitforcert 60 --test
info: Retrieving plugin
err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': undefined method `closed?' for nil:NilClass
err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: undefined method `closed?' for nil:NilClass Could not retrieve file metadata for puppet://puppet.example.com/plugins: undefined method `closed?' for nil:NilClass
err: Could not retrieve catalog from remote server: undefined method `closed?' for nil:NilClass
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
{
"disclaimer":"This code and data form part of the BBC iPlayer content protection system. Tampering with,
removal of,
misuse of,
or unauthorised use of this code or data constitutes circumvention of the BBC's content protection measures and may result in legal action. BBC (C) 2010.",
"media":
[
{
"width":"1280",
def cookies
@cookies ||= ActionController::CookieJar.new(self)
end