Skip to content

Instantly share code, notes, and snippets.

@bodgit
bodgit / proxy-config.ldif
Last active February 27, 2024 08:37
OpenLDAP proxy using translucent and pcache overlays
dn: cn=config
objectClass: olcGlobal
cn: config
olcArgsFile: /home/matt/ldap/proxy/slapd.args
olcPidFile: /home/matt/ldap/proxy/slapd.pid
dn: cn=schema,cn=config
objectClass: olcSchemaConfig
cn: schema
@bodgit
bodgit / mod_proxy_wstunnel.c
Last active December 6, 2020 01:08
mod_proxy_wstunnel package for Apache on CentOS 6.x
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@bodgit
bodgit / Raritan.markdown
Last active October 29, 2019 07:52
Sun keyboard shortcuts on a Raritan KVM converter
Sun key Local port key combination
Again Ctrl+ Alt +F2
Props Ctrl + Alt +F3
Undo Ctrl + Alt +F4
Stop A Break a
Front Ctrl + Alt + F5
Copy Ctrl + Alt + F6
Open Ctrl + Alt + F7
Find Ctrl + Alt + F9
@bodgit
bodgit / Beaker.markdown
Created August 24, 2016 08:46
How to get debug-level Puppet logs

Node profile:

HOSTS:
  centos-70-x64:
    roles:
      - master
    platform: el-7-x86_64
    box: puppetlabs/centos-7.0-64-nocm
 box_url: https://vagrantcloud.com/puppetlabs/boxes/centos-7.0-64-nocm
@bodgit
bodgit / output
Last active December 16, 2015 05:49
libevent 2.0.21 / OS X 10.8.3 test case
events = 80
Connected to 127.0.0.1:2003
events = 21
Error connecting to 127.0.0.1:2003
events = 80
Connected to 192.168.255.128:2003
events = 20
Error connecting to 127.0.0.1:2003
<5 second pause>
events = 20
@bodgit
bodgit / librabbitmq.spec
Created February 19, 2012 18:46
RPM spec for RabbitMQ C library
Name : librabbitmq
Version : 0.0.1
Release : 2.20120121hg281
Summary : RabbitMQ C AMQP client library
Group : Development/Libraries
Source0 : %{name}-%{version}.tar.gz
URL : http://www.rabbitmq.com/c-client.html
License : GPLv2
Packager : Matt Dainty <matt@bodgit-n-scarper.com>
@bodgit
bodgit / Portfile
Created September 16, 2011 11:24
MacPorts Portfile for NetAddr Ruby Gem
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
PortGroup ruby 1.0
ruby.setup netaddr 1.5.0 gem {} rubyforge_gem
categories-append net
platforms darwin
maintainers nomaintainer
@bodgit
bodgit / Portfile
Created August 27, 2011 20:45
MacPorts Portfile for Marionette Collective
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
PortGroup ruby 1.0
name mcollective
version 1.2.1
categories net sysutils
platforms darwin
@bodgit
bodgit / rabbitmq-server-plugins.spec
Created August 14, 2011 18:39 — forked from dcarley/rabbitmq-server-plugins.spec
RPM SPEC for RabbitMQ plugins
Name : rabbitmq-server-plugins
Version : 2.6.1
Release : 1
Summary : Plugins for RabbitMQ server
Group : Development/Libraries
Source0 : http://www.rabbitmq.com/releases/plugins/v%{version}/amqp_client-%{version}.ez
Source1 : http://www.rabbitmq.com/releases/plugins/v%{version}/rabbitmq_stomp-%{version}.ez
Source2 : http://www.rabbitmq.com/releases/plugins/v%{version}/rabbitmq_management_agent-%{version}.ez
Source3 : http://www.rabbitmq.com/releases/plugins/v%{version}/rabbitmq_management-%{version}.jquery-fix.ez
@bodgit
bodgit / kubernetes-1.0.6-glusterfs.patch
Created September 16, 2015 12:44
Kubernetes 1.0.6 on Mesos and GlusterFS
diff --git a/pkg/volume/glusterfs/glusterfs.go b/pkg/volume/glusterfs/glusterfs.go
index b3d5c4b..3ee9f38 100644
--- a/pkg/volume/glusterfs/glusterfs.go
+++ b/pkg/volume/glusterfs/glusterfs.go
@@ -17,8 +17,8 @@ limitations under the License.
package glusterfs
import (
- "math/rand"
"os"