Skip to content

Instantly share code, notes, and snippets.

Aaron Henshaw aaronhenshaw

Block or report user

Report or block aaronhenshaw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keep.8.23.log
Established connection with bootstrap peer [16Uiu2HAm9RGTm8VGne5PvZGAw9KYNDggHaEQh5wiGSKgibp2G95r]
----------------------------------------------------------------------------------------------
| Node: node |
| Port: 0 |
| IPs : /ip4/127.0.0.1/tcp/3919/ipfs/16Uiu2HAmUeXvbrhXSPQbkZpWyZ89kRCnTCLhxW11rY7jvhZM3HkT |
| /ip4/100.96.27.7/tcp/3919/ipfs/16Uiu2HAmUeXvbrhXSPQbkZpWyZ89kRCnTCLhxW11rY7jvhZM3HkT |
----------------------------------------------------------------------------------------------
20:07:29.089 INFO keep-beaco: new relay entry requested: [&{Payment:+0 PreviousEntry:+10920102476789591414949377782104707130412218726336356788412941355500907533021 Seed:+63298657547152514731225823108792331452673489959881918470009857865243924868334 GroupPublicKey:[136 39 97 224 232 103 82 47 11 127 158 105 79 83 245 48 209 115 253 15 40 162 125 195 53 2
View install-bminer.sh
#!/bin/sh
#wget https://gist.githubusercontent.com/aaronhenshaw/6f88c6f882b295238c8953043ac0f9e0/raw/7523d7bdb803041c0bcf7e00d936a6c260bbcfb7/install-bminer.sh; chmod +x install-bminer.sh; sudo ./install-bminer.sh
#sudo ./install-bminer.sh aaron%2Btest%40website.co workerName
: ${1?Need a value for miner address}
: ${2?Need a value for worker name}
MINERUSER=$1
MINERWORKER=$2
@aaronhenshaw
aaronhenshaw / grin-miner-setup.txt
Last active Feb 25, 2019 — forked from joelallouz/grin-miner-setup.txt
Grin miner install on Ubuntu 18.04.1 LTS Server - Cuda Setup
View grin-miner-setup.txt
### Install, build and RUN Grin — Then stop it
sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt install build-essential cmake git libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev pkg-config libssl-dev llvm wget -y
mkdir /opt/
cd /opt/
wget https://github.com/mimblewimble/grin-miner/releases/download/v1.0.2/grin-miner-v1.0.2-480780314-linux-amd64.tgz
tar -xvf grin-miner-v1.0.2-480780314-linux-amd64.tgz -C .
mv grin-miner-v1.0.2 grin-miner
@aaronhenshaw
aaronhenshaw / monitor-reward.sh
Last active Sep 13, 2018
Script for monitoring reward call and sending SMS
View monitor-reward.sh
#!/bin/bash
journalctl -u livepeer-transcoder.service -f | \
while read line ; do
echo "$line" | grep "Called reward for round"
if [ $? = 0 ]
then
curl -s -d "to=%2Byour_number" -d "body=Completed Reward Call!" https://utils.lib.id/sms@1.0.4/
fi
echo "$line" | grep "Invoking transaction: \"reward\""
View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

View blockstackid
Verifying my Blockstack ID is secured with the address 1NXeNDwyykEALcaMFuqA7iDRRnsr8Gviyp https://explorer.blockstack.org/address/1NXeNDwyykEALcaMFuqA7iDRRnsr8Gviyp
View Dockerfile
#############
### RUN BUILD
#############
WORKDIR ${PROJECT_HOME}/app
RUN grails clean
EXPOSE 8443
CMD ["grails", "prod", "run-app", "--https"]
View Dockerfile
#############
### PULL REPO
#############
ENV PROJECT_HOME /opt/something
RUN mkdir ${PROJECT_HOME}
RUN git clone git@github.com:XXX/something.git ${PROJECT_HOME}/app
#############
### RUN BUILD
#############
View Dockerfile
#######################
### SSH KEYS FOR GITHUB
#######################
# Make ssh dir
RUN mkdir /root/.ssh/
# Copy over private key, and set permissions
ADD github_rsa /root/.ssh/id_rsa
ADD github_rsa.pub /root/.ssh/id_rsa.pub
RUN echo "IdentityFile /root/.ssh/id_rsa" >> /etc/ssh/ssh_config
View gist:d15b59ce41f2de13405c
#######################
### SSH KEYS FOR GITHUB
#######################
# Make ssh dir
RUN mkdir /root/.ssh/
# Copy over private key, and set permissions
ADD github_rsa /root/.ssh/id_rsa
ADD github_rsa.pub /root/.ssh/id_rsa.pub
RUN echo "IdentityFile /root/.ssh/id_rsa" >> /etc/ssh/ssh_config
You can’t perform that action at this time.