Skip to content

Instantly share code, notes, and snippets.

View bernardoaraujor's full-sized avatar

bernardo bernardoaraujor

View GitHub Profile
fc-cli v1.0.0-dev (/Users/bear/develop/frontier/client/cli)
├── clap v4.1.6
│ ├── bitflags v1.3.2
│ ├── clap_derive v4.1.0 (proc-macro)
│ │ ├── heck v0.4.0
│ │ ├── proc-macro-error v1.0.4
│ │ │ ├── proc-macro-error-attr v1.0.4 (proc-macro)
│ │ │ │ ├── proc-macro2 v1.0.50
│ │ │ │ │ └── unicode-ident v1.0.6
│ │ │ │ └── quote v1.0.23
#![cfg_attr(not(feature = "std"), no_std)]
// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.
#![recursion_limit = "256"]
// Make the WASM binary available.
#[cfg(feature = "std")]
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
mod currency;
mod weights;
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Moonbeam is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Moonbeam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
-- file: ethabi/Cargo.toml --
[package]
name = "ethabi"
version = "18.0.0"
authors = [
    "Parity Technologies <admin@parity.io>",
    "Artem Vorotnikov <artem@vorotnikov.me>",
    "Nicholas Rodrigues Lordello <nlordell@gmail.com>",
]
@bernardoaraujor
bernardoaraujor / vinteum_test.py
Last active September 21, 2022 21:28
vinteum_test.py
#!/usr/bin/env python3
from test_framework.blocktools import create_coinbase
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal
from test_framework.messages import CBlock
from test_framework.blocktools import NORMAL_GBT_REQUEST_PARAMS
def assert_template(node, block, expect, rehash=True):
if rehash:
@bernardoaraujor
bernardoaraujor / Dockerfile
Last active February 28, 2022 18:40 — forked from niklasad1/Dockerfile
Polkadot Raspberry PI (64 bit) cross-compile build
# Put this file in the root of substrate / polkadot directory.
FROM rust:latest
RUN dpkg --add-architecture arm64 && \
apt-get update && apt-get upgrade -y && \
apt-get install -y aptitude && \
aptitude install -y \
gcc-aarch64-linux-gnu \
g++-aarch64-linux-gnu \
@bernardoaraujor
bernardoaraujor / nimbus_eth2_android_termux.md
Last active November 30, 2021 00:07
Nimbus Eth2 on Android Termux
  1. Install the Termux app from FDroid or the Google Play store.
  2. Install a PRoot of your choice following the instructions for your preferred distribution. Note, the Ubuntu PRoot is known to contain all Nimbus prerequisites compiled on Arm64 architecture (the most common architecture for Android devices).
$ pkg install proot
$ pkg install proot-distro
$ proot-distro install ubuntu
$ proot-distro login ubuntu
@bernardoaraujor
bernardoaraujor / m3u8-to-mp4.md
Created June 25, 2021 20:34 — forked from tzmartin/m3u8-to-mp4.md
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4

Keybase proof

I hereby claim:

  • I am bernardoaraujor on github.
  • I am bernardoaraujor (https://keybase.io/bernardoaraujor) on keybase.
  • I have a public key ASAR0h1E3gv84wWzGMDBstqaW6kpg94h8iElrt-Vqc8FiQo

To claim this, I am signing this object:

@bernardoaraujor
bernardoaraujor / QLE_de10-nano.md
Last active February 23, 2020 21:40
QLE_de10-nano

This is a little guide so anyone who owns an Intel DE10-Nano can try out the first Qubic release.

I will not cover any HDL-related topics. This is only meant to get UBoot to load the FPGA Configuration bitstream into Linux's memory mapped device (a.k.a /dev/mem), and then use the devmem utility to peek and poke the QLEs and QLUTs residing in the soft-IP side of the SoCFPGA.

The steps are loosely based on the tutorials from this Intel repository, mainly writeup_linux.pdf, which can be found in its [release page](htt