Skip to content

Instantly share code, notes, and snippets.

View mishazawa's full-sized avatar
🎩
because white is boring

mishazawa

🎩
because white is boring
View GitHub Profile
@mishazawa
mishazawa / make_cbz.py
Created November 25, 2026 10:54
Make one CBZ per chapter folder
#!/usr/bin/env python3
"""Make one CBZ per chapter folder.
Usage: python3 make_cbz.py [root_folder] [series name]
Defaults: root = current folder, series = "Oyasumi no Punpun".
Each subfolder of root is treated as a chapter. Chapter number comes from
"Ch.NNN" in the folder name, else from leading digits. Pages are natural-sorted,
renumbered 001, 002, ... (original extension kept) and stored uncompressed.
Output goes to <root>/cbz/<series> - Ch.NNN.cbz
while ! curl -L -O -C - $URL ; do echo "Retrying..."; sleep 6; done
@mishazawa
mishazawa / ThanksAI.md
Created August 27, 2026 19:21 — forked from richhickey/ThanksAI.md
Thanks AI!

Thanks AI!

I got this email:

Rich,

Your creation of Clojure ...

sycophantic blather worthy of a third grader's homework assignment to write a letter to a public figure you don't know, using sources you don't understand, to express an emotion unfelt, with no intention whatsoever >

Prompt: Setting backyard territory 15m; slope; 2 bee hives(bee houses) on upper side and 2 on lower. beautiful girl doing honey mining stuff(extracting honey from bee houses). we need to showcase this honey mining activity and that girl is beatiful.

Input analysis:

  • Core message: A beautiful woman harvesting raw honey on a sun-drenched sloped backyard — nature, craft, and femininity together
  • Format: B-roll + Music — this is pure aesthetic/lifestyle content, no voiceover needed
  • Tone: Warm, golden, earthy, slightly cinematic. "Cottagecore meets artisan."
  • The slope is a secret weapon — 2 hives high, 2 low = you can shoot across elevation for dramatic angles most beekeeping content never has
@mishazawa
mishazawa / install.md
Last active May 4, 2026 08:08
Reinstall

Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@mishazawa
mishazawa / monokai.md
Created June 29, 2024 07:55 — forked from brayevalerien/monokai.md
Monokai theme color codes

Monokai theme color codes

Intro

This document lists the colors used in the Monokai Pro theme with the Classic filter. Please check the Monokai Pro website for more informations.

Colors

Monokai Pro with Classic filter colors:

Preview Hexadecimal RGB
Activity Bar Background activity bar background preview #272822 (39, 40, 34)
Activity Bar Foreground activity bar foreground preview #f8f8f2 (248, 248, 242)
@mishazawa
mishazawa / keybindings.json
Last active April 17, 2026 18:00
VSCodium settings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+cmd+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus"
},
{
"key": "ctrl+cmd+up",
"command": "-editor.action.moveLinesUpAction",
@mishazawa
mishazawa / payload.py
Last active April 10, 2024 21:56
buffer overflow example with parameters
junk_l = 22
# can be different when compiled
function_addr = b"\x56\x55\x61\xad"
arg_a = b"\xde\xad\xbe\xef"
arg_b = b"\xc0\xde\xd0\x0d"
with open("./data", "wb") as f:
junk = b"A" * junk_l
@mishazawa
mishazawa / monokai.md
Created March 7, 2024 10:03 — forked from r-malon/monokai.md
Monokai colors in RGB and HEX format, taken from Sublime Text 3

Monokai Colors in RGB and HEX format


  • Background: (46, 46, 46); #2e2e2e
  • Comments: (121, 121, 121); #797979
  • White: (214, 214, 214); #d6d6d6
  • Yellow: (229, 181, 103); #e5b567
  • Green: (180, 210, 115); #b4d273
  • Orange: (232, 125, 62); #e87d3e
  • Purple: (158, 134, 200); #9e86c8
# Usage:
# python3 convert_base64_to_fbx.py ./out.fbx ./base64_file
import io
import base64
import sys
BASE_CONTENT = sys.argv[2]
OUT_FILE_PATH = sys.argv[1]