Skip to content

Instantly share code, notes, and snippets.

View ytjohn's full-sized avatar

John Hogenmiller ytjohn

View GitHub Profile
@ytjohn
ytjohn / meetings-aprs.bash
Created October 11, 2016 00:22
APRS Meetings
#!/bin/bash
#
# https://www.reddit.com/r/amateurradio/comments/4r2cq5/aprs_schedule_generator_for_direwolf/d4y9san
## Which week is this? Only needed for stuff to be advertised for one week per month
#weeknum=$[ ($(date +%e)-1)/7+1 ]
## returns 1 through 5
#[ "$weeknum" == 3 ] || exit 0
#
# Set your LATITUDE in DDMM.mmN/S
@ytjohn
ytjohn / replan.bash
Last active September 28, 2016 14:23
Making a Plan
#!/bin/bash
PLAN=~/.plan
PLAND=~/.plan.d
DATE=`date +%Y-%m-%d`
PLAN_TODAY="${PLAND}/plan-${DATE}"
if [ ! -d ${PLAND} ]
then
mkdir ${PLAND}
@ytjohn
ytjohn / k3bfdbeacon.ino
Created September 24, 2016 14:39
k3bdf beacon
// Simple CW Beacon
// by Charlie Davy M0PZT www.m0pzt.com
// 23rd December 2014
int pinPTT = 4;
int MorseLEDPin = 13;
int MorseTonePin = 5;
int MorseToneFreq = 700;
int MorseWPM = 16;
@ytjohn
ytjohn / details.txt
Created September 15, 2016 12:01
livecd kernel and driver
ubuntu-mate@ubuntu-mate:~$ dpkg -l xserver-xorg-video-nouveau
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==========================================-==========================-==========================-==========================================================================================
ii xserver-xorg-video-nouveau 1:1.0.12-1build2 amd64 X.Org X server -- Nouveau display driver
ubuntu-mate@ubuntu-mate:~$ dpkg -l linux\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
@ytjohn
ytjohn / install.log
Created September 13, 2016 22:26
4.7.3 install log
ytjohn@corp5510l:~/Downloads/kernel/4.7.3$ sudo dpkg -i linux*.deb
Selecting previously unselected package linux-headers-4.7.3-040703.
(Reading database ... 279167 files and directories currently installed.)
Preparing to unpack linux-headers-4.7.3-040703_4.7.3-040703.201609070334_all.deb ...
Unpacking linux-headers-4.7.3-040703 (4.7.3-040703.201609070334) ...
Selecting previously unselected package linux-headers-4.7.3-040703-generic:i386.
Preparing to unpack linux-headers-4.7.3-040703-generic_4.7.3-040703.201609070334_i386.deb ...
Unpacking linux-headers-4.7.3-040703-generic:i386 (4.7.3-040703.201609070334) ...
Selecting previously unselected package linux-image-4.7.3-040703-generic:i386.
Preparing to unpack linux-image-4.7.3-040703-generic_4.7.3-040703.201609070334_i386.deb ...

fulllog-2.md is from our regular workflow fulllog-3.md is what we see when we add the boot-to-disk task

@ytjohn
ytjohn / keybase.md
Created July 25, 2016 12:48
keybays proof

Keybase proof

I hereby claim:

  • I am ytjohn on github.
  • I am ytjohn (https://keybase.io/ytjohn) on keybase.
  • I have a public key whose fingerprint is 2BE3 149B 6947 721A AF42 81BB E830 519B B5BE 82C3

To claim this, I am signing this object:

@ytjohn
ytjohn / README.md
Last active July 22, 2016 19:55 — forked from dalebremner/README.md
OBM Settings Migration Script

Migrating RackHD OBM Settings to 2.0 OBM Model

Setup

clone the GIST containing the OBM migration script
cd to the cloned directory
npm install

Running the migration script

# Virtustream + RackHD use cases
Gabi, Rod, and I had a chance to sit down and go over a broad swath of feedback
related to their use of RackHD in deploying sites. To provide some background,
they've deployed 8 preliminary sites with RackHD, about 50 nodes each, with a
target of orchestrating a typical deployment of 200-250 physical compute servers.
Their configuration has a single RackHD instance per site, and her team (of which
you'll see Jamie, John & David on the Slack channel) is focused entirely on bare metal
verification and provisioning and standing up these sites as efficiently as possible.
@ytjohn
ytjohn / mongo-add-map.py
Created June 24, 2016 18:47
add interface-map to rubicon catalog data
#!/usr/bin/env python
# requires: `pip install pymongo`
from pymongo import MongoClient
INTERFACE_MAP = {"p3p2": "eth1", "p3p1": "eth0"}
def update_catalogs(db):
result = db.catalogs.update_many(