Skip to content

Instantly share code, notes, and snippets.


Matthew Hawkins hawko2600

  • Canberra, Australia
View GitHub Profile
hawko2600 / zsh-addon-update-check.zsh
Last active Jun 30, 2018
zsh addon update check
View zsh-addon-update-check.zsh
function _do-gen-update() {
echo "Upgrading $2..."
case "$2" in
volt) volt self-upgrade -check ;;
zplugin) zplugin upgrade --all ;;
*) echo "Unknown application $2. Moving on..." ;;
touch "$1"
hawko2600 /
Last active Oct 14, 2017
Running digitalocean/netbox under nginx + uwsgi

nginx + uwsgi installation

uwsgi is an alternative to using gunicorn + supervisord. It has native proxy support via the WSGI protocol in nginx.

# apt-get install uwsgi uwsgi-plugin-python3

Add a site to uwsgi in /etc/uwsgi/apps-available/netbox.ini:

hawko2600 / heartbleed-apps
Created Apr 9, 2014
List apps linked against a potentially heartbleed-vulnerable openssl on your Mac
View heartbleed-apps
for i in /usr/local/{bin,sbin}/*; do otool -L $i; done | sed -e '/^.*is not an object file.*$/d' -e 's|^\(/.*\):$|@\1|' | awk 'BEGIN { RS="@" } !/ssl/ { next } !/^[[:space:]]*(\/.*ssl\.0.9.8.*\.dylib)/ { print $1 }'