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 / 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
@goodylili
goodylili / optimize.go
Last active September 3, 2023 15:50
Full code for the Earthly Technologies Article on Optimizing SQL Queries
package main
import (
"fmt"
"gorm.io/driver/postgres"
"gorm.io/gorm"
"gorm.io/gorm/schema"
"log"
"time"
)
@goodylili
goodylili / fake_database.go
Last active September 3, 2023 14:26
A program that generates X no of rows of fake data for database insertion/operation (just modify the struct)
package main
import (
"github.com/brianvoe/gofakeit/v6"
"gorm.io/driver/postgres"
"gorm.io/gorm"
"log"
"time"
)
@goodylili
goodylili / main.go
Created March 3, 2023 09:01
Converting PNG files to JPG
package main
import (
"image/jpeg"
"image/png"
"os"
"strings"
)
func main() {
@goodylili
goodylili / mux.go
Created February 16, 2023 05:53
CRUD RESTful API in Go with the Gorilla Mux Package - Article for RedGate's Simple Talk Blog
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"github.com/gorilla/mux"
"gorm.io/driver/sqlite"
@goodylili
goodylili / gsod.md
Last active February 25, 2023 08:36
GSoD Application HTML

Ukeje Goodness C | LinkedIn Github Portfolio Resume Main Tech Blog Linktree Twitter | About Me Hey there, I am Ukeje Goodness, an opensource enthusiast, backend developer, and technical writer focused on Python, Golang, and Rust while writing documentation for APIs, CLI apps, and other projects. I have over 3 years of experience with technical writing. My goal is to bring clarity to your technical projects.