Skip to content

Instantly share code, notes, and snippets.

View matthutchinson's full-sized avatar
🧐
`¯\_(ツ)_/¯`

Matthew Hutchinson matthutchinson

🧐
`¯\_(ツ)_/¯`
View GitHub Profile
[ +10.806430] usb 1-1.1.2: new full-speed USB device number 15 using dwc2
[ +0.089543] usb 1-1.1.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice=81.34
[ +0.000050] usb 1-1.1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ +0.000026] usb 1-1.1.2: Product: USB Serial
[ +0.003787] ch341 1-1.1.2:1.0: ch341-uart converter detected
[ +0.002273] usb 1-1.1.2: ch341-uart converter now attached to ttyUSB0
[ +17.441387] usb 1-1.3: new full-speed USB device number 16 using dwc2
[ +0.091604] usb 1-1.3: New USB device found, idVendor=0fb6, idProduct=3e01, bcdDevice= 1.00
[ +0.000051] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ +0.000026] usb 1-1.3: Product: Multisystem Controller Slice
@matthutchinson
matthutchinson / gist:2a42fb48962899f85b8b5fd1957d8afa
Created May 1, 2024 15:06
dmesg after booting with both tapto & CTRLdock connected
/root# dmesg
[ 1.117466] ffc03000.serial1: ttyS1 at MMIO 0xffc03000 (irq = 49, base_baud = 6250000) is a 16550A
[ 1.120374] brd: module loaded
[ 1.127889] loop: module loaded
[ 1.131812] libphy: Fixed MDIO Bus: probed
[ 1.133081] socfpga-dwmac ff702000.ethernet: IRQ eth_wake_irq not found
[ 1.133107] socfpga-dwmac ff702000.ethernet: IRQ eth_lpi not found
[ 1.133259] socfpga-dwmac ff702000.ethernet: PTP uses main clock
[ 1.133618] socfpga-dwmac ff702000.ethernet: Version ID not available
[ 1.133641] socfpga-dwmac ff702000.ethernet: DWMAC1000
@matthutchinson
matthutchinson / gist:5aac4cc3d579bd7a95bc1f9f123b17b4
Created May 1, 2024 14:58
dmesg after booting with only tapto connected (and working)
/root# dmesg
[ 0.040995] Bluetooth: HCI socket layer initialized
[ 0.041004] Bluetooth: L2CAP socket layer initialized
[ 0.041023] Bluetooth: SCO socket layer initialized
[ 0.041432] clocksource: Switched to clocksource timer1
[ 0.073758] FS-Cache: Loaded
[ 0.079045] NET: Registered PF_INET protocol family
[ 0.079183] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.079936] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.079968] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
/media/fat/Scripts# ls -al /lib/firmware/rtlwifi
total 1084
drwxr-xr-x 2 root root 4096 Oct 27 23:09 .
drwxr-xr-x 6 root root 4096 Apr 13 2022 ..
-rw-r--r-- 1 root root 11216 Oct 18 2018 rtl8188efw.bin
-rw-r--r-- 1 root root 13904 Oct 18 2018 rtl8188eufw.bin
-rw-r--r-- 1 root root 16192 Oct 18 2018 rtl8192cfw.bin
-rw-r--r-- 1 root root 16332 Oct 18 2018 rtl8192cfwU_B.bin
👻 Starting ... |
Migrating 411 multi-part courses
NOTE course: #5828 (part 2 of 2) has 1 billing(s), moving them to course: #5827 (part 1) |
NOTE course: #4925 (part 2 of 2) has 1 billing(s), moving them to course: #4924 (part 1) |
NOTE course: #4751 (part 2 of 3) has 1 billing(s), moving them to course: #4750 (part 1) |
NOTE course: #4748 (part 2 of 3) has 1 billing(s), moving them to course: #4747 (part 1) |
NOTE course: #4478 (part 2 of 2) has 1 billing(s), moving them to course: #4477 (part 1)====== |
NOTE course: #4463 (part 2 of 2) has 1 billing(s), moving them to course: #4462 (part 1)======== |
NOTE course: #4129 (part 2 of 2) has 1 billing(s), moving them to course: #4127 (part 1)=

Booking Session Migration Process

Work packages

  1. Create a single booking session for the work package, using the work package's existing booking:
  • start/end from booking
  • platform from booking platform
  • location from booking location note
#!/usr/bin/env ruby
require "faker"
num_vcards = ARGV[0].to_i || 1
def random_vcard
fname = Faker::Name.first_name
lname = Faker::Name.last_name
<<~VCARD
@matthutchinson
matthutchinson / fake_customers_csv.rb
Created January 21, 2022 12:34
fakeout customers CSV
#!/usr/bin/env ruby
require "faker"
require "csv"
require "tzinfo"
def weighted_boolean(true_weight, false_weight)
random_weighted(true: true_weight, false: false_weight) == :true
end
@matthutchinson
matthutchinson / gist:9bdbf631b46064b00e03579cdd4ff584
Created October 30, 2021 17:31
Sys Prefs quit unexpectedly
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: System Preferences [6282]
Path: /System/Applications/System Preferences.app/Contents/MacOS/System Preferences
Identifier: com.apple.systempreferences
Version: 15.0 (15.0)
Build Info: SystemPrefsApp-519000000000000~264
Code Type: X86-64 (Native)
#!/usr/bin/env bash
set -e
# load default envrc
source_up
# auto-switch rubies
use chruby --auto
# node from ~/.nvmrc