Skip to content

Instantly share code, notes, and snippets.

View jaywilliams's full-sized avatar
🎹
The OP-1 is soooo much fun!

Jay Williams jaywilliams

🎹
The OP-1 is soooo much fun!
View GitHub Profile
@jaywilliams
jaywilliams / searchd
Last active January 9, 2019 17:00
A working OpenBSD Sphinx Search rc.d init script
#!/bin/ksh
#
# searchd - Sphinxsearch network daemon
#
# Use --nodetach flag in combination with rc_bg to workaround searchd not
# listening on specified network ports
daemon="/usr/local/bin/searchd"
daemon_flags="--nodetach"
# daemon_user="www"
@jaywilliams
jaywilliams / dumprequest.php
Last active March 25, 2025 09:04 — forked from magnetikonline/dumprequest.php
PHP script to dump full HTTP request to file (method, HTTP headers and body).
<?php
// https://gist.github.com/jaywilliams/bee2512f0f12d6791315d6939119e135
// Forked: https://gist.github.com/magnetikonline/650e30e485c0f91f2f40
// Usage: php -S localhost:8080 dumprequest.php
// Path to store all incoming requests
define('LOG_OUTPUT', __DIR__ . '/requests.log');
$data = sprintf(
"[%s]\n%s %s %s\n\nHTTP HEADERS:\n",