Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
# pylint: disable=invalid-name
# pylint: enable=invalid-name
"""Munin plugin to monitor Knot DNS server.
=head1 NAME
knot - monitor Knot DNS server statistics
@todeveni
todeveni / wp_collate.php
Last active March 6, 2023 06:22
Convert WordPress collation to utf8mb_swedish_ci
<?php
if ( ! defined( 'WP_CLI' ) ) {
print "Run with wp eval-file wp_collate.php\n";
exit;
}
global $wpdb, $table_prefix;
$wp_config_path = \WP_CLI\Utils\locate_wp_config();