View pushover
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 | |
TITLE=$1 | |
MESSAGE=$2 | |
PRIORITY=${3:-0} | |
RETRY=${4:-60} | |
EXPIRE=${5:-300} | |
if [ -z "$TITLE" ]; then | |
echo "No title provided" |
View dojo.service
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
[Unit] | |
Description=Samourai Dojo | |
After=bitcoind.service | |
[Service] | |
ExecStart=/home/satoshi/bin/dojo start | |
ExecStop=/home/satoshi/bin/dojo stop | |
User=satoshi | |
Group=satoshi | |
Type=forking |
View umbrel-middleware.service
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
[Unit] | |
Description=Umbrel Middleware | |
Requires=lnd.service | |
Wants=umbrel-manager.service | |
After=umbrel-manager.service | |
[Service] | |
WorkingDirectory=/home/satoshi/source/umbrel/umbrel-middleware | |
ExecStart=/usr/bin/yarn start | |
PIDFile=/home/satoshi/.umbrel/umbrel-middleware.pid |
View umbrel-manager.service
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
[Unit] | |
Description=Umbrel Manager | |
Requires=lnd.service | |
After=lnd.service | |
[Service] | |
WorkingDirectory=/home/satoshi/source/umbrel/umbrel-manager | |
ExecStart=/usr/bin/yarn start | |
PIDFile=/home/satoshi/.umbrel/umbrel-manager.pid |
View zte-sms-control.sh
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 | |
URL=http://192.168.0.1 | |
REFERER="$URL/index.html" | |
URL_SET="$URL/goform/goform_set_cmd_process" | |
URL_GET="$URL/goform/goform_get_cmd_process" | |
CONTENT_PREVIEW_LENGTH=40 | |
command -v jq >/dev/null 2>&1 || { echo >&2 "'jq' is required but not installed. Aborting."; exit 1; } |
View update_crypto.sh
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 | |
ARGS=$* | |
sudo apt-get update && sudo apt-get upgrade -y | |
needs_update() { | |
if [[ "$ARGS" == *force* ]]; then | |
git pull > /dev/null | |
else |
View zte-sms-forwarder.service
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
[Unit] | |
Description=ZTE SMS Forwarder | |
[Service] | |
User=pi | |
Group=pi | |
ExecStart=/home/pi/bin/zte-sms-forwarder.sh |
View zte-sms-forwarder.timer
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
[Unit] | |
Description=ZTE SMS Forwarder timer | |
[Timer] | |
OnBootSec=10 | |
OnUnitActiveSec=10 | |
Unit=zte-sms-forwarder.service | |
[Install] | |
WantedBy=timers.target |
View zte-sms-forwarder.sh
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 | |
PUSHOVER_TOKEN="<token>" | |
PUSHOVER_USER="<user>" | |
# The list of blocked keywords | |
declare -a BLOCKED=("uber eats" "block another keyword") | |
URL=http://192.168.0.1 | |
REFERER="$URL/index.html" | |
URL_SET="$URL/goform/goform_set_cmd_process" |
View service_status.sh
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 | |
URL="https://freedomnode.com/server-maintenance" | |
if [ "`wget -qO- $URL | sed -e 's/<[^>]*>//g' 2> /dev/null`" != "true" ]; then | |
SERVICES=(bitcoind lnd monerod btcpayserver nbxplorer thunderhub electrs tor nginx) | |
TITLE="Services alert!" | |
MESSAGE="" | |
for SERVICE in "${SERVICES[@]}" |
NewerOlder