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
Verifying my Blockstack ID is secured with the address 1FGnPy8UmJF4XtJHKLGX2RYgHTgKB4QNk2 https://explorer.blockstack.org/address/1FGnPy8UmJF4XtJHKLGX2RYgHTgKB4QNk2 |
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 | |
SCREEN="screen -d -m -S" | |
USER="nhz_user" | |
SUDO="sudo -u $USER" | |
HOME="/home/$USER" | |
LOGFILE="/var/log/nhz-check.log" | |
if ! [[ $(ps aux | egrep "[S]CREEN.*NHZ_NODE") ]]; then | |
echo "Restarting NHZ node at $(date)" >> $LOGFILE | |
PUB_DIR="$HOME/nhz-pub" |
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
<?php | |
// Try this with 1d00ffff for a diff of 1 (original Bitcoin mainnet and testnet) | |
// or 207fffff for 4.6565423739069E-10 (Bitcoin regtest network) | |
function ConvertBitsToDouble($nBits){ | |
$nShift = ($nBits >> 24) & 0xff; | |
$dDiff = | |
(double)0x0000ffff / (double)($nBits & 0x00ffffff); |
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 | |
# Pass this program the relative or full path to a binary to parse with `ldd` | |
PROGRAM=$1 | |
LDD_FILES=$(ldd "$1" | awk '{print $3}' | sed '/^$/d' | egrep -v "^\(0x.*\)") | |
for FILE in $LDD_FILES | |
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
#!/bin/bash | |
GIT=$(which git) | |
PHP=$(which php) | |
CURL=$(which curl) | |
COMPOSERURL="https://getcomposer.org/installer" | |
THIS="$0" | |
MODE="$1" |
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 | |
# Parameters | |
LSQLUSER="local_sql_user" | |
LSQLPW="local_sql_password" | |
DBNAME="db_name" | |
TABLELIST="example users sessions posts migrations" # For all tables, set to empty | |
ROSUSER="remote_os_user" | |
RHOST="remote-host.tld" | |
RSQLUSER="remote_sql_user" |
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 | |
ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS |
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
echo "x" > /sys/bus/scsi/devices/[n]:0:0:0/delete |
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
echo "0 0 0" >/sys/class/scsi_host/host[n]/scan |
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 | |
/usr/bin/grep UNCOMPRESSED /var/log/packages/* | awk -F: '{print $3,$1}' | sort -rn | egrep '^\s*[0-9]+\.?[0-9]+M' |
NewerOlder