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=NoIP update client | |
After=network.target | |
[Service] | |
Type=forking | |
User=pi | |
Group=pi | |
ExecStart=/usr/local/bin/noip2 |
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 | |
# Create log file | |
LOG="/tmp/ip-check.log" | |
touch $LOG | |
IP="$(dig +short myip.opendns.com @resolver1.opendns.com)" | |
LAST_IP="$(cat $LOG)" | |
if [ "$IP" != "$LAST_IP" ]; then |
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
<?php | |
require_once('vendor/autoload.php'); | |
use BitWasp\Bitcoin\Bitcoin; | |
use BitWasp\Bitcoin\Address\AddressCreator; | |
use BitWasp\Bitcoin\Key\Deterministic\HdPrefix\GlobalPrefixConfig; | |
use BitWasp\Bitcoin\Key\Deterministic\HdPrefix\NetworkConfig; | |
use BitWasp\Bitcoin\Network\Slip132\BitcoinRegistry; | |
use BitWasp\Bitcoin\Key\Deterministic\Slip132\Slip132; |
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
DAEMON_URL = http://<bitcoin.conf rpcuser>:<bitcoin.conf rpcpassowrd>@localhost:8332/ | |
DB_DIRECTORY = /Users/bitcoin/.electrumx/ | |
DB_ENGINE = leveldb | |
USERNAME = bitcoin | |
ELECTRUMX = /Users/bitcoin/source/electrumx/electrumx_server | |
HOST = 0.0.0.0 | |
ANON_LOGS = fuck off :) | |
BANNER_FILE = /Users/bitcoin/.electrumx/banner.txt | |
DONATION_ADDRESS = 34ie35p4G1npt6GoXR9BDhmMndNwCsiiEr |
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
DAEMON_URL = http://<bitcoin.conf rpcuser>:<bitcoin.conf rpcpassowrd>@localhost:8332/ | |
DB_DIRECTORY = /home/bitcoin/.electrumx/ | |
DB_ENGINE = leveldb | |
USERNAME = bitcoin | |
ELECTRUMX = /home/bitcoin/source/electrumx/electrumx_server.py | |
HOST = 0.0.0.0 | |
ANON_LOGS = "fuck off :)" | |
BANNER_FILE = /home/bitcoin/.electrumx/banner.txt | |
DONATION_ADDRESS = 1x1UnfVJu7cprs3E2jjQ9WRcdDi5KJxAU |
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 | |
# Run via cron | |
# */5 * * * * sh /home/pi/bin/ob2start.sh >/dev/null 2>&1 | |
PID="$(ps aux | grep -i openbazaard.go | grep -v grep | awk {'print $2'})" | |
if [ -z "$PID" ]; then | |
go run $GOPATH/src/github.com/OpenBazaar/openbazaar-go/openbazaard.go start | |
fi |
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
Verifying my Blockstack ID is secured with the address 143u5qs8w6FM13Av93ZGpzcUKWsfDah1sX https://explorer.blockstack.org/address/143u5qs8w6FM13Av93ZGpzcUKWsfDah1sX |
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 | |
# file names & paths | |
tmp="/tmp" # destination folder to store the final iso file | |
hostname="ubuntu" | |
currentuser="$( whoami)" | |
# define spinner function for slow tasks | |
# courtesy of http://fitnr.com/showing-a-bash-spinner.html | |
spinner() |
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
String.prototype.lpad = function(padString, length) { | |
var str = this; | |
while (str.length < length) | |
str = padString + str; | |
return str; | |
} | |
var blockHeight = 434695, | |
rawTx = '<raw transaction>', | |
blockLittleEndian = (blockHeight).toString(16).lpad('0', 8).match(/../g).reverse().join(''); |
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=LND Lightning Daemon | |
Requires=bitcoind.service | |
After=bitcoind.service | |
[Service] | |
ExecStart=/home/satoshi/go/bin/lnd | |
ExecStop=/home/satoshi/go/bin/lncli stop | |
PIDFile=/home/satoshi/.lnd/lnd.pid |