Skip to content

Instantly share code, notes, and snippets.

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

Matthew Hutchinson matthutchinson

🧐
`¯\_(ツ)_/¯`
View GitHub Profile
```
What is your FreeAgent email? [email protected]
==> Google OAuth 2 Setup
error: Did not recognize your adapter specification (incompatible library version - /Users/matt/.gem/ruby/2.6.3/gems/json-2.2.0/lib/json/ext/parser.bundle).
Traceback (most recent call last):
33: from /Users/matt/.gem/ruby/2.6.3/bin/devkit:23:in `<main>'
32: from /Users/matt/.gem/ruby/2.6.3/bin/devkit:23:in `load'
31: from /Users/matt/.gem/ruby/2.6.3/gems/freeagent-devkit-6.11.0/bin/devkit:64:in `<top (required)>'

Vim Help

Forgotten shortcuts and mappings

Insert Mode

Ctrl+w Delete word backwards Ctrl+n Ctrl+p Autocomplete word from next found forward or backward in file CTRL+xl Autocomplete entire line (must start with same chars) CTRL+xl Autocomplete to a local file path

#!/usr/bin/env bash
set -e
# load default envrc
source_up
# auto-switch rubies
use chruby --auto
# node from ~/.nvmrc
@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)
@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
#!/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

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
👻 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)=
/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
@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)