Skip to content

Instantly share code, notes, and snippets.

View jaywilliams's full-sized avatar
🥁
Make music, not war.

Jay Williams jaywilliams

🥁
Make music, not war.
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",
@jaywilliams
jaywilliams / AC-15210_2.4.5-hotfix3.patch
Last active April 24, 2026 16:03
USPS REST API Patch, backported to Magento v2.4.5-p14 with <.5lb weight hotfix and getAllowedMethods() hotfix, Prioirty Mail International hotfix, and Minimim Postal Code API request saver
diff --git a/vendor/magento/module-shipping/Block/Adminhtml/Order/Packaging.php b/vendor/magento/module-shipping/Block/Adminhtml/Order/Packaging.php
index f66b37a9..04e673c3 100644
--- a/vendor/magento/module-shipping/Block/Adminhtml/Order/Packaging.php
+++ b/vendor/magento/module-shipping/Block/Adminhtml/Order/Packaging.php
@@ -1,7 +1,7 @@
<?php
/**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
+ * Copyright 2011 Adobe