This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# check yt-dlp is installed (and if not install it via Homebrew) | |
which -s yt-dlp | |
if [[ $? != 0 ]] ; then | |
# check Homebrew is installed (and if not install it) | |
which -s brew | |
if [[ $? != 0 ]] ; then | |
# Install Homebrew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# disable sleep when lid closed | |
sudo pmset -b sleep 0; sudo pmset -b disablesleep 1 | |
# re-enable sleep when lid closed | |
sudo pmset -b sleep 5; sudo pmset -b disablesleep 0 | |
# prevent Photos opening when SD inserted | |
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES | |
# speed up Time Machine backups |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
File: WiFiLog.py | |
Author: garethnunns.com | |
Logs to CSV the RSS value perceived by the Raspberry Pi of devices connected to its WiFi AP | |
""" | |
import subprocess, csv, time, threading |