Skip to content

Instantly share code, notes, and snippets.

Working from home

Ben Keith benlk

Working from home
View GitHub Profile
benlk /
Last active Jun 15, 2021
Collection of notes on WP_UnitTestCase
  1. Table of contents
  2. General information
    1. Terms
    2. General structure of a test
    3. WordPress-specific assertions and test functions
      • enqueues
      • creating posts
      • creating terms
      • attaching images
      • ?
benlk / NASA-public.m3u8
Created Dec 3, 2015
Watching NASA Public Television without Flash
View NASA-public.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=563000,RESOLUTION=1280x720,CODECS="avc1.77.30, mp4a.40.2"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=432000,RESOLUTION=428x240,CODECS="avc1.640029, mp4a.40.2"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=827000,RESOLUTION=1280x720,CODECS="avc1.77.30, mp4a.40.2"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=732000,RESOLUTION=428x240,CODECS="avc1.640029, mp4a.40.2"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2128000,RESOLUTION=1280x720,CODECS="avc1.77.30, mp4a.40.2"
benlk /
Last active Mar 26, 2020
Installation notes for Ubuntu 19.10 on a Dell Inspiron 13" 7386


  1. Two thumb drives, at least 4GB
  2. A Dell Inspiron 13" 7386. It may be labeled as a 7000-series 2-in-1. If you're not sure of the model number, check your purchase materials, or in the OEM-installed Windows open the Dell Service application.

Optional prereqs:

  1. A second computer, for displaying things like manuals, instructions, and for burning bootable drives. You can do this project without it; it's just not really recommended by me.
  2. Print off the service manual.
  3. Print off this list.
  4. Generate the following:
    • device admin password

If you've had to re-associate your virtual machine with vagrant, but vagrant ssh now requires a password to connect, this is because the ssh key associated with the box disappeared. You can still get in with the password vagrant (usually), but many workflows will need the automatic connection.

Here's how to regain public/private key authentication to ssh into your vagrant virtual machine:

Run vagrant up, then vagrant ssh-config to find the IdentityFile:

$ vagrant ssh-config
Host default
benlk /
Last active May 22, 2019
Setting up phpdoc-md for phpdoc -> GitHub Wikis
benlk /
Last active Sep 9, 2018
For when you need to rebuild curl
# copied from
mkdir /tmp/curl
cd /tmp/curl
sudo apt-get update
sudo apt-get install build-essential debhelper libssh2-1-dev
apt-get source curl
sudo apt-get build-dep curl
cd curl-*
benlk /
Created Jul 13, 2018
Poking around the Pulse VPN client required by OSU

From, download the Debian 64-bit installer:

$ wget
$ ar vx ps-pulse-linux-5.3r4.2-b639-ubuntu-debian-64-bit-installer.deb 
x - debian-binary
x - control.tar.gz
x - data.tar.gz
View crontab
# mins hours days months weekday
# At 3 p.m. on every 10th day-of-month if today is Monday through Friday, run the shell script
* 15 */10 * 1-5 ./ >/dev/null 2>&1

Keybase proof

I hereby claim:

  • I am benlk on github.
  • I am benlk ( on keybase.
  • I have a public key whose fingerprint is 4C2D F6E4 5925 87CB 9DCF 8CBF E6E2 B01D C9C6 01F7

To claim this, I am signing this object: