Skip to content

Instantly share code, notes, and snippets.

View 0xanonymeow's full-sized avatar
👋
wagmi

0xa 0xanonymeow

👋
wagmi
View GitHub Profile
@0xanonymeow
0xanonymeow / example.go
Created November 4, 2024 10:26 — forked from fxfactorial/example.go
ABI encode struct in golang
package main
import (
"fmt"
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
)
@0xanonymeow
0xanonymeow / private_fork.md
Created October 29, 2024 09:56 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@0xanonymeow
0xanonymeow / ethereum_keys.sh
Created October 16, 2024 02:18 — forked from miguelmota/ethereum_keys.sh
Generate Ethereum Private key, Public key, and Address using Bash and OpenSSL
# Generate the private and public keys
openssl ecparam -name secp256k1 -genkey -noout | openssl ec -text -noout > key
# Extract the public key and remove the EC prefix 0x04
cat key | grep pub -A 5 | tail -n +2 | tr -d '\n[:space:]:' | sed 's/^04//' > pub
# Extract the private key and remove the leading zero byte
cat key | grep priv -A 3 | tail -n +2 | tr -d '\n[:space:]:' | sed 's/^00//' > priv
# Generate the hash and take the address part
@0xanonymeow
0xanonymeow / config.guess
Created January 30, 2024 05:41
This gist provides alternative config.guess and config.sub files commonly used in autotools-based projects for system configuration, serving as a backup in case the official Savannah server is down or unreachable (Updated: 2024-01-01)
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright 1992-2024 Free Software Foundation, Inc.
# shellcheck disable=SC2006,SC2268 # see below for rationale
timestamp='2024-01-01'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by