Skip to content

Instantly share code, notes, and snippets.

View fuhry's full-sized avatar

Dan Fuhry fuhry

View GitHub Profile
@fuhry
fuhry / keybase.md
Created August 14, 2014 15:07
Keybase verification

Keybase proof [16/944]

I hereby claim:

  • I am fuhry on github.
  • I am fuhry (https://keybase.io/fuhry) on keybase.
  • I have a public key whose fingerprint is 2DE8 0047 268B FA28 5D31 0867 6E71 5AF9 40FD 6D2E

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am fuhry on github.
* I am fuhry (https://keybase.io/fuhry) on keybase.
* I have a public key whose fingerprint is F491 1EC4 7898 A755 0EDA 7C6F DCD5 C4E7 C0B9 4A99
To claim this, I am signing this object:
@fuhry
fuhry / mcdump
Created November 16, 2017 14:02
mcdump: dump memcache slabs
#!/bin/bash
# dumps memcache slabs.
SERVER=${1:-127.0.0.1}
PORT=${2:-11211}
export GREP_OPTIONS=
exec 3<>/dev/tcp/$SERVER/$PORT
@fuhry
fuhry / git-credential-pass.sh
Last active December 12, 2022 20:36
git-credential helper for zx2c4's passwordstore
#!/bin/bash
# Git credential helper for pass(1) (https://passwordstore.org/).
# To set up, first install this script into your PATH with the name `git-credential-pass`.
# Then, you will need to create a credential map file (see below) within your pass repository.
# Finally, configure git as follows:
#
# git config credential.helper pass
# git config credential.useHttpPath true
From b07787cc2bccc013bbd50de4db7f4532e1a0c45c Mon Sep 17 00:00:00 2001
From: Dan Fuhry <[email protected]>
Date: Sat, 23 Sep 2023 13:17:21 -0400
Subject: [PATCH] [syscall] update zsysnum_openbsd_* as of 2023-08-20
OpenBSD deprecated the `*_pad_*` versions of several syscalls on
2022-07-20 [1], including `mmap` of which golang-produced binaries would
call the `pad_` version [2].
This results in binaries that crash with `Bad system call` on OpenBSD
#!/bin/bash
set -eu
###############################################################################
# CONSTANTS
declare -r CUSER="build"
declare -r DOCKER="docker"
declare -r IMAGE="archlinux:latest"
diff -Naur a/configure.ac b/configure.ac
--- a/configure.ac 2024-06-01 00:56:52.000000000 -0400
+++ b/configure.ac 2024-06-25 09:59:35.527039765 -0400
@@ -143,7 +143,7 @@
AC_ARG_WITH(uams-path, [ --with-uams-path=PATH path to UAMs [[$libdir/netatalk]]], [uams_path="$withval"], [uams_path="$libdir/netatalk"])
dnl Check for libgcrypt, if found enables DHX2 UAM
-AC_NETATALK_PATH_LIBGCRYPT([1:1.2.3])
+AC_NETATALK_LIBGCRYPT