This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Author: Jay Dansand | |
# URL: https://gist.github.com/jaydansand/29744bd44d6ea68611e430a401cb7d14 | |
# Date: May 29 2019, modified June 28 2022 | |
CONTAINER="$1" | |
if [ -z "$CONTAINER" ]; then | |
echo "Usage: `basename $0` container|service [shell command]" | |
echo " Executes shell command (default bash || sh) in a container. If CONTAINER" | |
echo " is not a running Docker container (appearing in 'docker ls -a') then it" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Allow Update Notifications | |
Plugin URI: https://gist.github.com/jaydansand/2e41490a8b040a199db4 | |
Description: WordPress plugin to allow module/theme/core update notifications even when DISALLOW_FILE_MODS is TRUE. | |
Version: 1.0 | |
Author: Jay Dansand, Technology Services, Lawrence University | |
Author URI: https://gist.github.com/jaydansand | |
*/ | |
/* Copyright 2014 Lawrence University |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Jay Dansand, Technology Services, Lawrence University | |
# Date: 10/17/2014 | |
# OpenSSL requires a port specification; default to 443. | |
SERVER="$1:443" | |
SERVER_HOST=$(echo "$SERVER" | cut -d ":" -f 1) | |
SERVER_PORT=$(echo "$SERVER" | cut -d ":" -f 2) | |
if [[ -z "$SERVER_HOST" || -z "$SERVER_PORT" ]]; then | |
echo "Usage: $0 host[:port] [ciphers [delay in ms]]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: XMLRPC Slowdown | |
Plugin URI: | |
Description: Deliberately introduce some delay into XMLRPC calls to rate limit brute-force and DoS attacks. | |
Version: 1.0 | |
Author: Jay Dansand, Technology Services, Lawrence University | |
Author URI: https://gist.github.com/jaydansand | |
*/ |