Skip to content

Instantly share code, notes, and snippets.


Josh Enders joshenders

View GitHub Profile
joshenders /
Created Oct 18, 2020 — forked from zcutlip/
Importing Hand-Rolled C Header Files in LLDB

Importing Hand-Rolled C Header Files in LLDB


  • We're debugging a dylib, libhello.dylib
  • The dylib is linked from hello
  • The exported function is helloworld()
  • We do not have source, but have reversed a struct from the library and created a hand-crafted header file

Header File

joshenders /
Created Aug 29, 2017 — forked from AdrianKoshka/
Making a UEFI bootable iPXE USB drive

Making a UEFI bootable iPXE USB drive

Build the UEFI executable for iPXE

# First we'll clone iPXE
$ git clone git://
# Go into the src directory of the cloned git repo
$ cd ipxe/src
# Compile the UEFI iPXE executable
View gist:d1538f93b857371c926b
def params_to_dict(param_str):
splits = param_str.split(" ")
data = {}
prev_key = None
prev_val = None
for s in splits:
if "=" in s:
key, val = s.split("=")
if prev_key:
View gist:70a00e1b098308e7752b
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define CANARY "in_the_coal_mine"
struct {
char buffer[1024];
View Fix for distcc distccd macports installer
# Originally found here:
if test -e $makefile; then # user has a half completed installation
#!/usr/bin/env python2
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
joshenders / gist:3976698
Last active Nov 7, 2015 — forked from vena/gist:2856490
How to install Netatalk 3.1.6 under Debian Wheezy
View gist:3976698

1. Install dependencies

apt-get install automake avahi-daemon build-essential checkinstall db5.1-util db-util git-core libacl1-dev libavahi-client-dev libdb5.1-dev libgcrypt11 libgcrypt11-dev libpam0g-dev libtool pkg-config

2. Download and unpack source

cd /usr/src/
tar -xvzf netatalk-3.1.6.tar.gz