Skip to content

Instantly share code, notes, and snippets.

View imWildCat's full-sized avatar

Mike Chong imWildCat

  • True North
  • 00:17 (UTC -06:00)
View GitHub Profile
@imWildCat
imWildCat / setup.sh
Created September 10, 2025 14:07
my ohmyzsh setup
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
sed -i 's/robbyrussell/af-magic/g' ~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions z)/g' ~/.zshrc
source ~/.zshrc
@imWildCat
imWildCat / codex-yolo.sh
Last active September 11, 2025 01:41
codex-enhanced by Ian Nuttall on X
# from: <https://x.com/iannuttall/status/1965090297630826931>
cdx() {
if [[ "$1" == "update" ]]; then
npm install -g @openai/codex@latest
else
codex -m gpt-5 --yolo -c model_reasoning_effort="high" --search "$@"
fi
}
# Note: with auto confirmation. use at your own risk. thanks!
@imWildCat
imWildCat / gemini.md
Last active August 24, 2025 17:56 — forked from steipete/gemini.md
gemini.md to teach Claude to use google's gemini cli as his tool

Gemini CLI for Large Codebase Analysis

Use gemini -p for analyzing large codebases that exceed Claude's context limits.

File/Directory Inclusion

Use @ syntax with paths relative to your working directory:

# Single file
gemini -p "@src/main.py Explain this file's purpose"
@imWildCat
imWildCat / error-build.log
Last active March 19, 2025 14:45
nextjs 15 build error vs --no-mangling --no-lint
#39 103.1 [1] Collecting page data ...
#39 104.0 [1] TypeError: Cannot read properties of undefined (reading 'match')
#39 104.0 [1] at C (.next/server/chunks/746.js:1:4246)
#39 104.0 [1] at E (.next/server/chunks/746.js:1:4344)
#39 104.0 [1] at F (.next/server/chunks/746.js:1:4796)
#39 104.0 [1] at new rv (.next/server/chunks/746.js:7:13698)
#39 104.0 [1] at 1133 (.next/server/app/api/inngest/route.js:1:7600)
#39 104.0 [1] at t (.next/server/webpack-runtime.js:1:511)
#39 104.0 [1] at 59912 (.next/server/app/api/inngest/route.js:77:10748)
#39 104.0 [1] at t (.next/server/webpack-runtime.js:1:511)
@imWildCat
imWildCat / migrate_gitlab_projects.py
Created December 5, 2024 18:09
migrate gitlab projects: variables and secure files
import os
import gitlab
# GitLab API configuration
GITLAB_TOKEN = os.getenv("GITLAB_TOKEN")
GITLAB_URL = "https://xxx.gitlab.com"
gl = gitlab.Gitlab(url=GITLAB_URL, private_token=GITLAB_TOKEN)
# Project paths
SOURCE_PROJECT = "org_name/app-v2"
@imWildCat
imWildCat / kamal-2-json-schema.json
Last active September 26, 2024 21:44
Kamal 2 JSON Schema for Humans
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Kamal 2.0 Config",
"description": "Configuration schema for Kamal 2.0 deployment tool.",
"type": "object",
"properties": {
"service": {
"type": "string",
"description": "Name of your application. Used to uniquely configure containers."
},
@imWildCat
imWildCat / meta-prompt.txt
Last active August 26, 2024 22:45
Meta prompt shared by @shaoruu for Cursor.com
DO NOT GIVE ME HIGH LEVEL SHIT, IF I ASK FOR FIX OR EXPLANATION, I WANT ACTUAL CODE OR EXPLANATION!!! I DON'T WANT "Here's how you can blablabla"
- Be casual unless otherwise specified
- Be terse
- Suggest solutions that I didn’t think about—anticipate my needs
- Treat me as an expert
- Be accurate and thorough
- Give the answer immediately. Provide detailed explanations and restate my query in your own words if necessary after giving the answer
- Value good arguments over authorities, the source is irrelevant
- Consider new technologies and contrarian ideas, not just the conventional wisdom
@imWildCat
imWildCat / err.txt
Created July 10, 2024 19:53
tamagui.dev error
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (user, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (docs_components_stacks_vxrn_loader.js, line 0)
[Error] Unhandled Promise Rejection: TypeError: Importing a module script failed.
(anonymous function) (_virtual_vxs-entry-EZZ-1xld.js:89:8520)
[Error] Unhandled Promise Rejection: SyntaxError: Unexpected identifier 'No'. Expected '}' to end an object literal.
(anonymous function) (_virtual_vxs-entry-EZZ-1xld.js:89:8520)
[Error] Error loading loader – SyntaxError: Unexpected identifier 'No'. Expected '}' to end an object literal.
SyntaxError: Unexpected identifier 'No'. Expected '}' to end an object literal.
(anonymous function) (useLoader-DFumXRAL.js:1:623)
[Error] RootErrorBoundary.error – SyntaxError: Unexpected identifier 'No'. Expected '}' to end an object literal.
compose_release() {
curl --silent "https://api.github.com/repos/docker/compose/releases/latest" |
grep -Po '"tag_name": "\K.*?(?=")'
}
if ! [ -x "$(command -v docker-compose)" ]; then
sudo curl -L https://github.com/docker/compose/releases/download/$(compose_release)/docker-compose-$(uname -s)-$(uname -m) \
-o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose
fi
@imWildCat
imWildCat / unstar_swift_repos.cts
Created December 13, 2023 19:46
Unstar old Swift repos (no update for one year and less than 1k stars)
import axios from 'axios';
const GITHUB_TOKEN = 'xxx';
const GITHUB_USERNAME = 'xxx';
axios.defaults.headers.common['Authorization'] = `token ${GITHUB_TOKEN}`;
const unstarRepo = async (repoFullName: string) => {
try {
await axios.delete(`https://api.github.com/user/starred/${repoFullName}`);