Skip to content

Instantly share code, notes, and snippets.

View benlk's full-sized avatar
🏡
Working from home

Ben Keith benlk

🏡
Working from home
View GitHub Profile
@benlk
benlk / 0-toc.md
Last active March 29, 2023 13:13
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
benlk / NASA-public.m3u8
Created December 3, 2015 22:47
Watching NASA Public Television without Flash
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=563000,RESOLUTION=1280x720,CODECS="avc1.77.30, mp4a.40.2"
http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_400_av-p.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=432000,RESOLUTION=428x240,CODECS="avc1.640029, mp4a.40.2"
http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_400_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=827000,RESOLUTION=1280x720,CODECS="avc1.77.30, mp4a.40.2"
http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_700_av-p.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=732000,RESOLUTION=428x240,CODECS="avc1.640029, mp4a.40.2"
http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_700_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2128000,RESOLUTION=1280x720,CODECS="avc1.77.30, mp4a.40.2"
@benlk
benlk / 1-notes.md
Last active March 26, 2020 02:03
Installation notes for Ubuntu 19.10 on a Dell Inspiron 13" 7386

Prereqs:

  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
  HostName 127.0.0.1
@benlk
benlk / notes.md
Last active May 22, 2019 13:03
Setting up phpdoc-md for phpdoc -> GitHub Wikis
@benlk
benlk / curl-with-sftp.sh
Last active September 9, 2018 03:52
For when you need to rebuild curl
#!/bin/sh
# copied from http://zeroset.mnim.org/2013/03/14/sftp-support-for-curl-in-ubuntu-12-10-quantal-quetzal-and-later/
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-*
dpkg-buildpackage
@benlk
benlk / 0-readme.md
Created July 13, 2018 14:43
Poking around the Pulse VPN client required by OSU

From https://cse.osu.edu/computing-services/resources/remote-access, download the Debian 64-bit installer:

$ wget http://web.cse.ohio-state.edu/cs/vpn/ps-pulse-linux-5.3r4.2-b639-ubuntu-debian-64-bit-installer.deb
$ 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
# 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 ./no-way-to-prevent-this.sh >/dev/null 2>&1

Keybase proof

I hereby claim:

  • I am benlk on github.
  • I am benlk (https://keybase.io/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: