Skip to content

Instantly share code, notes, and snippets.

View goodylili's full-sized avatar
🎯
Focusing

Ukeje Goodness goodylili

🎯
Focusing
View GitHub Profile
@goodylili
goodylili / unwrap.sh
Created March 4, 2025 08:13
Unwrap all files into the root directory
#!/bin/bash
# Unwrap all files from subdirectories into the root directory
# and remove empty folders.
ROOT_DIR="$1"
if [ -z "$ROOT_DIR" ]; then
echo "Usage: $0 <root_directory>"
exit 1
@goodylili
goodylili / precompiles.go
Created January 26, 2025 13:52
Avalanche Precompiles
package precompile
import (
"errors"
"github.com/ava-labs/avalanchego/utils/crypto/bls"
)
// BLSSignatureVerify is the precompiled contract for BLS signature verification
type BLSSignatureVerify struct{}
@goodylili
goodylili / move.gitignore
Created January 24, 2025 08:27
.gitignore template for Move codebases
# Move CLI build artifacts
/build/
/storage/
/.move/
/move.lock
# Temporary files
*.tmp
*.swp
*.swo
@goodylili
goodylili / swapback.go
Created August 27, 2024 08:09
SwapTokensforETH
package main
import (
"context"
"crypto/ecdsa"
"errors"
"fmt"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/core/types"
@goodylili
goodylili / v2.go
Last active August 21, 2024 14:19
listen to uniswap pair created events
package main
import (
"context"
"fmt"
"log"
"math/big"
"strings"
"time"
@goodylili
goodylili / simapp.md
Last active July 8, 2024 14:50
Possible updates to Simapp documentation from the Cosmos SDK
sidebar_position
1

SimApp

SimApp is a CLI application built using the Cosmos SDK for testing and educational purposes.

Running testnets with simd

@goodylili
goodylili / gitlab.go
Created December 30, 2023 09:33
GitLab Oauth Example
package main
import (
"context"
"encoding/json"
"fmt"
"golang.org/x/oauth2"
"io"
"net/http"
)
@goodylili
goodylili / gith.go
Created December 30, 2023 08:42
GitHub OAuth Golang
package main
import (
"context"
"encoding/json"
"fmt"
"golang.org/x/oauth2"
"golang.org/x/oauth2/github"
"io"
"net/http"
@goodylili
goodylili / views.py
Created November 23, 2023 06:11
script that reads articles for views
import schedule
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import time
import random # Import the random module
def setup_tor_profile():
"""Sets up a Firefox profile for Tor."""
profile = webdriver.FirefoxProfile()
@goodylili
goodylili / Dockerfile
Created September 22, 2023 02:47
My Typical Dockerfile
# Build stage
FROM golang:1.20-alpine AS build
# Set the working directory inside the container
WORKDIR /app
# Copy the Go application source code into the container
COPY . .
# Build the Go application