Skip to content

Instantly share code, notes, and snippets.

View sebayaki's full-sized avatar

sebayaki sebayaki

  • Seoul, Korea
View GitHub Profile
@sebayaki
sebayaki / AGENTS.md
Last active May 12, 2026 11:31
CLAUDE / AGENTS.md

Global Instructions

English For Written Artifacts

Always write in English for anything committed, persisted, or shared, regardless of the user's chat language. This applies to commit messages, branch names, tag names, PR/issue titles and bodies, review comments, inline remarks, code identifiers, comments, docstrings, log messages, error strings, test names, file and directory names, persisted memory, and persisted scratchpad or working notes. Chat responses may follow the user's language. Written-and-kept artifacts must be English because collaborators and tooling such as CI, search, code review, and audit logs are English-first.

Scope And Decisions

@sebayaki
sebayaki / skill-dev-orchestration.md
Last active May 4, 2026 05:14
Multi-agent dev orchestration skill: shared append-only log file with persisted cursor + mtime fast-path. Roles: @lead, @dev, @reviewer-<name>.
name dev-orchestration
description Multi-agent coordination via a shared append-only log file. Roles include @lead, @dev, and @reviewer-<name>. Each tick uses a persisted cursor and mtime check to skip work when the log hasn't changed. Read the project's docs/code-guidelines.md before any code or review work.

Dev Orchestration Protocol

You are one agent in a multi-agent workflow. All inter-agent coordination happens through one append-only log file in the project repo. There is no central server; agents read the file, act on lines addressed to them, and write back.

Roles

@sebayaki
sebayaki / mintclub-staking-leaderboard.ts
Last active November 19, 2025 05:01
Mint Club Staking Leaderboard Query
import { createPublicClient, http, fallback, parseAbiItem, formatUnits } from 'viem';
import { base } from 'viem/chains';
// Configuration
const POOL_ID = 52; // Change this to the desired Pool ID
const CONTRACT_ADDRESS = '0x9ab05eca10d087f23a1b22a44a714cdbba76e802';
// RPC List (Fallbacks)
const baseRpcUrls = [
'https://base-rpc.publicnode.com',
@sebayaki
sebayaki / refresh_and_screenshot.sh
Created April 19, 2020 15:24
Refresh Chrome every 120 seconds and take screenshot
#!/bin/sh
exec <"$0" || exit; read v; read v; exec /usr/bin/osascript - "$@"; exit
# The line above allows the rest of the file to be written in plain AppleScript.
repeat 99999999 times
tell application "Google Chrome"
activate
tell application "System Events"
tell process "Google Chrome"
keystroke "r" using {command down, shift down}
@sebayaki
sebayaki / steem-witness.sh
Created March 17, 2020 15:56
Steem Witness Stackscript
# MARK: - System updates
sudo update-locale LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8
sudo locale-gen en_US.UTF-8
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove
git clone https://github.com/someguy123/steem-docker.git
cd ~/steem-docker
./run.sh dlblocks
./run.sh install_docker
@sebayaki
sebayaki / rails_new.sh
Created March 11, 2020 03:15
New Rails 6 Project
rails new AppName -T -d=postgresql --skip-action-cable --skip-coffee --skip-spring --skip-turbolinks
@sebayaki
sebayaki / instagram.js
Created January 22, 2020 09:45
Get Instagram Followers
const random_wait_time = (waitTime = 300) => new Promise((resolve, reject) => {
setTimeout(() => {
return resolve();
}, Math.random() * waitTime);
});
const get_followers = async(userId, userFollowerCount) => {
let userFollowers = [],
batchCount = 20,
actuallyFetched = 20,
@sebayaki
sebayaki / eth.rb
Created January 8, 2020 16:42
Ethereum address validation and normalization in Ruby
# Extracted from https://github.com/se3000/ruby-eth
#
# Dependencies:
# - gem 'digest-sha3'
# - gem 'rlp'
#
# Usage:
# - Eth::Utils.valid_address?('0x4Db7569F90bd836294B11c8b08B853d2de499Ced')
# => true
# - Eth::Utils.format_address('0x4db7569f90bd836294b11c8b08b853d2de499ced')
@sebayaki
sebayaki / postgres_upgrade.sh
Last active August 19, 2019 07:47
PostgreSQL upgrade from 10 to 11
sudo apt install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
psql --version
sudo apt update
sudo apt install postgresql-11
pg_lsclusters
sudo pg_dropcluster 11 main --stop
@sebayaki
sebayaki / countries+languages.md
Last active June 11, 2019 07:00
Country & Language Codes

Countries

  • AW: Aruba
  • AF: Afghanistan
  • AO: Angola
  • AI: Anguilla
  • AX: Åland Islands
  • AL: Albania
  • AD: Andorra
  • AE: United Arab Emirates
  • AR: Argentina