Skip to content

Instantly share code, notes, and snippets.


Paul Schreiber paulschreiber

View GitHub Profile

local installation of Elasticsearch for WordPress VIP Go infrastructure

Update, 11/2022:

Apparently none of this will work with Elasticsearch versions greater than 8.0. See elastic/homebrew-tap#126 (comment). The alternative seems to be to use Docker, or since it's a big system either way might as well switch to VVV.

Previous instructions

These are basic instructions, and I'm sure could be tightened up.

suzannealdrich /
Last active September 9, 2021 04:24 — forked from kevinelliott/
macOS 10.15 Catalina Mostly-Automated Setup
imnotbob / intesis_connect.groovy
Created April 5, 2020 01:03
IntesisHome for Hubitat
View intesis_connect.groovy
* IntesisHome Connect
* Author: ERS
* based off device work by Martin Blomgren
* Last update: 2019-12-14
* Licensed under the Apache License, Version 2.0 (the 'License'); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at:
lizthegrey / attributes.rb
Last active January 17, 2023 22:50
Hardening SSH with 2fa
View attributes.rb
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
steven2358 /
Last active March 19, 2023 21:43
FFmpeg cheat sheet
tinkerware /
Last active March 20, 2023 13:22
Maintaining Java Installs on macOS Using Homebrew Cask

Maintaining Java Installs on macOS Using Homebrew Cask

Recently, I upgraded my MacBook Pro from a old, trusty Yosemite to Sierra, and reluctantly had to clean out the old JDK versions I had accumulated over a few years. I also wanted to have a Java 9 JDK to play around with the new module system and API’s.

Good news is that, for a while now, you have been able to install and upgrade multiple versions of JDK using only your shell, without having to deal with Oracle’s graphical installers.

To install Java from scratch, install Homebrew Cask cask-update (you need to have Homebrew already installed) first, then install Java using Cask:

brew tap buo/cask-upgrade & brew tap caskroom/versions
brew cask install java8
View BadTalkTitles
$thing for fun and profit
all your $thing are belong to $shutup
honey I $verbed the $thing
$thing demystified
$thing: a deep dive
$verb all the things
make $thing great again
$x and $y and $z, oh my!
kfatehi /
Last active January 18, 2023 16:56
list pull requests across entire organization
grahamgilbert /
Created September 5, 2016 11:03
Writing a base64 encoded string into a plist
import base64
import plistlib
import errno
import os
def mkdir_p(path):
MikeNGarrett / wp-config.php
Last active March 15, 2023 04:40
All those damned wp-config constants you can never remember.
View wp-config.php
// PHP memory limit for this site
define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit.
// Database
define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database.
define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users)
// Explicitely setting url