NebraLtd / hm-block-tracker

Helium Block Tracker enables "instant sync" functionality for Helium Hotspot Miners
MIT License
8 stars 5 forks source link

Python base64 :) #54

Open georgica opened 2 years ago

georgica commented 2 years ago

You don't need a python script to do the base64 encoding:

Here is how you do it with one line of code in bash: BASE64URL_FORMAT=$(echo "${BYTEARRAY:2:-2}" | tr ',' '\n' | xargs printf "%02X" | xxd -r -ps | base64 | tr -d '=' | tr +/ -)

Update that superior stack :)

shawaj commented 2 years ago

thanks @georgica - hope you are well dude!

georgica commented 2 years ago

with the recent outages, what can i say