Skip to content

Instantly share code, notes, and snippets.

View theghostmac's full-sized avatar
🌴
In between work and play.

MacBobby Chibuzor theghostmac

🌴
In between work and play.
View GitHub Profile
@theghostmac
theghostmac / zed_config.json
Created October 24, 2024 15:45
my configurations for my Zed IDE
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"buffer_font_size": 15,
@theghostmac
theghostmac / integration_tests.sh
Last active September 22, 2024 04:03
The setup for initializing and managing the network is really sophisticated. Noticing some opened issues from last year on the `stride` repo, I thought it could be useful to verify each step of the setup process. Something like this:
#!/bin/bash
# This script verifies key aspects of the Stride network setup:
# 1. Namespace Creation: Ensures the Kubernetes namespace exists.
# 2. Pod Creation: Checks if all validator pods for each chain are running.
# 3. Chain Health: Verifies that each chain is synced and not catching up.
# 4. Relayer Health: Confirms that the IBC relayer path is set up correctly.
# 5. IBC Transfer: (TODO) Will test IBC transfer functionality between chains.
# 6. Send Notification: (TODO) Sends notification after checks are completed, to inform the team about the result.
#
@theghostmac
theghostmac / merkle.go
Created February 19, 2024 20:35
Implementation of Merkle Tree used in Validation and WhiteListing, using Go (later done in Solidity for prod usage)
package main
import "crypto/sha256"
type Node struct {
Left, Right *Node
Hash []byte
IsLeaf bool
}
@theghostmac
theghostmac / build.yaml
Created October 1, 2023 04:35
ci/cd for 3 os and Golang
name: build
on:
workflow_dispatch:
pull_request:
branches:
- master
- v*
push:
branches:
@theghostmac
theghostmac / notion2blog.js
Last active October 8, 2021 22:13 — forked from mayneyao/notion2blog.js
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "ghostmac.io"
const START_PAGE = "https://ghostmac.notion.site/Home-1c58eda481d549c5a47a985627890368"
const DISQUS_SHORTNAME = "ghostmac"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",