Skip to content

Instantly share code, notes, and snippets.

Lee Packham leepa

Block or report user

Report or block leepa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
extern crate lambda_runtime as lambda;
extern crate log;
extern crate simple_logger;
extern crate serde_derive;
extern crate chrono;
use lambda::{error::HandlerError, lambda};
leepa /
Created Dec 5, 2018
Partial - this is the structure for S3 events
#[derive(Deserialize, Debug)]
struct S3Event {
#[serde(rename = "Records")]
records: Vec<S3EventRecord>,
#[derive(Deserialize, Debug)]
struct S3EventRecord {
#[serde(rename = "eventVersion")]
View Dockerfile
FROM amazonlinux:1
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
RUN set -eux; \
yum update -y ;\
yum install -y wget ;\
View gist:824041adc4d7c824fd5139567c130965
Interval 10
LoadPlugin logfile
<Plugin logfile>
LogLevel debug
Timestamp true
PrintSeverity true
View 01.configure
2015-11-13 11:41:17 +0000
configure: WARNING: unrecognized options: --with-libsodium
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
View gist:69ff1b6371d2f0ee51ab
# This shell script passes all its arguments to the binary inside the
# application bundle. If you make links to this script as view,
# gvim, etc., then it will peek at the name used to call it and set options
# appropriately.
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico
# Weber and Bjorn Winckler, Aug 13 2007).
leepa / jessie.rb
Created Apr 30, 2015
Jessie 'Service' Provider for Puppet - it will work around to ensure services don't keep getting enabled.
View jessie.rb
Puppet::Type.type(:service).provide :jessie, :parent => :systemd do
desc "Manages `systemd` services using `systemctl` on jessie."
defaultfor :osfamily => :debian, :operatingsystem => :debian, :operatingsystemmajrelease => "8"
def get_start_link_count
def enabled?
View docker-registry.tmpl
proxy_set_header Host $http_host; # required for docker client's sake
proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
proxy_set_header Authorization "";
proxy_read_timeout 900;
leepa /
Created Mar 30, 2015
Supports pointers to strings as well as normal strings in Go
# Copyright 2010 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
"""GDB Pretty printers and convenience functions for Go's runtime structures.
This script is loaded by GDB when it finds a .debug_gdb_scripts
section in the compiled binary. The [68]l linkers emit this with a
path to this file based on the path to the runtime package.

Keybase proof

I hereby claim:

  • I am leepa on github.
  • I am leepa ( on keybase.
  • I have a public key whose fingerprint is 3520 6F84 C7DC 9A78 C42A 797B 3DBF A2EE 6695 0D40

To claim this, I am signing this object:

You can’t perform that action at this time.