Skip to content

Instantly share code, notes, and snippets.

Avatar
🌮
Focusing on tacos

Daniel Andrade dansku

🌮
Focusing on tacos
View GitHub Profile
View music.py
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"],
View main.py
import test
print("OLA GATINHO")
@dansku
dansku / grant.md
Last active May 10, 2022
dewi bounty api grant
View grant.md

DeWi Bounty Program

Public Helium API

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

@dansku
dansku / helium_etl.md
Last active Jun 30, 2022
Helium ETL Setup Tutorial
View helium_etl.md

Setting up a Helium ETL

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.

Server Requirements

  • 2TB SSD (NVME prefered) disk

Install and configure PostgreSQL + PostGis

@dansku
dansku / etl_backups.sh
Last active Aug 8, 2021
etl snapshot script.
View etl_backups.sh
#!/bin/bash
# Variables
ETL_DIR=/root/blockchain-etl
ETL_USER=etl
ETL_DB=etl
ETL_PASS=etl
EXPORT_CORES=32
PSQL_HOST=localhost
EXPORT_DIR=/root/export
@dansku
dansku / minerChecker.sh
Created Sep 14, 2020
helium gatewau height checker
View minerChecker.sh
while true; do
miner01=$(docker exec miner001 miner info height | awk '{print $2}')
miner02=$(docker exec miner002 miner info height | awk '{print $2}')
miner03=$(docker exec miner003 miner info height | awk '{print $2}')
folder01=$(du -hs minerdata001 | awk '{print $1}')
folder02=$(du -hs minerdata002 | awk '{print $1}')
folder03=$(du -hs minerdata003 | awk '{print $1}')
@dansku
dansku / interfaces.go
Created Sep 1, 2020
List all network interfaces in go
View interfaces.go
package main
import (
"fmt"
"net"
)
func localAddresses() {
ifaces, err := net.Interfaces()
if err != nil {
@dansku
dansku / balena-cli_windows_wsl.md
Created Jun 4, 2019
Install balena-cli on windows 10 wsl
View balena-cli_windows_wsl.md
@dansku
dansku / avengers_watch_order.md
Last active Jul 9, 2019
avengers_watch_order
View avengers_watch_order.md

Downloaded

  1. Captain America: The First Avenger (2011)
  2. Captain Marvel (2019)
  3. Iron Man (2008)
  4. Iron Man 2 (2010)
  5. The Incredible Hulk (2008)
  6. Thor (2011)
  7. The Avengers (2012)
  8. Thor: The Dark World (2013)
@dansku
dansku / ender3_profile.ini
Created Apr 15, 2019
Ender 3 Profile - You'll still need to set the printer size (220/220/250), nozzle diameter (0.4) and enable bed heating.
View ender3_profile.ini
[profile]
layer_height = 0.15
wall_thickness = 1.2
retraction_enable = True
solid_layer_thickness = 1.2
fill_density = 15
print_speed = 50
print_temperature = 200
print_temperature2 = 0
print_temperature3 = 0