This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
# --------------------------------------------------------------------------- | |
# This software is in the public domain, furnished "as is", without technical | |
# support, and with no warranty, express or implied, as to its usefulness for | |
# any purpose. | |
# | |
# Usage: | |
# ./dump_wallet_addresses.py <wallet binary> | |
# |
This file contains hidden or 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 python | |
#pylint: indent-string=' ' | |
import serial | |
import daemon | |
import signal | |
import lockfile | |
import time | |
import getopt | |
import os |
This file contains hidden or 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 | |
set -x | |
msg="$SERVER has started." | |
shutdown_dt=$(last -x --time-format iso |grep shutdown | head -n 1 | awk '{print $7}') | |
if [ -n "$shutdown_dt" ]; then | |
msg="$msg Shutdown at $shutdown_dt" | |
fi |
This file contains hidden or 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 | |
dest=$1 | |
test -n "$dest" || exit 1 | |
read text | |
user=`whoami` | |
retries=5 | |
cont=1 | |
while test $retries -gt 0 -a $cont -ne 0; do |
This file contains hidden or 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=Sends SMS to notify about system coming up | |
After=network.target | |
[Service] | |
ExecStart=/usr/local/bin/notify-up.sh | |
Type=oneshot | |
[Install] | |
WantedBy=default.target |
OlderNewer