Skip to content

Instantly share code, notes, and snippets.

@jordanholliday
jordanholliday / cat-file-to-json.txt
Last active July 10, 2019 16:14
Cat text file to json
$ brew install jq
$ var=$(cat filename.txt)
$ jq -n --arg v "$var" '{"foo": $v}' > filename.json
@ajfisher
ajfisher / _readme.md
Last active November 21, 2023 16:28
Auto WiFi detection and hotspot creation in boot for RPI

Auto WiFi detection or wifi hostpot creation during boot for RPI

Note: These are rough notes and there may be some variance as versions of raspbian get updated but should be pretty reliable as a guide.

This gist provides some instructions and config in order to have your Raspberry PI automatically connect to a roamed network, however if it fails to discover an available network it will set itself up as a wireless access point for you to connect to.