Skip to content

Instantly share code, notes, and snippets.

View todgru's full-sized avatar

todgru

  • Portland, OR
View GitHub Profile
@todgru
todgru / remote-office-not-required-my-take-home-points.md
Last active April 8, 2020 18:53
Remote, Office Not Require - summary of points that stood out for me

Remote, Office not Required https://basecamp.com/books/remote

1. If I can't see them, how do I know they're working?

(pg 54) People have amazing ability to live down to low expectations, or live up to high expectations. If there are trust issues with employees, then the employer made poor hiring decision. Employer/Employee trust is fundamental.

2. People’s homes are full of distractions

(pg 58) being easily distracted from work could mean the work is not well defined or the task is menial, pointless. Might be a chance that if someone feels like this, others on the team might feel the same.

@todgru
todgru / vpn-in-a-vpn.md
Last active January 6, 2022 21:56
vpn route through another vpn pihole pivpn dnsmasq openvpn

Vpn-ception

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.
@adrianbartyczak
adrianbartyczak / aws-signature-creator.sh
Created October 24, 2019 01:54
A signature creator for AWS signature version 4
#!/usr/bin/env bash
#
# File:
# aws-signature-creator.sh
#
# Description:
# A signature creator for AWS signature version 4
#
# References:
# https://czak.pl/2015/09/15/s3-rest-api-with-curl.html
@todgru
todgru / ssh.md
Last active June 19, 2019 06:08
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 [email protected]

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

@todgru
todgru / ffmpeg.md
Last active May 29, 2019 21:13
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

@gtasteve
gtasteve / start_Urbit_tmux.sh
Last active December 17, 2020 18:06 — forked from todgru/starttmux.sh
Start up tmux with custom windows, panes and applications running
#!/bin/sh
#
# Setup a work space for your Urbit ship `<ship-name>` with two windows
# first window has 3 panes.
# The first pane set at 65%, split horizontally, set to api root and running vim
# pane 2 is split at 25% and running redis-server
# pane 3 is set to api root and bash prompt.
# note: `api` aliased to `cd ~/path/to/work`
#
session="work"
@todgru
todgru / 0-ax25.md
Last active May 29, 2019 21:13
installing ax25 on debian 9 raspberry pi
@todgru
todgru / gist:39d3f58cff67f6552666da30497db279
Created January 26, 2019 22:01
converting debian 9 raspberry pi file system to f2fs
https://movr0.com/2016/08/19/convert-raspberry-pi-123-to-f2fs/
@todgru
todgru / jellyfin.md
Last active January 19, 2019 03:21

Jellyfin setup on Raspberry Pi 3 Debian 9(stretch)

Jellyfin is the open source version of Emby.

install docker

wget -nv -O- https://get.docker.com/ | sh