Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / elasticsearch-curator-1.2.2-master-only.patch
Last active August 29, 2015 14:02
RPM spec for Elasticsearch Curator
diff -up elasticsearch-curator-1.2.2/curator/curator.py.orig elasticsearch-curator-1.2.2/curator/curator.py
--- elasticsearch-curator-1.2.2/curator/curator.py.orig 2014-08-20 11:24:42.750639539 +0000
+++ elasticsearch-curator-1.2.2/curator/curator.py 2014-08-20 11:25:12.530602535 +0000
@@ -714,8 +714,8 @@ def main():
check_version(client)
if arguments.master_only and not is_master_node(client):
- logger.fatal('Master-only flag detected. Connected to non-master node. Aborting.')
- sys.exit(1)
+ logger.info('Master-only flag detected. Connected to non-master node. Aborting.')
@bodgit
bodgit / elasticsearch-1.2.0-urllib.patch
Last active August 29, 2015 14:02
RPM spec for Elasticsearch python bindings
diff -up elasticsearch-1.2.0/elasticsearch.egg-info/requires.txt.orig elasticsearch-1.2.0/elasticsearch.egg-info/requires.txt
--- elasticsearch-1.2.0/elasticsearch.egg-info/requires.txt.orig 2014-08-12 10:09:32.219400798 +0000
+++ elasticsearch-1.2.0/elasticsearch.egg-info/requires.txt 2014-08-12 10:09:36.809346008 +0000
@@ -1 +1 @@
-urllib3>=1.8, <2.0
\ No newline at end of file
+urllib3>=1.5, <2.0
diff -up elasticsearch-1.2.0/setup.py.orig elasticsearch-1.2.0/setup.py
--- elasticsearch-1.2.0/setup.py.orig 2014-08-12 10:08:38.643339969 +0000
+++ elasticsearch-1.2.0/setup.py 2014-08-12 10:08:44.712437366 +0000
@bodgit
bodgit / ES master node
Last active August 29, 2015 13:58
Elasticsearch configuration for EC2 cluster with remote tribe node
### MANAGED BY PUPPET ###
---
action:
auto_create_index: +logstash-*,-*
bootstrap:
mlockall: true
cloud:
aws:
access_key: abc123
region: ap-southeast-2