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
define my_user($username, $group) { | |
user { $username: ensure => present, } | |
# This will trigger a duplicate definition error when compiling the catalog | |
group { $group: ensure => present, } | |
} | |
$users = { | |
'chris' => { | |
'username' => 'chris', |
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
130208 1:34:22 InnoDB: Compressed tables use zlib 1.2.3 | |
130208 1:34:22 InnoDB: Using Linux native AIO | |
130208 1:34:22 InnoDB: Initializing buffer pool, size = 30.0G | |
130208 1:34:23 InnoDB: Completed initialization of buffer pool | |
130208 1:34:23 InnoDB: highest supported file format is Barracuda. | |
InnoDB: Log scan progressed past the checkpoint lsn 78393430125 | |
130208 1:34:24 InnoDB: Database was not shut down normally! | |
InnoDB: Starting crash recovery. | |
InnoDB: Reading tablespace information from the .ibd files... | |
130208 1:36:01 [Note] WSREP: Member 0 (db1c) synced with group. |
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
$default_node_params = { | |
'name' => $::fqdn, | |
'data' => $is_data, | |
'master' => $is_master, | |
} | |
# awareness values should be munched into the 'node' config section | |
$node_params = merge($default_node_params, $awareness_attributes) | |
class { 'elasticsearch': |
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
[statsd_lower] | |
pattern = ^stats\..*\.lower(_[0-9]+)?$ | |
aggregationMethod = min | |
xFilesFactor = 0.1 | |
[statsd_upper] | |
pattern = ^stats\..*\.upper(_[0-9]+)?$ | |
aggregationMethod = max | |
xFilesFactor = 0.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
#!/bin/sh | |
set -x | |
REDIS_CLI="redis-cli" | |
REDIS_SERVER="/usr/bin/redis-server" | |
START_STOP="/sbin/start-stop-daemon" | |
E_INVALID_ARGS=65 | |
E_INVALID_COMMAND=66 | |
E_NO_SLAVES=67 |
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
500g ground beef | |
1 red onion | |
1 green pepper | |
1 red pepper | |
1 chilli | |
3 garlic cloves | |
800g diced tomatos | |
4 tbsp tomato paste | |
smoked paprika | |
cayenne pepper |
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
lines = '# Generated by iptables-save v1.4.8 on Sun Jun 30 20:28:03 2013 | |
*raw | |
:PREROUTING ACCEPT [389063:480408960] | |
:OUTPUT ACCEPT [365429:736377112] | |
-A PREROUTING -p udp -m udp --dport 8125 -m comment --comment "disable conntrack for statsd" -j NOTRACK | |
COMMIT | |
# Completed on Sun Jun 30 20:28:03 2013 | |
# Generated by iptables-save v1.4.8 on Sun Jun 30 20:28:03 2013 | |
*nat | |
:PREROUTING ACCEPT [6621:379806] |
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
# DISCLOSURE: it is a HORRIBLE, HORRIBLE idea for you to blindly run the | |
# below unless you absolutely know what each and every command does and | |
# have a system where you can test first, have appropriate backups etc. | |
# this is not a script - you should run every command and keep a very | |
# close eye on the output for anything unexpected. | |
apt-get install libaio1 | |
apt-get install -d percona-server-client-5.5 percona-server-server-5.5 percona-server-server-5.5 libmysqlclient18=5.5.31-rel30.3-520.squeeze libmysqlclient-dev=5.5.31-rel30.3-520.squeeze |
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
# add this to your environment in one way or another | |
# (a good place may be /etc/init.d/cdp-server) | |
# adjust where necessary. | |
export _JAVA_OPTIONS="-Dhttp.proxyHost=my.proxy.server -Dhttp.proxyPort=8888 -Dhttps.proxyHost=my.proxy.server -Dhttps.proxyPort=8888" |
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
#!/bin/bash | |
set -e | |
VERSION=0.10.12 | |
BUILD_DIR=`mktemp -d` | |
trap "rm -rf -- $BUILD_DIR" EXIT | |
export DESTDIR=$BUILD_DIR/build | |
ARCHIVE=node-v$VERSION |