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/sh | |
# Spencer Butler <github@tcos.us> | |
# ToS doesn't provide stock float infomation. | |
# Grab symbols from FinViz that meet your float requirements. | |
# In ToS Watchlist > Create watchlist > import > select the csv file | |
# You can then create a scanner and choose this watchlist to "Scan in:". | |
# Change this to the directory you want to save your watchlists. | |
outdir="$HOME" |
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
######################################## | |
# Fix this, it leaks RAM like crazytown. | |
# Freed 6G of RAM immediately after | |
# removing this card! --spencer | |
######################################## | |
id: crooked_status | |
type: custom:config-template-card | |
variables: | |
- states['sensor.disk_use_percent'].state |
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/sh | |
dir='/home/spencer/build/librenms' | |
device="$lnms_host" | |
os='liebert' | |
run() { | |
cd $dir | |
rm cache/os_defs.cache | |
./discovery.php -h $device |
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
#!/usr/bin/env bash | |
if [ ! $1 ]; then | |
echo "What VPN do you want to connect to?" | |
echo "Usage: $(basename $0) <changeme|anotherserver>" | |
exit | |
fi | |
if [ $(id -u) -ne 0 ]; then | |
echo 'use root' | |
exit | |
fi |