Skip to content

Instantly share code, notes, and snippets.

View mariodian's full-sized avatar

Mario Dian mariodian

View GitHub Profile
@mariodian
mariodian / monero-wallet-rpc.service
Created August 22, 2023 04:01
Monero Wallet RPC Systemd service
[Unit]
Description=Monero Wallet RPC
After=monerod.service
[Service]
User=satoshi
Group=satoshi
Type=simple
ExecStart=/usr/local/bin/monero-wallet-rpc --rpc-bind-ip=127.0.0.1 --disable-rpc-login \
@mariodian
mariodian / pushover
Created November 14, 2021 01:49
Send pushover notifications
#!/bin/bash
TITLE=$1
MESSAGE=$2
PRIORITY=${3:-0}
RETRY=${4:-60}
EXPIRE=${5:-300}
if [ -z "$TITLE" ]; then
echo "No title provided"
@mariodian
mariodian / dojo.service
Created September 23, 2020 14:36
Dojo Systemd Service
[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
@mariodian
mariodian / umbrel-middleware.service
Created September 2, 2020 07:51
Umbrel Middleware systemd
[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
@mariodian
mariodian / umbrel-manager.service
Created September 2, 2020 07:50
Umbrel Manager systemd
[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
@mariodian
mariodian / zte-sms-control.sh
Created December 4, 2019 11:39
Read SMS on ZTE
#!/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; }
@mariodian
mariodian / update_crypto.sh
Last active November 7, 2019 04:55
Update crypto nodes and services
#!/bin/bash
ARGS=$*
sudo apt-get update && sudo apt-get upgrade -y
needs_update() {
if [[ "$ARGS" == *force* ]]; then
git pull > /dev/null
else
[Unit]
Description=ZTE SMS Forwarder
[Service]
User=pi
Group=pi
ExecStart=/home/pi/bin/zte-sms-forwarder.sh
[Unit]
Description=ZTE SMS Forwarder timer
[Timer]
OnBootSec=10
OnUnitActiveSec=10
Unit=zte-sms-forwarder.service
[Install]
WantedBy=timers.target
@mariodian
mariodian / zte-sms-forwarder.sh
Last active August 16, 2024 11:32
ZTE 3G/4G Modem SMS Forwarder
#!/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"