Skip to content

Instantly share code, notes, and snippets.

View jack828's full-sized avatar
🏴󠁧󠁢󠁳󠁣󠁴󠁿
Dare Mighty Things

Jack Burgess jack828

🏴󠁧󠁢󠁳󠁣󠁴󠁿
Dare Mighty Things
View GitHub Profile
@jack828
jack828 / mdns-setup.sh
Last active December 12, 2023 18:54
TrueNAS Jail mDNS Setup Kickstarter
# An explanation of this script is available on my blog https://jackburgess.dev/blog/truenas-jails-access-via-mdns
# This allows you a nice way of connecting to your jails via their hostname using mDNS
# e.g. for Netdata, which runs on port 3000, you can access it on your jail via:
# http://<jail ip>:3000/
# But wouldn't it be nice to access it on
# http://jailhostname.local/
#
# Oneliner to kickstart
# pkg install -y curl && curl --silent https://gist.githubusercontent.com/jack828/b8375b16b6fb9eae52201d4deb563ab7/raw | /bin/sh -s PORT
@jack828
jack828 / mullvad-wg.conf
Created June 6, 2023 22:39
wireproxy freebsd rc.d script
### Get this file from Mullvad
## https://mullvad.net/en/account/#/wireguard-config
[Interface]
PrivateKey = <snip>
Address = 10.65.0.190/32,fc00:bbbb:bbbb:bb01::2:bd/128
DNS = 10.64.0.1
[Peer]
PublicKey = <snop>
@jack828
jack828 / hospital-wifi.js
Created September 14, 2022 17:25
HM Hospitales WiFi Auto Submit
#!/usr/bin/env node
const puppeteer = require('puppeteer')
;(async () => {
const browser = await puppeteer.launch({
headless: false,
args: ['--ignore-certificate-errors', '--disable-web-security']
})
const page = await browser.newPage()
await page.goto(`http://example.com/?${Date.now()}`, {
Let this long package float, 
Goto private class if short.
While protected with debugger case,  
Continue volatile interface.
Instanceof super synchronized throw, 
Extends final export throws.  

Try import double enum?  
- False, boolean, abstract function,