Skip to content

Instantly share code, notes, and snippets.

View jonhiggs's full-sized avatar

Jon Higgs jonhiggs

  • Redbubble
  • Melbourne, Australia
View GitHub Profile
@jonhiggs
jonhiggs / memcached
Created August 10, 2010 05:29
multi_memcached
#! /bin/sh
### BEGIN INIT INFO
# Provides: memcached
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: memcached - Memory caching daemon
@jonhiggs
jonhiggs / akamai_cache_headers
Created June 29, 2015 06:45
akamai_cache_headers
#!/usr/bin/env bash
if [[ -z $1 ]]; then
echo "Supply the url you need the cache headers for."
exit 1
fi
address=$1
curl -H "Pragma: akamai-x-cache-on, akamai-x-cache-remote-on,
#!/usr/bin/env bash
[[ $# -eq 0 ]] && echo "Usage: $0 <kubernetes_manifest_file> ..." && exit 1
_error() {
echo "$@" >&2
}
api_versions() {
awk 'BEGIN {}
($1~/kind:/) { kind=$2 }
@jonhiggs
jonhiggs / flamingzombies-openbsd-rc
Last active April 24, 2024 22:16
flamingzombies-openbsd-rc
#!/bin/ksh
#
# $OpenBSD: flamingzombies, 0.0.1 2020/05/13 18:49:00 rpe Exp $
daemon="/usr/local/bin/fz"
rc_bg="YES"
. /etc/rc.d/rc.subr
rc_start() {