Skip to content

Instantly share code, notes, and snippets.

View gianlucamazza's full-sized avatar
🏠
Working from space

Gianluca Mazza gianlucamazza

🏠
Working from space
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gianlucamazza on github.
  • I am gmazza (https://keybase.io/gmazza) on keybase.
  • I have a public key whose fingerprint is D1E9 326E 02A7 47F1 972B B171 55B4 7D80 39D0 728E

To claim this, I am signing this object:

async function getOutputScript(address) {
let script = await bitcoin.address.toOutputScript(address, getNetwork());
return script;
}
exports.prepareTx = async function (myaddresses, destination, satoshi, feeRate) {
let addresses = myaddresses.filter(hasUTXO)
for(let i = 0; i < addresses.length; i++) {
addresses[i].txs = await explorer.getAddressTxs(addresses[i].address);
@gianlucamazza
gianlucamazza / android_instructions.md
Created May 19, 2020 11:05 — forked from patrickhammond/android_instructions.md
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

@gianlucamazza
gianlucamazza / notes.md
Created November 21, 2020 00:37 — forked from miguelmota/notes.md
BIP32 vs BIP39 vs BIP44
  • BIP32 - is a method for generating a tree of private keys from a master private key.
  • BIP39 - method for encoding 128-256 bits of random data into 12-24 word phrases from a list of interchangable 2018 words, and then turn those phrases into a 64 byte hash.
  • BIP44 - is a method for structuring a private key tree in a specific way that will facilate usage/restoration/discovery of multiple accounts for multiple purposes.

Planet Wars

contracts documentation

Token economy

Oro: utilizzata come moneta, mezzo di pagamento per tutto l’ecosistema Planet wars.

L’oro è una risorsa capped con Max Cap di 100M, preminato di 25M dedicato alla private sale e alla ILO ed il resto destinato al tesoretto aziendale.

NFT
Stands for Non-Fungible Token. It’s a unique, one-of-a-kind digital asset that’s stored on a blockchain. No other token or cryptocurrency can replace it.
Collection
A collection refers to a portfolio of NFTs that are sold as part of a project, or as part of someone’s inventory e.g. OpenSea collection.
Floor
The ‘floor’ or ‘floor price’ of a project is simply the lowest price at which you can buy an NFT from that project on the secondary market. It’s the most popular metric for tracking a project’s performance over time and its relative success compared to others.
Floor Sweep
@gianlucamazza
gianlucamazza / distrobox-macos-setup.sh
Created May 3, 2025 00:12
Installing Distrobox on macOS with full Podman support
#!/bin/bash
# Strict mode: exit on error, exit on unset variable, pipefail
set -euo pipefail
echo "🚀 Installing Distrobox on macOS with full Podman support..."
# 1. Check for Homebrew
if ! command -v brew >/dev/null 2>&1; then
echo "❌ Homebrew is not installed. Please install it first: https://brew.sh"