Skip to content

Instantly share code, notes, and snippets.

Avatar
🏡
Working from home

Ben Keith benlk

🏡
Working from home
View GitHub Profile
@benlk
benlk / 0-toc.md
Last active Jun 15, 2021
Collection of notes on WP_UnitTestCase
View 0-toc.md
  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 Dec 3, 2015
Watching NASA Public Television without Flash
View NASA-public.m3u8
#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"
View 0-readme.md
@benlk
benlk / 1-notes.md
Last active Mar 26, 2020
Installation notes for Ubuntu 19.10 on a Dell Inspiron 13" 7386
View 1-notes.md

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
View fixing-vagrant-ssh-issues.md

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
Setting up phpdoc-md for phpdoc -> GitHub Wikis
View notes.md
@benlk
benlk / curl-with-sftp.sh
Last active Sep 9, 2018
For when you need to rebuild curl
View curl-with-sftp.sh
#!/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 Jul 13, 2018
Poking around the Pulse VPN client required by OSU
View 0-readme.md

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
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 ./no-way-to-prevent-this.sh >/dev/null 2>&1
View keybase.md

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: