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 | |
# | |
# munin plugin to show Quagga BGP prefix by IPv4 / IPv6 | |
if [ "$1" = "autoconf" ]; then | |
echo yes | |
exit 0 | |
fi | |
if [ "$1" = "config" ]; then | |
echo 'graph_title Quagga BGP4 prefixes' |
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/ruby | |
require 'optparse' | |
require 'csv' | |
class StaticDhcpLease | |
attr_accessor :host, :mac, :ip | |
def initialize(hostname, mac, ip) | |
@host = hostname |
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
FeedParser = require('feedparser') | |
ent = require('ent') | |
{EventEmitter} = require('events') | |
class ActivityStream extends EventEmitter | |
constructor: (@url, @robot) -> | |
@robot.logger.info("ActivityStream for #{@url}") | |
self = this | |
self.guid = "urn:uuid:a1c4b672-fc6d-3a82-8522-0e05350297de" |
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
stat("/usr/local/lib/site_ruby/1.8/puppet.rb", 0x7fff733e9c80) = -1 ENOENT (No such file or directory) | |
stat("/usr/local/lib/site_ruby/1.8/puppet.so", 0x7fff733e9c80) = -1 ENOENT (No such file or directory) | |
stat("/usr/local/lib/site_ruby/1.8/x86_64-linux/puppet.rb", 0x7fff733e9c80) = -1 ENOENT (No such file or directory) | |
stat("/usr/local/lib/site_ruby/1.8/x86_64-linux/puppet.so", 0x7fff733e9c80) = -1 ENOENT (No such file or directory) | |
stat("/usr/local/lib/site_ruby/puppet.rb", 0x7fff733e9c80) = -1 ENOENT (No such file or directory) | |
stat("/usr/local/lib/site_ruby/puppet.so", 0x7fff733e9c80) = -1 ENOENT (No such file or directory) | |
stat("/usr/lib/ruby/vendor_ruby/1.8/puppet.rb", 0x7fff733e9c80) = -1 ENOENT (No such file or directory) | |
stat("/usr/lib/ruby/vendor_ruby/1.8/puppet.so", 0x7fff733e9c80) = -1 ENOENT (No such file or directory) | |
stat("/usr/lib/ruby/vendor_ruby/1.8/x86_64-linux/puppet.rb", 0x7fff733e9c80) = -1 ENOENT (No such file or directory) | |
stat("/usr/lib/ruby/vendor_ruby/1.8/x86_64-linux/puppet.so", 0x |
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
class dhcp ($foo) { | |
notice {"foo is ${foo}":} | |
} | |
class dhcp::pool ($bar=$dhcp::foo) { | |
notice {"bar is ${bar}":} | |
notice {inline_template('has_variable is <%= has_variable?("dhcp::foo") %>'):} | |
} | |
class { 'dhcp': |
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
class blah($type='woot') { | |
notify { "blah": | |
message => inline_template('<%= type %>') | |
} | |
} | |
class { 'blah': type => 'fnuh' } |
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
(screen -rUd || screen /dev/ttyUSB0 9600 8n1); exit $? |
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
mkdir -p ${WORKSPACE}/build/etc/init | |
mkdir -p ${WORKSPACE}/build/etc/init.d | |
mkdir -p ${WORKSPACE}/build/srv/gitlabhq | |
mkdir -p ${WORKSPACE}/build/etc/apache2/sites-available | |
cat >${WORKSPACE}/build/etc/apache2/sites-available/gitlabhq <<EOF | |
<VirtualHost *:80> | |
# Passenger options that can be set in a virtual host | |
# configuration block. | |
PassengerHighPerformance on |
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
#!ipxe | |
dhcp | |
echo Starting Ubuntu x64 installer for ${hostname} | |
set base-url http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64 | |
kernel ${base-url}/linux | |
initrd ${base-url}/initrd.gz | |
#imgargs linux auto=true url=http://yourserver/some/path/preseed.cfg | |
boot || | |
# If everything failed, give the user some options | |
echo Boot from ${base-url} failed |
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
Setting up puppet-common (2.7.20-1puppetlabs1) ... | |
Setting up puppet (2.7.20-1puppetlabs1) ... | |
* Starting puppet agent /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- puppet/util/command_line (LoadError) | |
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /usr/bin/puppet:3:in `<main>' | |
[fail] | |
invoke-rc.d: initscript puppet, action "start" failed. |
OlderNewer