- Install WSL (https://linoxide.com/distros/how-install-ubuntu-windows-10/)
- Install Ubuntu ⤴
- Update software:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt install python
install python
/* | |
An open-source binary clock for Arduino. | |
Based on the code from by Rob Faludi (http://www.faludi.com) | |
Code under (cc) by Daniel Spillere Andrade, www.danielandrade.net | |
http://creativecommons.org/license/cc-gpl | |
*/ | |
int second=0, minute=0, hour=0; //start the time on 00:00:00 | |
int munit,hunit,valm=0,valh=0,ledstats,i; |
This documents explains a quick intro how to setup your own ETL server for the Helium Blockchain. Running an ETL is not an easy task, but hopefully this document will help you get started, and by the end you will have the blockchain up and running.
- 2TB SSD (NVME prefered) disk
package main | |
import ( | |
"fmt" | |
"net" | |
) | |
func localAddresses() { | |
ifaces, err := net.Interfaces() | |
if err != nil { |
import os | |
import requests | |
from bs4 import BeautifulSoup | |
import json | |
def download_file(url, local_filename): | |
with requests.get(url, stream=True) as r: | |
r.raise_for_status() | |
with open(local_filename, 'wb') as f: |
import os, time | |
dir_path = "" | |
def file_age(filepath): | |
age = time.time() - os.path.getmtime(filepath) | |
minutes = int(age) / 60 | |
hours = minutes / 60 | |
days = hours / 24 | |
return days |
func getGeoBoundaries(hex string) string { | |
bondaries := h3.ToGeoBoundary(h3.FromString(hex)) | |
// Iterate between all points | |
bondariesText := "" | |
for _, p := range bondaries { | |
bondariesText += fmt.Sprintf("%v %v,", p.Longitude, p.Latitude) | |
} |
The helium network started as a centralized network where the entire infrastructure (besides the hotpots) were deployed and managed by the Helium, inc. With the growth of the network, centralization starts to become an issue, where, as a completely decentralized network must work and grow even in the case of a failure of one of the main supporters (in this case, helium as a company).
At the current stage, most people, companies, and entities that interacts with the blockchain data utilizes the open API endpoints provided by helium, https://api.helium.io, which used to work smoothly until the network started to grow and the usage of the API skyrocketed causing multiple issues, from disrupting the wallet app in which most people use to monitor and manage their HNT.
This bounty comes in place to incentivize users to run their own infrastructure in order to reduce the current single-point of failure and load from the single API provided by helium, increase the decen
- Install Docker-CE into your server as-per the official instructions here: https://docs.docker.com/install/linux/docker-ce/ubuntu/
- Optional: add your user account to the “docker”
- Optional: enable a TCP socket for dockerd:
# /etc/systemd/system/docker.service.d/override.conf
[Service]
dic = { | |
"musicas": [ | |
{"nome": "Hey jude", "banda": "Beatles"}, | |
{"nome": "november rain", "banda": "Gun n' roses"}, | |
{"nome": "How deep is your love", "banda": "Bee Gees"}, | |
], | |
"filmes": { | |
"x-men": ["wolvwrine", "xavier", "tempestade", "Vampira", "Magneto", "Ciclope", "Gambit"], | |
"Avengers": ["Homen de ferro", "Hulk", "Thanos", "Capitão America", "Thor", "Capitã Marvel", "Homem-Aranha"], | |
"Star Wars": ["Luke", "Leia", "c-3PO", "Darth Vader", "Obi-wan", "Yoda", "R2-D2", "Han solo", "chewbacca"], |