Skip to content

Instantly share code, notes, and snippets.

View shortword's full-sized avatar

Mike Bergeron shortword

View GitHub Profile
@shortword
shortword / dmesg
Created February 8, 2019 01:03
Yaesu FT991a Plug dmesg
[333394.108738] usb 1-1.4.3: new high-speed USB device number 46 using xhci_hcd
[333394.224822] usb 1-1.4.3: New USB device found, idVendor=0424, idProduct=2512
[333394.224831] usb 1-1.4.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[333394.225778] hub 1-1.4.3:1.0: USB hub found
[333394.225823] hub 1-1.4.3:1.0: 2 ports detected
[333394.516732] usb 1-1.4.3.1: new full-speed USB device number 47 using xhci_hcd
[333394.618823] usb 1-1.4.3.1: New USB device found, idVendor=10c4, idProduct=ea70
[333394.618829] usb 1-1.4.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[333394.618834] usb 1-1.4.3.1: Product: CP2105 Dual USB to UART Bridge Controller
[333394.618838] usb 1-1.4.3.1: Manufacturer: Silicon Labs
@shortword
shortword / tmux_ubuntu_bionic_user_build.sh
Created January 29, 2019 01:24
Building tmux on Ubuntu 18.04
sudo apt install build-essential libevent-dev libncurses5-dev autoconf git
git clone https://github.com/tmux/tmux.git
cd tmux
git checkout 2.8 # Always check for newer versions
sh autogen.sh
# NOTE: The prefixes used here are under ~/local; e.g. ~/local/src, ~/local/bin
# Many people simply have their PREFIX under $HOME
./configure --prefix=$HOME/local
make -j`nproc` # -j`nproc` parallelizes the build; omit for compatibility but slower build
make install
@shortword
shortword / yubikey_install_cmd
Last active January 17, 2019 23:25
Ubuntu install Yubikey PIV
sudo apt install -y yubikey-piv-manager
@shortword
shortword / restart_gpsd.sh
Created October 7, 2018 00:02
Restart gpsd
sudo service gpsd restart
@shortword
shortword / gpsd
Created October 7, 2018 00:00
/etc/default/gpsd explicit device
DEVICES="/dev/gps"
@shortword
shortword / install_gpsd.sh
Created October 6, 2018 23:57
Install gpsd
sudo apt install -y gpsd gpsd-clients
@shortword
shortword / 85-gps-usb.rules
Created October 6, 2018 23:48
USB GPS udev rules
ACTION=="add", KERNEL=="ttyUSB[0-9]*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idProduct}=="2303", ATTRS{idVendor}=="067b", SYMLINK+="gps"
@shortword
shortword / usb_gps_udev_query.sh
Created October 6, 2018 23:35
USB GPS udev query command
udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB0)
@shortword
shortword / usb_gps_udev_info.txt
Created October 6, 2018 23:33
USB GPS udev info
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0/tty/ttyUSB0':
KERNEL=="ttyUSB0"
SUBSYSTEM=="tty"
DRIVER==""
@shortword
shortword / udev_gps_output.txt
Created October 6, 2018 23:28
udevadm monitor USB GPS Output
KERNEL[1654.154728] add /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2 (usb)
KERNEL[1654.180457] add /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
KERNEL[1654.188490] add /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0 (usb-serial)
KERNEL[1654.192137] add /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0/tty/ttyUSB0 (tty)
UDEV [1654.272291] add /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2 (usb)
UDEV [1654.281351] add /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
UDEV [1654.287403] add /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0 (usb-serial)
UDEV [1654.322383] add /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0/tty/ttyUSB0 (tty)