Skip to content

Instantly share code, notes, and snippets.

View richall's full-sized avatar

Wolfn404 richall

  • Atlanta
View GitHub Profile
@mbierman
mbierman / mount_usb.sh
Last active September 26, 2023 17:56
Mount/unmount USB on Firewalla
#!/bin/bash
# V 1.0
# Copyright Michael Bierman
# https://gist.github.com/mbierman/85c9672d212bdda09d9d4f5d27574d1f
mount_point=/mnt/usb-stick/
mounted=$(mount -l | grep -c "/mnt/usb-stick")
if [ "$1" = "u" ] && [ "$mounted" -eq "1" ] ; then
read -p "Want to Unmount the drive. Please press 'Y' to continue or any key to stop: " -n1 now
@mbierman
mbierman / logspeed.sh
Last active January 25, 2024 14:26
Log speedtest results on Firewalla
#!/bin/bash
# https://gist.github.com/mbierman/6a32df2909202c373a6a39063181dc40
# v 0.4.1
BASEDIR=$(dirname $0)
IFTTTKEY="$(cat $BASEDIR/IFTTT.data | grep IFTTTKEY| cut -f2 -d "=" )"
EVENT="FWspeedtest"
log=/data/logs/logspeed.log