I hereby claim:
- I am bjornjohansen on github.
- I am bjornjohansen (https://keybase.io/bjornjohansen) on keybase.
- I have a public key ASCrTUGCadfybRYNvfqSValmQEdSig65WPGxp2HvGsifigo
To claim this, I am signing this object:
| #!/bin/bash | |
| #================================================================ | |
| # Let's Encrypt renewal script for Nginx based on the script | |
| # by Erika Heidi for Apache on Ubuntu/Debian | |
| # @author Erika Heidi<[email protected]> | |
| # @author Bjørn Johansen <[email protected]> | |
| # Usage: ./le-renew.sh [base-domain-name] [path-to-webroot] | |
| #================================================================ | |
| domain=$1 | |
| webroot=$2 |
| vcl 4.0; | |
| import std; | |
| import directors; | |
| backend server1 { # Define one backend | |
| .host = "localhost"; | |
| .port = "8080"; | |
| .max_connections = 300; |
| <?php | |
| /** | |
| * Whitelist the remote IP in CloudProxy when the user logs into WordPress | |
| * | |
| * @param string $user_login The provided $user->user_login | |
| * @param WP_User $user The WP_User object | |
| */ | |
| function whitelist_ip_in_cloudproxy( $user_login, $user ) { |
| #!/bin/bash | |
| # Copyright © 2016 Bjørn Johansen | |
| # This work is free. You can redistribute it and/or modify it under the | |
| # terms of the Do What The Fuck You Want To Public License, Version 2, | |
| # as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. | |
| # Check if WP-CLI is available | |
| if ! hash wp 2>/dev/null; then | |
| echo "WP-CLI is not available" | |
| exit |
| #!/bin/bash | |
| touch checked.csv | |
| while IFS=',' read -r POS HOSTNAME; do | |
| if cat checked.csv | grep -qxF "$HOSTNAME"; then | |
| echo "Skipping $HOSTNAME, already checked." | |
| continue | |
| fi |
| <?php | |
| /** | |
| * Test a bunch of permutations of the password when logging into WordPress. | |
| * | |
| * Drop this file in your mu-plugins directory. | |
| * Inspired by Facebook: https://twitter.com/gcpascutto/status/821755332984717314/photo/1 | |
| * Works with any properly coded hashing pluggables, like Roots’ WP Password bcrypt. | |
| * | |
| * @author bjornjohansen | |
| * @version 0.1.4 |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| wp_load_translations_early(); | |
| $protocol = wp_get_server_protocol(); | |
| header( "$protocol 503 Service Unavailable", true, 503 ); | |
| header( 'Content-Type: text/html; charset=utf-8' ); | |
| header( 'Retry-After: 30' ); | |
| ?> | |
| <!DOCTYPE html> | |
| <html> |
| <?php | |
| /** | |
| * Authentication customizations. | |
| * | |
| * @package BJ\Auth | |
| */ | |
| /** | |
| * Filters the duration of the authentication cookie expiration period. | |
| * |