Skip to content

Instantly share code, notes, and snippets.

Avatar

Jamie Wilkinson jamiew

View GitHub Profile
View helium magic-blood-moose
$ for i in poc_summary poc_v10 poc_reliability; do python3 analyze_hotspot.py -x $i -n magic-blood-moose -c 1000; done
************ poc_summary ************
analyzing 1000 challenges from block 528279-495292 over 21 days, 2 hrs
PoC Summary Report for: magic-blood-moose
PoC Eligibility:
successfully targeted 199 times in 32987 blocks (every 166 blocks)
longest untargeted stretch: 925 blocks
challenger receipt txn 150 times in 32987 blocks (every 220 blocks)
View helium brisk-canvas-carp analysis
$ for i in poc_summary poc_v10 poc_reliability; do python3 analyze_hotspot.py -x $i -n brisk-canvas-carp -c 1000; done
************ poc_summary ************
analyzing 196 challenges from block 528017-511503 over 10 days, 19 hrs
PoC Summary Report for: brisk-canvas-carp
PoC Eligibility:
successfully targeted 105 times in 16514 blocks (every 157 blocks)
longest untargeted stretch: 726 blocks
challenger receipt txn 89 times in 16514 blocks (every 186 blocks)
View helium-etl 426k block error.log
Helium-etl errors
2020-08-30 21:56:27.278 [warning] <0.20515.0>@blockchain_txn_poc_receipts_v1:validate:744 TxnPathLength: 1, RebuiltPathLength: 2 [228/926986]
2020-08-30 21:56:27.278 [warning] <0.20515.0>@blockchain_txn_poc_receipts_v1:validate:745 TxnPath: ["beautiful-flint-pigeon"]
2020-08-30 21:56:27.278 [warning] <0.20515.0>@blockchain_txn_poc_receipts_v1:validate:746 RebuiltPath: ["original-cyan-ant","dapper-cloth-robin"]
2020-08-30 21:56:27.283 [warning] <0.20519.0>@blockchain_txn_poc_receipts_v1:validate:815 receipt not in order
2020-08-30 21:56:27.304 [warning] <0.20519.0>@blockchain_txn_poc_receipts_v1:validate:815 receipt not in order
2020-08-30 21:56:27.334 [warning] <0.20519.0>@blockchain_txn_poc_receipts_v1:validate:744 TxnPathLength: 2, RebuiltPathLength: 1
2020-08-30 21:56:27.334 [warning] <0.20519.0>@blockchain_txn_poc_receipts_v1:validate:745 TxnPath: ["elect
@jamiew
jamiew / helium-etl-update.sh
Created Aug 13, 2020
Simple script to manually update and restat a Helium blockchain-etl node
View helium-etl-update.sh
#!/bin/sh
set -e
git pull origin master
make release
make migrations
make start
tail -F _build/dev/rel/blockchain_etl/log/console.log
@jamiew
jamiew / .gitconfig
Last active Jun 15, 2020
public pieces of my .gitconfig
View .gitconfig
[user]
name = Jamie Dubs
email = noreply@example.com
[apply]
whitespace = fix
[branch]
autosetuprebase = always
autosetupmerge = always
[color]
branch = auto
View gist:74c6c4f5dbc93bb20fe2d5ef94a9b3c6
"No location requirements."
"Boston, SF, NY, Baltimore"
"United States"
"Newport Beach CA"
"San Francisco, Palo Alto, Stanford, Los Angeles, San Diego"
"Planet Earth (founder in Vancouver, BC)"
"California, New York"
"San Francisco"
"N/A"
"Just start uploading designs and software to the community"
View vimeo-master.json
{
"clip_id": "86a5d28c-22a1-4ad5-852e-169a3b195e9e",
"base_url": "../",
"video": [
{
"id": "4ca6366e",
"base_url": "4ca6366e/chop/",
"format": "mp42",
"mime_type": "video/mp4",
"codecs": "avc1.640028",
View gist:3131ecd193e3d3a5eb162da02c3bd079
# @jamiew PS1 customizations
# macOS edition
# bash/git completion are still in .bash_profile
# Calculate a dynamic hostname color... not really using this
#HOSTNAMECOLOR=$(hostname | od | tr ' ' '\n' | awk '{total = total + $1}END{print 30 + (total % 6)}')
#export HOSTNAMECOLOR
# Export some useful color codes
if tput setaf 1 &> /dev/null; then
View mac_installation.sh
#!/bin/bash
# set firmware password
# sudo firmwarepasswd -setpasswd -setmode command
# Disable the Character Accent Menu and Enable Key Repeat
defaults write -g ApplePressAndHoldEnabled -bool false
# Prevent generate .DS_Store
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
@jamiew
jamiew / helium-score.sh
Last active Jan 29, 2020
Fetch node score from Helium API
View helium-score.sh
#!/bin/sh
# requires jq, for manipulating JSON:
# brew install jq
#
# find your hotspot's address here:
# https://explorer.helium.foundation/api/hotspots/
address="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
curl -s "https://explorer.helium.foundation/api/hotspots/$address" | jq '.data .score'
You can’t perform that action at this time.