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
<IfModule mod_mem_cache.c> | |
CacheEnable mem /production/file_metadata | |
CacheEnable mem /production/file_content | |
CacheDefaultExpire 300 | |
MCacheSize 1024000 | |
MCacheMaxObjectCount 10000 | |
MCacheMinObjectSize 1 | |
MCacheMaxObjectSize 2048000 | |
CacheIgnoreNoLastMod On | |
</IfModule> |
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
diff -urN '--exclude=CVS' '--exclude=.svn' '--exclude=.git*' '--exclude=*.swp' znc-1.0/src/Client.cpp znc-1.0-query-buffer/src/Client.cpp | |
--- znc-1.0/src/Client.cpp 2012-11-06 08:02:20.000000000 -0800 | |
+++ znc-1.0-query-buffer/src/Client.cpp 2013-02-04 14:30:49.240504205 -0800 | |
@@ -306,17 +306,29 @@ | |
} | |
// Relay to the rest of the clients that may be connected to this user | |
- if (m_pNetwork->IsChan(sTarget)) { | |
+ //if (m_pNetwork->IsChan(sTarget)) { | |
vector<CClient*>& vClients = GetClients(); |
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
>>> ./modules/example/spec/classes/example_spec.rb | |
describe "example" do | |
let(:hiera_data) { { :foo_message => "bar" } } | |
it { should contain_notify("foo").with_message("bar") } | |
end | |
>>> ./modules/example/spec/manifests/site.pp #this just exists because rspec-puppet appears to insist on it?) |
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 ruby | |
rotating = [] | |
solid_state = [] | |
unknown = [] | |
block_devices = '/sys/block' | |
exclude = %w(loop.* ram.* sr.*) | |
exclude = Regexp.union(*exclude.collect { |i| Regexp.new(i) }) |
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
VERSION="0.9.9" | |
BUILD="betable1" | |
set -e -x | |
# Keep track of the original working directory. | |
OLDESTPWD="$PWD" | |
# Work in a temporary directory. | |
cd "$(mktemp -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
define iterator { | |
if $name =~ /test/ { | |
notice "found" | |
} | |
} | |
$a = ['abc', 'deftestghi', 'xyz'] | |
iterator { $a: } |
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 works under Ubuntu 10.10. I tried under 10.04 LTS but the Ubuntu templates are not there. Investigating. | |
[ Leaving this link here for reference in case I need to do apt-get upgrade. @ohloh recommends it | |
http://sourceforge.net/mailarchive/message.php?msg_id=26885493 ] | |
To make things easy have libvirt installed ie. | |
sudo apt-get install libvirt-bin | |
Otherwise you will need to set up bridges, iptables, dnsmasq. |
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
# Based on https://github.com/ripienaar/mcollective-plugins/blob/master/agent/urltest/urltest.rb | |
require 'net/http' | |
require 'socket' | |
req_url = "http://www.google.com" | |
url = URI.parse(req_url) |
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/python | |
# Connects to localhost, 27017 by default | |
import sys | |
import pymongo | |
import time | |
if len(sys.argv) < 2: | |
print >> sys.stderr, "Usage: ./tail_profile.py <dbName> [hostname] [port]" | |
sys.exit(-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
#!/usr/bin/perl | |
########################################################################### | |
# # | |
# Cluster Tools: cluster_netstat.pl # | |
# Copyright 2007-2010, Albert P. Tobey <[email protected]> # | |
# # | |
########################################################################### | |
=head1 NAME |
NewerOlder