Skip to content

Instantly share code, notes, and snippets.

@bahamas10
bahamas10 / README.md
Created Sep 1, 2021
Quick and dirty youtube subscriber count getter
View README.md
$ ./get-subscriber-count
2.91K subscribers
@bahamas10
bahamas10 / output.md
Created Aug 16, 2021
game and watch 2
View output.md
$ OPENOCD=/opt/openopcd-git/bin/openocd ./5_restore.sh jlink
Ok, restoring original firmware! (We will not lock the device, so you won't have to repeat this procedure!)
Restoring internal flash...
Open On-Chip Debugger 0.11.0+dev-00331-g53556fcde-dirty (2021-08-16-17:30)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : J-Link ARM V8 compiled Dec  1 2009 11:42:48
Info : Hardware version: 8.00
@bahamas10
bahamas10 / output.md
Last active Sep 1, 2021
game and watch step 5
View output.md

Running through the steps of https://github.com/ghidraninja/game-and-watch-backup

steps 1 - 4 were a success, step 5 gives me this:

$ OPENOCD=/opt/openopcd-git/bin/openocd ./5_restore.sh jlink
Ok, restoring original firmware! (We will not lock the device, so you won't have to repeat this procedure!)
Restoring internal flash...
Open On-Chip Debugger 0.11.0+dev-00331-g53556fcde-dirty (2021-08-16-17:30)
Licensed under GNU GPL v2
@bahamas10
bahamas10 / readme.md
Created Jul 28, 2020
ThinkPad TouchPad on Void Linux fix
View readme.md

Synaptics Touchpad

I did an XBPS upgrade on my Void Linux system and my touchpad stopped working (ThinkPad X1 Carbon Gen6). The TrackPoint (little red nub thingy in the keyboard) still worked just fine.

Find the device

@bahamas10
bahamas10 / readme.md
Created Jun 17, 2020
slow stat in smartos after usermod
View readme.md

Stat'ing my home directory normally:

$ echo $USER
dave
$ ptime stat /home/dave >/dev/null

real        0.004714407
user        0.000784144
sys         0.002977563
@bahamas10
bahamas10 / 00-patch.diff
Last active May 4, 2020
cueball postgres rust mdapi
View 00-patch.diff
diff --git a/utils/Cargo.toml b/utils/Cargo.toml
index 11b114c..e08a152 100644
--- a/utils/Cargo.toml
+++ b/utils/Cargo.toml
@@ -9,7 +9,7 @@ edition = "2018"
clap = "2.32"
cueball = "0.3.3"
cueball-manatee-primary-resolver = "0.3.0"
-cueball-postgres-connection = "0.3.0"
+cueball-postgres-connection = { git = "https://github.com/joyent/rust-cueball", branch = "master" }
@bahamas10
bahamas10 / 00-readme.md
Created Apr 6, 2020
void linux on illumos lx
View 00-readme.md
@bahamas10
bahamas10 / ps-svcs
Created Jan 14, 2020
illumo smf svcs for processes
View ps-svcs
#!/usr/bin/env bash
#
# svcs wrapper for services with processes
#
# Author: Dave Eddy <dave@daveeddy.com>
# Date: January 12, 2020
# License: MIT
red=$(tput setaf 1 2>/dev/null)
green=$(tput setaf 2 2>/dev/null)
@bahamas10
bahamas10 / about.txt
Last active Jan 7, 2020
X1 Carbon Gen 6 Void Linux Thunderbolt USB C Plugable Dock Error
View about.txt
$ uname -a
Linux temple 5.4.8_1 #1 SMP PREEMPT Sun Jan 5 18:00:07 UTC 2020 x86_64 GNU/Linux
View readme.md

updatebucketobjectmetadata-put-loginbucketsbucket_nameobjectsobject_namemetadata