Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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"
@bodgit
bodgit / xtables-addons-1.47.1-el6.patch
Last active August 31, 2015 12:17
RPM spec for xtables-addons
diff -up xtables-addons-1.47.1/extensions/compat_xtables.c.orig xtables-addons-1.47.1/extensions/compat_xtables.c
--- xtables-addons-1.47.1/extensions/compat_xtables.c.orig 2015-04-16 22:48:40.467146548 +0100
+++ xtables-addons-1.47.1/extensions/compat_xtables.c 2015-04-16 22:48:51.849146108 +0100
@@ -626,13 +626,4 @@ int xtnu_ipv6_skip_exthdr(const struct s
EXPORT_SYMBOL_GPL(xtnu_ipv6_skip_exthdr);
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 5, 0) && defined(WITH_IPV6)
-int xtnu_ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
- int target, unsigned short *fragoff, int *fragflg)
@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 / openldap-translucent-double-free.patch
Created March 17, 2015 15:25
Patch for OpenLDAP 2.4.39 so pcache and translucent overlays work together
X-Git-Url: http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=blobdiff_plain;f=servers%2Fslapd%2Foverlays%2Ftranslucent.c;h=d39fe38535b011b8dd8b7110158722efbfa4a199;hp=d9715cbf719382112bd3e456791873ac3515d003;hb=052aef59601068ccc63e403d84d70c0d5a6bc9ab;hpb=bfbc6fe4a6e515189962aebba517138d909fbfed
diff --git a/servers/slapd/overlays/translucent.c b/servers/slapd/overlays/translucent.c
index d9715cb..d39fe38 100644
--- a/servers/slapd/overlays/translucent.c
+++ b/servers/slapd/overlays/translucent.c
@@ -1109,7 +1109,8 @@ static int translucent_search(Operation *op, SlapReply *rs) {
filter2bv_x( op, fr, &op->ors_filterstr );
}
rc = ov->db.bd_info->bi_op_search(op, rs);

Keybase proof

I hereby claim:

  • I am bodgit on github.
  • I am bodgit (https://keybase.io/bodgit) on keybase.
  • I have a public key whose fingerprint is 16D4 7648 4A8A 93DC 6D77 AAC1 28FE 7C79 1F97 D933

To claim this, I am signing this object:

@bodgit
bodgit / soekris.diff
Created November 21, 2014 11:43
Soekris net6501 GPIO & LED support on OpenBSD
Index: share/man/man4/gpio.4
===================================================================
RCS file: /cvs/src/share/man/man4/gpio.4,v
retrieving revision 1.22
diff -u -p -r1.22 gpio.4
--- share/man/man4/gpio.4 21 Jan 2014 11:02:00 -0000 1.22
+++ share/man/man4/gpio.4 21 Nov 2014 11:38:17 -0000
@@ -30,6 +30,7 @@
.Cd "gpio* at omgpio?" Pq armv7
.Cd "gpio* at pcagpio?"
@bodgit
bodgit / rubygem-mixlib-cli.spec
Created September 29, 2014 16:04
RPM spec for Sensu plugin gem
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}
# Generated from mixlib-cli-1.5.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name mixlib-cli
Summary: A simple mixin for CLI interfaces, including option parsing
Name: %{?scl_prefix}rubygem-%{gem_name}
Version: 1.5.0
Release: 1%{?dist}
@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