Skip to content

Instantly share code, notes, and snippets.

View Nuttymoon's full-sized avatar
🦀

Gauthier Leonard Nuttymoon

🦀
View GitHub Profile
[08-24|19:11:33.794] INFO <FxvHFCiz789SZ5rZyFibk7A2GmnkLPp6CtuzFQHPDSZSuc9bL Chain> subprocess/runtime.go:143 plugin handshake succeeded {"addr": "127.0.0.1:34809"}
[08-24|19:11:33.795] INFO <FxvHFCiz789SZ5rZyFibk7A2GmnkLPp6CtuzFQHPDSZSuc9bL Chain> rpcchainvm/vm_client.go:170 grpc: serving database {"version": "v1.4.5", "address": "127.0.0.1:33229"}
[08-24|19:11:33.796] INFO <FxvHFCiz789SZ5rZyFibk7A2GmnkLPp6CtuzFQHPDSZSuc9bL Chain> rpcchainvm/vm_client.go:196 grpc: serving vm services {"address": "127.0.0.1:44405"}
INFO [08-24|19:11:33.797] <FxvHFCiz789SZ5rZyFibk7A2GmnkLPp6CtuzFQHPDSZSuc9bL Chain> github.com/ava-labs/subnet-evm/plugin/evm/vm.go:259: Initializing Subnet EVM VM Version=v0.5.4@490fc2918b4f0d02af991c029e358edb49f800e2 Config="{AirdropFile: SnowmanAPIEnabled:false WarpAPIEnabled:true AdminAPIEnabled:false AdminAPIDir: EnabledEthAPIs:[eth eth-filter net web3 internal-eth internal-blockchain internal-transaction] ContinuousProfilerDir: ContinuousProfilerFrequency:15m0s ContinuousProfilerMaxFiles:5 R
@Nuttymoon
Nuttymoon / ash-avalanche-stats.sh
Last active May 26, 2023 09:44
Gather Avalanche Subnets stats using Ash CLI
#!/bin/bash
export AVALANCHE_NETWORK="${AVALANCHE_NETWORK:-mainnet-ankr}"
echo "Avalanche Network: $AVALANCHE_NETWORK"
# Get the list of Subnets with at least one blockchain (exclude the Primary Network)
SUBNETS_W_CHAINS=$(
ash avalanche subnet list --json |
jq -r '.[] |
@Nuttymoon
Nuttymoon / scroll-l2-tokens-extended.json
Last active January 31, 2023 15:39
Scroll Pre-Alpha Testnet Extended Tokens list
{
"name": "Scroll L2 Tokens Ext",
"logoURI": "https://scroll.io/img/logo.png",
"keywords": ["defi", "DEFI"],
"timestamp": "2022-12-27T00:00:00.000Z",
"tokens": [
{
"chainId": 534354,
"address": "0xcb081e15ead7004d4e32d757d919ee07e8fb8af1",
"name": "TSUNI2",
@Nuttymoon
Nuttymoon / chroot-encrypted.md
Last active June 9, 2022 11:52
Ubuntu chroot procedure for encrypted systems

Ubuntu chroot procedure for encrypted systems

  1. Boot with a bootable Ubuntu USB
  2. Find the name of the root partition with lsblk
  3. Decrypt the partition using cryptsetup. The mapping name of the device has to be ${DEVICE}_crypt
    sudo cryptsetup luksOpen /dev/nvme0n1p3 nvme0n1p3_crypt
  4. Activate the new volume with vgchange
import os
import argparse
import sys
import configparser
DATABRICKSCFG = '~/.databrickscfg'
def parse_args():
"""Parse command line arguments
@Nuttymoon
Nuttymoon / create-keytab.sh
Last active April 8, 2022 15:20
Create a keytab using ktutil and j2cli Python package (useful for AD tied servers)
#!/usr/bin/env bash
# Generate a keytab using ktutil
# Store keys encrypted with des3, aes128, aes256, arcfour and des
# $1 = keytab principal
# $2 = keytab realm
# $3 = keytab filename
# $4 = principal password ('-' to prompt for password)
# $5 = kvno
@Nuttymoon
Nuttymoon / cat-avro.py
Last active October 10, 2018 11:12
Python scripts to manipulate Avro files
import argparse
from avro.datafile import DataFileReader
from avro.io import DatumReader
parser = argparse.ArgumentParser(
description='Equivalent of cat command for avro files.')
parser.add_argument('avropath', type=str, nargs=1,
help='the avro file to cat')
args = parser.parse_args()
@Nuttymoon
Nuttymoon / Vagrantfile
Last active September 5, 2019 00:37
Vagrantfile to test libvirt install
# -*- mode: ruby -*-
# vi: set ft=ruby :
box = "centos/7"
if Vagrant::VERSION == '1.8.5'
ui = Vagrant::UI::Colored.new
ui.error 'Unsupported Vagrant Version: 1.8.5'
ui.error 'Version 1.8.5 introduced an SSH key permissions bug, please upgrade to version 1.8.6+'
ui.error ''
@Nuttymoon
Nuttymoon / keybase.md
Created February 19, 2018 15:07
Keybase proof

Keybase proof

I hereby claim:

To claim this, I am signing this object: