Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block todgru

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
todgru /
Last active Nov 15, 2019
vpn route through another vpn pihole pivpn dnsmasq openvpn


Ideally, I like to run one vpn. I have OpenVPN/PiVPN working just fine.

On the PiVPN server, I'd like to run a VPN client to my work office.

It's difficult to get Cisco VPN client and Tunnelblick clients running side-by-side on the same machine, ie my local dev machine, without a seeming hack(see below).

I have it working locally.

  • Cisco AnyConnect Client connect to work VPN. Only specific resources are made available. All other traffic is routed as normal.
todgru /
Last active Jun 19, 2019
enable ssh on raspberry pi raspian fresh install etcher OS X Mac network cable direct connect
  • after image is flashed using Etcher, cd /Volumes/boot.
  • Then add ssh file to root. touch ssh.
  • connect network cable between os x computer and raspberry pi. boot the raspberry pi.
  • wait a minute.
  • then ssh pi@raspberrypi.local

That's it. No need for a screen, keyboard or any other device to get into the pi. :)

todgru /
Last active May 29, 2019
trim an mp3 from the command line cli using ffmpeg copies to new file, original undedited

trim an mp3

I record mp3s from a few streams. Sometimes the recordings do not stop on schedule. This command allows me to trim or trucate the mp3 file.

ffmpeg -i infile.mp3 -vn -acodec copy -ss 00:00:00 -t 01:00:34 outfile.mp3

installation on ubuntu 14.04

todgru /
Last active May 29, 2019
installing ax25 on debian 9 raspberry pi
todgru / gist:39d3f58cff67f6552666da30497db279
Created Jan 26, 2019
converting debian 9 raspberry pi file system to f2fs
View gist:39d3f58cff67f6552666da30497db279

Jellyfin setup on Raspberry Pi 3 Debian 9(stretch)

Jellyfin is the open source version of Emby.

install docker

wget -nv -O- | sh
todgru /
Created Jan 13, 2019
certbot lenscrypt ssl
todgru /
Last active Jan 8, 2019
osx debian usb asus 900A EEE PC

I created a bootable usb drive in disk utility

then ran diskutil list to find the identifier

/dev/disk2s1 in my case

make sure to unmount the drive

then dd


raspberry pi auto mount usb drive

my drive is hfsplus usb 2TB

get the usb UUID from blkid

pretty print drive locations lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL

followed this, with special attention to the order. Drive must be unmounted before running fsck.

You can’t perform that action at this time.