Skip to content

Instantly share code, notes, and snippets.

View goprognulinuxobsnotes.txt
While connected to a PC without drivers (such as GNU/Linux) over USB, the GoPro sets itself up as a USB Ethernet card and runs a DHCP server to assign your PC an address. Doesn't mess with my default route, so regular path to the internet still works. In my case the GoPro assigned me and nmap helped me discover the GoPro was on
I had to ask the GoPro to start streaming by visiting
the result returned JSON with
"status": 2,
"error": 0
markjenkins /
Last active Mar 20, 2022
Monitor the FSF LibrePlanet icecast servers view counts and total bandwidth
#!/usr/bin/env python3
# Monitor the FSF LibrePlanet icecast servers view counts and total bandwidth
# Copyright (C) 2022 Mark Jenkins <>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
markjenkins / 2022-02-22_boardcandidates.txt
Last active Feb 23, 2022
Skullspace Board Election 2022
View 2022-02-22_boardcandidates.txt
Elected by acclamation
Edwin Amsler
Pietra Shirley
Thor Robinson
Michael Kozakewich
markjenkins /
Created Oct 26, 2021
Get N random lines from a file
#!/usr/bin/env python3
# call with two arguments, the path to the file to read lines from and
# the number of lines
from sys import argv
from random import SystemRandom
with open(argv[1]) as f:
lines = f.readlines()
markjenkins / validateselectrequired.html
Created Oct 22, 2021
Proof of concept that modern browsers will enforce select required, default option disabled on form submit
View validateselectrequired.html
<!doctype html>
<html lang="en">
<form method="GET" action="">
<select name="q" required>
<option value="" disabled selected>Pick an option</option>
<option value="duck">Duck</option>
<option value="duck">Cat</option>
<option value="duck">Bear</option>
markjenkins /
Last active Oct 8, 2021
wordlist based password generators
#!/usr/bin/env python3
from __future__ import print_function
from random import SystemRandom
from os.path import join, dirname
sysrandom = SystemRandom()
View grade3_amesment_store_sat_backtracking.scm
;;; I frame this as a satisfiability problem and tackle it with backtracking
;;; and an optimizing heuristic
;;; The heuristic is this, we sort the items from lowest value to greatest
;;; and only try to add the next lowest item available in our search
;;; if that item puts the total over, then we know all remaining items
;;; which are of greater value will do the same
markjenkins / Barcode handling.js
Last active Jul 10, 2021 — forked from alexwebr/Barcode handling.js
Code snippet from MB Vaccine App
View Barcode handling.js
}, u.default.createElement(s.Camera, {
onBarCodeScanned: R ? function(t) {
var l, o, u, c, s, p, y;
return n.default.async(function(v) {
for (;;) switch (v.prev = {
case 0:
return l = t.type, o =, = 3, n.default.awrap(f.getNetworkStateAsync());
case 3:
if (!1 !== (u = v.sent).isConnected && !1 !== u.isInternetReachable) { = 8;
markjenkins / bip39_english.txt
Created Apr 17, 2021
Create an Electrum segwit (0x100) seed from a standard seed (0x01) using BIP39 english list
View bip39_english.txt
View 2021-02-23_boardcandidates.txt
Elected by acclamation
Michael Kozakewich
Kyle Martin
Edwin Amsler
Thor Robinson
Pietra Shirley