Skip to content

Instantly share code, notes, and snippets.

View sneakybeaky's full-sized avatar

Jon Barber sneakybeaky

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sneakybeaky on github.
  • I am sneakybeaky (https://keybase.io/sneakybeaky) on keybase.
  • I have a public key whose fingerprint is D020 DBFA DAA3 BC8B A7A4 6E32 DCE4 AF2E 3D6C 84BB

To claim this, I am signing this object:

@sneakybeaky
sneakybeaky / prepare_ebs_volume.sh
Created May 25, 2016 10:09
Script to prepare an EBS volume for use. Formats with ext4 if needed and updates fstab. Intended to be run as part of EC2 user data startup.
#!/usr/bin/env bash
if [ ! $2 ]; then
echo "Usage: $(basename $0) DEVICE MOUNT_POINT"
echo
echo " DEVICE - The device location on the EC2 instance. (E.g. /dev/sdh)"
echo " MOUNT_POINT - The location you would like the EBS Volume mounted to. (E.g. /data)"
exit
fi
Tue Apr 12 16:30:41 UTC 2016
@sneakybeaky
sneakybeaky / filter_capture.py
Created January 13, 2016 14:02
Filters Gor capture files and removes any requests bigger than 64KiB
#!/usr/bin/env python
from __future__ import print_function
from bitstring import ConstBitStream
import sys
import argparse
# Requests in gor file are demarked by \n<U+1F435><U+1F648><U+1F649>\n
boundary = "0x0af09f90b5f09f9988f09f99890a"
@sneakybeaky
sneakybeaky / org.ops4j.pax.logging.cfg
Created May 14, 2013 21:07
Logging config for tracking issues in Apache CXF DOSGi 1.5 SNAPSHOT
################################################################################
#
# 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
@sneakybeaky
sneakybeaky / gist:4541664
Created January 15, 2013 20:19
Example blueprint config for Jedis poolsource
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<bean id="dataSource" class="redis.clients.jedis.JedisPool"
destroy-method="destroy">
<argument index="0" ref="jedisConfig"/>
<argument index="1" value="127.0.0.1"/>