Skip to content

Instantly share code, notes, and snippets.

Keith Solomon ksolomon

Block or report user

Report or block ksolomon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ksolomon / gist:159d00563278066f1b8bb42bfe46979b
Created Nov 21, 2017
IFF per-team results through Week 11 2017
View gist:159d00563278066f1b8bb42bfe46979b
Keith vs Cecil - 12-5-1
Keith vs Joey - 11-2
Keith vs Chris - 9-5
Keith vs Ty - 8-5
Keith vs Greg - 6-12
Keith vs Rob - 5-9-1
Keith vs Derek - 4-7
Keith vs Joe - 1-1
Keith vs Drew - 0-0
ksolomon / xmlrpc-brute-protection.php
Created Oct 9, 2015
Block XMLRPC Brute Force Amplification Attacks on WordPress
View xmlrpc-brute-protection.php
Plugin Name: XML-RPC Brute Protection
Description: Disable XML-RPC methods used in brute-force amplification attacks
Author: Keith Solomon
Version: 1.0
License: GPL2
function mmx_remove_xmlrpc_methods($methods) {
View wakatime-status-board.php
<?php header("refresh: 900;"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<style type="text/css">
body, * {
ksolomon / WIMSR-Multi-Screen-Test.js
Created May 16, 2015
Bookmarklet for WhatIsMyScreenResolution Multi Screen test
View WIMSR-Multi-Screen-Test.js
ksolomon / wpfuncs.php
Last active Oct 8, 2019
Collection of WordPress helper functions I use constantly.
View wpfuncs.php
// addFirstLastClass() - Add first and last classes to list items returned from wp_list_pages.
function addFirstLastClass($pageList) {
// pattern to focus on just li's
$allLisPattern = '/<li class="page_item(.*)<\/li>/s';
$liClassPattern = "/<li[^>]+class=\"([^\"]+)/i";
// first let's break out each li
$liArray = explode("\n",$allLis[0]);
View Custom META Tags for WordPress
Plugin Name: Custom META Tags
Description: Add custom META tags on a per-page/post basis using custom fields.
Author: Keith Solomon
Version: 1.0
Author URI:
You can’t perform that action at this time.