Skip to content

Instantly share code, notes, and snippets.

View jacobpretorius's full-sized avatar
🏠
Working from home

Jacob Pretorius jacobpretorius

🏠
Working from home
View GitHub Profile
@jacobpretorius
jacobpretorius / Theme.txt
Created April 21, 2020 18:31
Slack theme - All grey all day
#3B3B3B,#525252,#878787,#FFFFFF,#525252,#ffffff,#ffffff,#9E9E9E
@jacobpretorius
jacobpretorius / FlexASIO.toml
Created May 6, 2020 20:01
FlexAsio low latency setup
backend = "Windows WASAPI" # Place in C:/Users/Username/
bufferSizeSamples = 12
[input]
device = "Microphone (Scarlett Solo USB)"
suggestedLatencySeconds = 0.0
wasapiExclusiveMode = true
[output]
device = "Speakers (3- JDS Labs DAC)"
@jacobpretorius
jacobpretorius / Style.css
Created September 13, 2020 15:31
Coda.io Minimalist / Focus Mode
/*
Coda.io Minimalist / Focus Mode
Use the Stylus (https://add0n.com/stylus.html) addon to run it.
Really there should be a hotkey to toggle it.
Example by Jacob Pretorius
https://twitter.com/jacob_pretorius
*/
@jacobpretorius
jacobpretorius / restart-wifi.md
Created April 18, 2021 11:22
Raspberry Pi OS (2021) Automatically reconnect to wifi when connection drops

Raspberry Pi OS (2021) Automatically reconnect to wifi when connection drops

I've been having a few wifi drops and then the pi doesn't reconnect until I reboot it manually. This script solves that.

First, add a new sudo cron

sudo crontab -e

Then adapt and paste the following, change the IP to that of your router or something you expect to be always up