Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import json
import subprocess
import sys
from argparse import ArgumentParser
from os import path
from tempfile import TemporaryDirectory
#!/usr/bin/env python3
import json
import subprocess
import sys
from argparse import ArgumentParser
from os import path
from tempfile import TemporaryDirectory
@ichizok
ichizok / Chilled Dark
Created December 24, 2025 01:50
Ghostty color themes
palette = 0=#163540
palette = 1=#CA4238
palette = 2=#88982D
palette = 3=#AE8A2C
palette = 4=#4689CC
palette = 5=#C24380
palette = 6=#519E97
palette = 7=#ECE8D6
palette = 8=#0D2A34
palette = 9=#BC5329
#!/usr/bin/env bash
set -eo pipefail
#
# Git invokes the following command with commit-data for code-signing.
#
# gpg --status-fd 2 -bsau {signing_key}
#
while getopts :u:-: OPT; do
@ichizok
ichizok / deno.patch
Last active August 1, 2024 14:53
for Solaris/illumos
diff --git a/.cargo/config.toml b/.cargo/config.toml
index f5b2f124b..6cd093e8e 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -23,6 +23,9 @@ rustflags = [
"link-args=-fuse-ld=lld -weak_framework Metal -weak_framework MetalPerformanceShaders -weak_framework QuartzCore -weak_framework CoreGraphics",
]
+[target.x86_64-unknown-illumos]
+rustflags = ["-C", "link-args=-latomic -lffi -lstdc++"]
@ichizok
ichizok / git-fzf
Last active November 16, 2022 18:33
#!/usr/bin/env bash
set -e
if ! command -v fzf &>/dev/null; then
echo >&2 '*** you need install fzf cmd ***'
exit 1
fi
export FZF_DEFAULT_OPTS='--exact --layout=reverse --info=inline'
" Microsoft Office viewer
if exists('g:loaded_office')
finish
endif
let g:loaded_office = 1
let s:cpo_save = &cpo
set cpo&vim
#!/usr/bin/env bash
set -euo pipefail
work_dir=$(mktemp -d)
# shellcheck disable=SC2064
trap "rm -fr '${work_dir}'" EXIT
if [[ $1 = - ]]; then
build_log=${work_dir}/build.log
@ichizok
ichizok / build.log
Last active December 8, 2020 12:07
build vim on ubuntu 16.04 (i386)
who@ubuntu32:~/vim$ git log -1
commit 083966f671475ae1b67f746f0b3f5309a45dfd8f
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 8 11:29:40 2020 +0100
patch 8.2.2108: Vim9: no test to check for :let error
Problem: Vim9: no test to check for :let error.
Solution: Add a test. Rename tests from _let_ to _var_.
who@ubuntu32:~/vim$
@ichizok
ichizok / compiledb_macvim.sh
Last active April 12, 2026 05:20
Create compile_commands.json for MacVim
#!/usr/bin/env bash
set -euo pipefail
work_dir=$(mktemp -d)
# shellcheck disable=SC2064
trap "rm -fr '${work_dir}'" EXIT
if [[ $1 = - ]]; then
build_log=${work_dir}/build.log