Skip to content

Instantly share code, notes, and snippets.

View boogah's full-sized avatar
😶‍🌫️

Jason Cosper boogah

😶‍🌫️
View GitHub Profile

Installing JMeter on Your Dev Machine

Included are the steps for macOS and Ubuntu/Debian. I didn't do Windows because I don't have or use Windows. My bad.

@boogah
boogah / jmeter-server_dirty-af.sh
Created October 11, 2016 23:55
Set up (and run) JMeter server on a remote host. Super quick. Super dirty. Works for me. No guarantees for you. YMMV.
# Install Java 7 on Ubuntu 16.04
add-apt-repository ppa:webupd8team/java
apt update
apt install oracle-java7-installer
# Install JMeter.
cd /tmp
wget -c http://mirrors.ibiblio.org/apache//jmeter/binaries/apache-jmeter-3.0.tgz
cd /opt
tar -xvzf /tmp/apache-jmeter-3.0.tgz
@boogah
boogah / update-alias.zsh
Created October 11, 2016 16:07
This is how I keep everything I use on my laptop up-to-date.
alias update="npm install npm -g ; npm update -g ; apm upgrade -c false ; composer global update ; wp cli update --nightly --yes ; brew update; brew cask update ; brew upgrade ; brew cleanup"
@boogah
boogah / pocketchip_first-run.md
Last active September 22, 2020 11:58
PocketCHIP: First Run!

My suggested list of terminal commands for your brand new PocketCHIP. These do the following things:

  • Reset your password.
  • Give you root user access to update and install software.
  • Update your PocketCHIP's core operating system.
  • Make sure that your locale and time zone data is right.
  • Install SSH and shut off WiFi power saving to prevent timeouts.
  • Install Pocket Home (Marshmallow edition).
  • Install rsync for easier file copying. (Optional)
  • Install git to easily grab projects from GitHub. (Optional)
@boogah
boogah / README.md
Last active April 30, 2021 22:32
Developing against WP Engine's login protection feature.

One of the ways that WP Engine determines what's a valid login attempt — and what's a script based brute force attack — is by requiring a query argument (of wpe-login) on all login attempts. The value must match the name of the install in order to be considered valid.

The install name is defined with PWP_NAME in wp-config.php on all WP Engine installs.

An example of a valid URL to submit your login query to is:

http://domain.com/wp-login.php?wpe-login=PWP_NAME

If you'd like to detect if you're on a WP Engine install, it's best if you check for the existence of the wpe_site function.

@boogah
boogah / .bash_profile
Last active February 24, 2016 01:36
One command to upgrade npm, Atom packages & Homebrew. Based on http://blog.thibmaekelbergh.be/2015/12/15/5-minute-guide-to-keeping-your-system-updated.html
# Note: You won't have access to this command until you run `source ~/.bash_profile` or log back in!
# Call this from cron or run manually as needed.
function update() {
echo "" ; echo "`date`: RUNNING: npm update"
npm install npm -g # Update npm itself
echo "`date`: FINISHED: npm update" ; echo "" ; echo "`date`: RUNNING: npm package updates"
npm update -g # Update installed npm packages
echo "`date`: FINISHED: npm package updates" ; echo "" ; echo "`date`: RUNNING: atom update"
apm upgrade -c false # Update Atom packages & themes
@boogah
boogah / php55-v-php7.md
Last active January 5, 2018 09:28
PHP 5.5 vs. PHP 7
@boogah
boogah / statham.txt
Created June 29, 2015 23:14
¯\_(ツ)_/¯
. .. . . s:2s2c526555c2c225c2;s:; . . .... . .
. .. . . ;.2s62YSPYZYPYZ6DZDPDPEDDDDEEHPPZPYPPPZPZPZPYP22:: . . .... . .
. .. . ssSSYYDZDPEDDPEDDDDDPZDPHHHHHENNNNDEDDNNEHPPDEDDDDDEDEEHDEY622. . : .... . .
. .. . . 66EDHENNNHZPDPEDEEHEHHHHHNNNDDDDPPPPPPEDPPEEEEEHHHHHHHHENNHHHNHNHNNNNNEDZZs. . .... . .
. .. .: .25DPNDEDPZZZZZSZDDEDPDDDDDYZYY6S6S6S666562S6YYSSSSSSZYPZPYPZDPEHEDDDEEDDEHEHEHEHPY5s. . :... . . .
. .. . . 25EPEDDDE
@boogah
boogah / hgv-prereq-no-brew-installer.bash
Last active November 6, 2015 01:03
HGV Prerequisite one-liners, for those who do (and don't) have Homebrew installed
brew install git ; brew install caskroom/cask/brew-cask ; brew cask install vagrant ; brew cask install virtualbox ; vagrant plugin install vagrant-ghost
@boogah
boogah / ale.bash
Last active July 11, 2022 00:32
Never think about maintaining your homebrew install again with this shitty (but useful) shell script & cron job!
#!/bin/bash
echo ""
echo "`date`: RUNNING: brew update"
/usr/local/bin/brew update
echo "`date`: FINISHED: brew update"
echo ""