This file contains hidden or 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
err: /Stage[main]/Rabbitmq::Server/Package[rabbitmq-server]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install rabbitmq-server' returned 100: Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
The following extra packages will be installed: | |
erlang-asn1 erlang-base erlang-corba erlang-crypto erlang-docbuilder | |
erlang-edoc erlang-eunit erlang-ic erlang-inets erlang-inviso erlang-mnesia | |
erlang-nox erlang-odbc erlang-os-mon erlang-parsetools erlang-percept | |
erlang-public-key erlang-runtime-tools erlang-snmp erlang-ssh erlang-ssl | |
erlang-syntax-tools erlang-tools erlang-webtool erlang-xmerl libltdl7 | |
libsctp1 lksctp-tools odbcinst odbcinst1debian1 unixodbc |
This file contains hidden or 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/env python | |
""" | |
Script to open a sqlite3 database and dump all user tables to CSV files. | |
Tested in Unicode-rich environment. | |
Usage: | |
dumpsqlite3tocsv foo.db | |
""" | |
import sqlite3, csv, codecs, cStringIO, os, os.path |
This file contains hidden or 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
protected static T CreateRoutedEventArgs<T>() { | |
var fakeCommand = Substitute.For<ICommand>(); | |
var nonPublicInstance = BindingFlags.NonPublic | BindingFlags.Instance; | |
var ev = (RoutedEvent) Activator.CreateInstance( | |
type: typeof(RoutedEvent), | |
bindingAttr: nonPublicInstance, | |
binder: null, | |
args: new object[4] {null, null, null, null }, | |
culture: null); | |
var args = (T) Activator.CreateInstance( |
This file contains hidden or 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
# /etc/puppet/modules/mongodb/manifests/init.pp | |
class mongodb { | |
} |
This file contains hidden or 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 NAMESPACE::package ( | |
$package = $NAMESPACE::package::params::package, | |
$repository = $NAMESPACE::package::params::repository, | |
$repokey = $NAMESPACE::package::params::repokey, | |
$reponame = $NAMESPACE::package::params::reponame, | |
$keyserver = $NAMESPACE::package::params::keyserver | |
) inherits NAMESPACE::package::params { | |
package { $package: | |
ensure => installed, | |
} |
This file contains hidden or 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
// this terminates: yes | head | |
// this hangs: node node-yes-simple.js | head | |
// per mhart, this is entirely expected | |
while(true) { | |
process.stdout.write('{"yes": "yes"}\n'); | |
} |
This file contains hidden or 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
var http = require('http'), | |
net = require('net'), | |
bouncy = require('bouncy'), | |
MuxDemux = require('mux-demux'); | |
var mux_server_port = 8192; | |
var trampoline_port = 8193; | |
var target_server_port = 8194; | |
var mux; |
This file contains hidden or 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 nagios { | |
$targets = '/etc/nagios3/puppets.d' | |
} |
This file contains hidden or 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
# Added logging detail in attempt to debug problem, to no avail. | |
; A list of modules. | |
[/modules] | |
CheckDisk=1 | |
CheckSystem=1 | |
CheckTaskSched=1 | |
NSClientServer=0 | |
NRPEServer=1 |
This file contains hidden or 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 puppetlabs { | |
# Install Puppet repository and call apt-get update | |
case $operatingsystem { | |
ubuntu: { | |
$key = "4BD6EC30" | |
exec { 'apt-key puppetlabs': | |
path => "/bin:/usr/bin", | |
unless => "apt-key list | grep '${key}' | grep -v expired", | |
command => "apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ${key}", | |
} |