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
### Keybase proof | |
I hereby claim: | |
* I am wileyj on github. | |
* I am wileyj (https://keybase.io/wileyj) on keybase. | |
* I have a public key whose fingerprint is AE7B 37FD B634 A08F 8904 AC1A 2EF1 0D71 9C76 8737 | |
To claim this, I am signing this object: |
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 python | |
import sys | |
import os | |
import argparse | |
import re | |
import errno | |
import stat | |
import pwd | |
import grp | |
# no longer needed since we hardcoded the mount cmd for now |
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
Port 22 | |
Protocol 2 | |
PidFile /var/run/sshd.pid | |
LogLevel INFO | |
SyslogFacility AUTH | |
PermitEmptyPasswords no | |
PubKeyAuthentication yes | |
DSAAuthentication yes | |
IgnoreRhosts yes |
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 python | |
import sys | |
import os | |
import argparse | |
import re | |
import errno | |
import stat | |
import pwd | |
import grp | |
# no longer needed since we hardcoded the mount cmd for now |
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 13EWrxFrtcKgFas5kvm3kQhX86KLjhFpCM https://explorer.blockstack.org/address/13EWrxFrtcKgFas5kvm3kQhX86KLjhFpCM |
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
import base64 | |
import hashlib | |
source = [ | |
"/path/to/chainstate.txt", # < -- edit this path | |
"/path/to//chainstate.txt.sha256" # < -- edit this path | |
] | |
for file in source: | |
hash_md5 = hashlib.md5() | |
with open(file, "rb") as f: | |
for chunk in iter(lambda: f.read(4096), b""): |
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 | |
NETWORK=$1 | |
OP=$2 | |
BINARY=stacks-node | |
BASEDIR=$HOME/stacks-blockchain | |
usage () { | |
echo "" | |
echo "$0 (mocknet|testnet|mainnet) (start|stop|restart)" |
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 python3 | |
import aiohttp | |
import asyncio | |
import time | |
from time import sleep | |
import math | |
from prometheus_client.parser import text_string_to_metric_families | |
urls = [ | |
'http://localhost:20443/v2/neighbors', |
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
FROM rust:slim-bullseye as build | |
ARG STACKS_VERSION="2.05.0.6.0" | |
ENV STACKS_VERSION="${STACKS_VERSION}" | |
WORKDIR /src | |
RUN apt-get update && apt-get install -y git | |
RUN mkdir /out |
OlderNewer