Skip to content

Instantly share code, notes, and snippets.

View diemesleno's full-sized avatar

Diemesleno Souza Carvalho diemesleno

View GitHub Profile
@diemesleno
diemesleno / .env
Created September 22, 2022 19:39 — forked from BlockmanCodes/.env
INFURA_URL_TESTNET=<your_url_and_key>
@diemesleno
diemesleno / desafio_preselecao_vinteum.md
Last active September 26, 2022 10:58
Gist para o desafio de Pré-Seleção seminário da Viteum

Solução para o desafio de pré-seleção da Vinteum

1. Compilação do Bitcoin Core (Ubuntu 22.04 LTS)

a) Instalando as dependências:

sudo apt install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 libevent-dev libboost-dev libsqlite3-dev libminiupnpc-dev libnatpmp-dev libzmq3-dev systemtap-sdt-dev libqrencode-dev python3-zmq shellcheck -y

How to Build and Install a Monero Node on a Debian-based System

Hello. In this document, we will walk through the steps of building and hosting your own Monero node from source on a Debian-based Linux system. These systems include Raspbian, Debian (9 and above), and Ubuntu (18.04 and above). This tutorial assumes that you are capable of accessing the ROOT terminal of your Debian-based system, and are capable of getting your system online if necessary. You may plan on using an external storage device to store the blockchain, this tutorial will include the optional steps to support external storage. Alternatively, this setup procedure can also accomodate users looking to host a pruned blockchain with restricted storage space.

Here are some useful links for reaching this prerequisite if you do not currently have access to a Debian-based system that meets the recommended system requirements.

import requests
import io
r = requests.get("https://images.unsplash.com/photo-1452857576997-f0f12cd77844?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2850&q=80")
with io.BytesIO() as buf:
buf.write(r.content)
buf.seek(0)
requests.post(
"https://api.telegram.org/bot<TOKEN>/sendPhoto?chat_id=<chat_id>",
import requests
import os
r = requests.get("https://images.unsplash.com/photo-1452857576997-f0f12cd77844?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2850&q=80")
with open("photo.jpg", "wb") as f:
f.write(r.content)
requests.post(
"https://api.telegram.org/bot<TOKEN>/sendPhoto?chat_id=<chat_id>",
files={"photo": open("photo.jpg", "rb")}
@diemesleno
diemesleno / vscode-extensions-gist
Created January 22, 2020 19:59
Gist to sync my vscode extensions
Just to sync