Skip to content

Instantly share code, notes, and snippets.

View rickhurst's full-sized avatar

Rick Hurst rickhurst

View GitHub Profile
@rickhurst
rickhurst / tornadolog.py
Created October 19, 2018 16:55 — forked from asimihsan/tornadolog.py
Tail a file over HTTP WebSockets with a Tornado server.
#!/usr/bin/env python
import logging
import tornado.httpserver
import tornado.ioloop
import tornado.web
import tornado.websocket
from tornado.options import define, options
from tornado.process import Subprocess
<?php
/*
Plugin Name: WordPress VIP Proxy Verification
Description: Adds a new section to the WordPress Site Health Info page in wp-admin for helping to configure WordPress VIP Proxy Verification.
Version: 1.0.0
Author: Rick Hurst
*/
namespace VIPSiteInfo\ReverseProxy;
<?php
/*
Plugin Name: Option Compare with Backup
Description: Compares option values between wp_options and a backup table.
Version: 1.0
Author: Rick Hurst
*/
/**
* example usage
<?php
/*
Plugin Name: VIP Sandbox Local Logs
Description: Sets the error log path using ini_set.
Author: Rick Hurst
*/
// Hook to run the code as early as possible in WordPress plugin init
add_action('plugins_loaded', 'custom_set_error_log_path', 0);