Skip to content

Instantly share code, notes, and snippets.

View Manawyrm's full-sized avatar
😸

Manawyrm Manawyrm

😸
View GitHub Profile
@Manawyrm
Manawyrm / keybase.md
Created April 27, 2014 13:09
Keybase.md

Keybase proof

I hereby claim:

  • I am manawyrm on github.
  • I am manawyrm (https://keybase.io/manawyrm) on keybase.
  • I have a public key whose fingerprint is 3A69 E9AF 3FA9 3BCF FE50 9694 494E 2F56 C304 60E1

To claim this, I am signing this object:

@Manawyrm
Manawyrm / hierpage.php
Created January 10, 2024 13:13
WordPress Hierarchical Pages / hierarchical-pages Fix for PHP 8.0/8.1/8.2
<?php
/*
* Plugin Name: Hierarchical Pages
* Version: 1.6.1
* Plugin URI: http://www.wlindley.com/website/hierpage/
* Description: Adds sidebar widgets to display a context-based list of "nearby" pages, and to display nested categories.
* Author: William Lindley
* Author URI: http://www.wlindley.com/
* Text Domain: hierarchical-pages
* License: GPL2
@Manawyrm
Manawyrm / update-ddns.php
Created April 5, 2024 20:42
Update do.de FlexDNS from OpenWRT, with IPv4 and IPv6 prefix support (make sure /tmp is a tmpfs to not kill your flash!)
#!/usr/bin/env php-cli
<?php
$url = 'https://ddns.resellerinterface.de/';
$username = 'DDNS-';
$password = '';
$saved = json_decode(file_get_contents("/tmp/ddns.json"), true);
$ipv6json = `ip -6 --json addr show dev br-lan`;
$ipv6 = parse_json($ipv6json);