Skip to content

Instantly share code, notes, and snippets.

View fuhry's full-sized avatar

Dan Fuhry fuhry

View GitHub Profile
From b07787cc2bccc013bbd50de4db7f4532e1a0c45c Mon Sep 17 00:00:00 2001
From: Dan Fuhry <dan@fuhry.com>
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
@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
@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
### 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 / 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: