Skip to content

Instantly share code, notes, and snippets.

You are a strict copyeditor focused solely on grammar, spelling, and punctuation.
Rules:
1. Edit ONLY clear errors in grammar, spelling, and punctuation.
2. Preserve the author's exact voice, tone, register, sentence rhythm, and structural choices (including informal phrasing, fragments, or intentional style if not a grammatical error).
3. Never rewrite sentences for style, flow, conciseness, or "better phrasing" unless fixing an actual grammatical error.
4. Preserve all technical terms, proper nouns, product/model names, code identifiers, numbers, units, URLs, and Markdown/formatting intact. Do not expand acronyms or alter domain terminology.
5. Do not add new information, omit claims, or change the factual meaning.
6. Output ONLY the corrected text. Do not include introductions, explanations, commentary, or surrounding quotes unless present in the original text.
import requests
import base64
import sys
import os
from io import BytesIO
import tempfile
url = "http://llama-cpp.local/v1/chat/completions"
prompt = (
"Describe this image for use as alt text. "
#!/usr/bin/env bash
# Copyright (c) 2026 Seungjin Kim
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@seungjin
seungjin / ls.nu
Created May 25, 2026 04:56
my ls for nushell
# alias the built in ls command so we don't shadow it
alias ls-builtin = ls
# List the filenames, sizes, and modification times of items in a directory.
@category filesystem
@search-terms dir
@example "List the files in the current directory" { ls }
@example "List visible files in a subdirectory" { ls subdir }
@example "List visible files with full path in the parent directory" { ls -f .. }
@example "List Rust files" { ls *.rs }
@seungjin
seungjin / gist:e2a4a6449509211ae51e5ab72cbf908b
Created November 13, 2025 09:57
Result of YABS, Zap-hostring Lifetime, Newer AMD EPYC 7763 CPU, US West, 4 cores, 8G Ram, 60G SSD NAS, 500 Mbit/S
Result of YABS, Zap-hostring Lifetime, US West, 4 cores, 8G Ram, 60G SSD NAS, 500 Mbit/S
# curl -sL https://yabs.sh | bash
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
# Yet-Another-Bench-Script #
# v2025-04-20 #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
Thu Nov 13 04:45:11 AM EST 2025
#!/usr/bin/env bash
LED="/sys/class/leds/platform::micmute/brightness"
wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
MIC_STAT=$(wpctl get-volume @DEFAULT_SOURCE@ | grep -c MUTED )
case "$MIC_STAT" in
0)
@seungjin
seungjin / gist:2b88aa0a5818911d453cc2cb62d9a17f
Created July 24, 2025 01:29
AMD Ryzen AI 9 HX PRO 370 w/ Radeon 890M
CPU MAXMHZ MINMHZ
0 557.8950 605.2640 *
1 557.8950 605.2640 *
2 557.8950 605.2640 *
3 557.8950 605.2640 *
4 389.4741 605.2640
5 389.4741 605.2640
6 389.4741 605.2640
7 389.4741 605.2640
8 389.4741 605.2640
@seungjin
seungjin / helix-config.toml
Last active November 2, 2025 01:47
Helix editor's config.toml for Emacs flavor
[keys.normal]
# Emacs flavor:
# Base: https://www.cs.colostate.edu/helpdocs/emacs.html
# Cursor/Screen Movement Commands
C-a = "goto_line_start"
C-e = "goto_line_end"
C-f = "move_char_right" # forward-char
C-b = "move_char_left" # backward-char
C-n = "move_line_down"# next-line
C-p = "move_line_up" # previous-line
[Unit]
Description=Ferron web server
After=network.target
[Service]
Type=simple
User=ferron
ExecStart=/usr/local/bin/ferron -c /etc/ferron.yaml
ExecReload=kill -HUP $MAINPID
Restart=on-failure
@seungjin
seungjin / gist:49ba92899d67ee98a04f2a5018e9dee8
Created March 22, 2025 05:15
Emacs keybinding in Firefox input
https://thanosapollo.org/posts/firefox-with-emacs-keybindings/#step-i-aboutconfig
```
Step I: about:config
First visit about:config.
To enable Emacs keybindings while editing text in Firefox, make the following changes:
Set ui.key.accelKey to 18