I hereby claim:
- I am neurocis on github.
- I am neurocis (https://keybase.io/neurocis) on keybase.
- I have a public key whose fingerprint is 24B3 6081 1058 E9C8 ECED 3185 2AFF DC5F 88EF E85F
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# An init.d script for running a Node.js process as a service using Forever as | |
# the process monitor. For more configuration options associated with Forever, | |
# see: https://github.com/nodejitsu/forever | |
# | |
# This was written for Debian distributions such as Ubuntu, but should still | |
# work on RedHat, Fedora, or other RPM-based distributions, since none of the | |
# built-in service functions are used. So information is provided for both. | |
# |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: {service name here} | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: {Short Desc} | |
# Description: {Long Desc} | |
### END INIT INFO |
#! /bin/bash | |
####################################################################### | |
# this is a helper script that keeps SnapRAID parity info in sync with | |
# your data. Here's how it works: | |
# 1) it first calls diff to figure out if the parity info is out of sync | |
# 2) if there are changed files (i.e. new, changed, moved or removed), | |
# it then checks how many files were removed. | |
# 3) if the deleted files exceed X (configurable), it triggers an | |
# alert email and stops. (in case of accidental deletions) | |
# 4) otherwise, it will call sync. |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: newpiggycoind | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: newpiggycoind daemon startup script | |
# Description: newpiggycoind daemon startup script | |
### END INIT INFO |
I hereby claim:
To claim this, I am signing this object:
git clone https://github.com/piggycoin/newpiggycoin.git | |
cd newpiggycoin | |
BITCOIN_ROOT=$(pwd) | |
# Pick some path to install BDB to, here we create a directory within the dogecoin directory | |
BDB_PREFIX="${BITCOIN_ROOT}/db5" | |
mkdir -p $BDB_PREFIX | |
# Fetch the source and verify that it is not tampered with |
# /boot/config/go | |
# add the following... | |
# Tailscale | |
bash /boot/config/tailscale/install.sh | |
bash /boot/config/tailscale/start.sh |
Which combines Install, setup & initialization and persists after reboot when stored as /config/scripts/post-config.d/tailscale.sh. Run sudo sh /config/scripts/post-config.d/tailscale.sh and follow the web link to initialize once script created.
#!/bin/sh
# /config/scripts/post-config.d/tailscale.sh
# check latest version against what's installed
#!/usr/bin/bash | |
echo "Looking for failed csum inodes...." | |
inodes=`dmesg | grep 'csum failed' | grep ino | sed 's/^.*ino \([0-9]*\) .*$/\1/g' | sort -u` | |
for f in $inodes; do echo -e " $f"; done | |
echo "" | |
echo "Finding files from inodes..." | |
corruptfiles=`for i in $inodes; do find /mnt/cache -inum $i 2>/dev/null; done` | |
for f in $corruptfiles; do echo -e " $f"; done |