Skip to content

Instantly share code, notes, and snippets.

@kjoonlee
kjoonlee / DESC
Created November 18, 2022 10:25
Custom ~/share/groff/devpdf/DESC settings for A4 Palatino man files
res 72000
hor 1
vert 1
sizescale 1000
unitwidth 1000
sizes 1000-10000000 0
styles R I B BI
family P
fonts 8 0 0 0 0 0 0 S ZD
tcommand
@kjoonlee
kjoonlee / DESC
Created November 18, 2022 10:24
Custom ~/share/groff/devps/DESC settings for A4 Palatino man files
res 72000
hor 1
vert 1
sizescale 1000
unitwidth 1000
sizes 1000-10000000 0
styles R I B BI
family P
fonts 9 0 0 0 0 0 SS S ZD ZDR
tcommand
| "OS Build Version" = "22A380"
+-o J313AP <class IOPlatformExpertDevice, id 0x100000216, registered, matched, active, busy 0 (208576 ms), retain 35>
| | | | "perf-states" = <0000000090010000007b9a175b02000000a4781f7a0200000054ea2a9f020000001f1337f702000000ea3b435203000080bb2c4c99030000>
| | | | "gfx-shared-region-base" = <0080f7ff0b000000>
| | | | "gpu-num-perf-states" = <06000000>
| | | | "AGXParameterBufferMaxSizeEverMemless" = 574881792
| | | | "AGXParameterBufferMaxSizeNeverMemless" = 287440896
| | | | "gpu-core-count" = 8
| | | | "AGXParameterBufferMaxSize" = 862322688
| | | | "GPUConfigurationVariable" = {"gpu_gen"=13,"num_gps"=4,"num_cores"=8,"core_mask_list"=(255),"num_frags"=8,"num_mgpus"=1}
@kjoonlee
kjoonlee / trace.log
Created October 26, 2022 16:37
pyenv install 3.11.0 (use_homebrew_tcltk)
This file has been truncated, but you can view the full file.
+(/usr/local/bin/pyenv:23): enable -f /usr/local/bin/../libexec/pyenv-realpath.dylib realpath
+(/usr/local/bin/pyenv:30): '[' -z '' ']'
++(/usr/local/bin/pyenv:32): type -P greadlink readlink
++(/usr/local/bin/pyenv:32): head -1
+(/usr/local/bin/pyenv:32): READLINK=/usr/local/bin/greadlink
+(/usr/local/bin/pyenv:33): '[' -n /usr/local/bin/greadlink ']'
+(/usr/local/bin/pyenv:58): '[' -z /Users/kjoonlee/.pyenv ']'
+(/usr/local/bin/pyenv:61): PYENV_ROOT=/Users/kjoonlee/.pyenv
+(/usr/local/bin/pyenv:63): export PYENV_ROOT
+(/usr/local/bin/pyenv:65): '[' -z '' ']'
@kjoonlee
kjoonlee / nfc
Last active July 31, 2022 10:18
convert between NFC and NFD Unicode normalization (e.g. for Korean)
#!/usr/bin/env bash
die() {
echo "$*" 1>&2; exit 1;
}
print_usage() {
echo "usage: $my_name <FILE> | $my_name <DIRECTORY>"
}
@kjoonlee
kjoonlee / gist:b216f754f40382d250f63be1d1538254
Last active November 17, 2022 13:38
Read WSL man pages as PDF files on Windows
pman()
{
pman_args=("$@")
pman_section="$1"
pman_manpage="${*: -1}"
if [ "${pman_args[*]}" = "$pman_manpage" ]; then
pman_file="$pman_manpage.pdf"
else
pman_file="$pman_manpage.$pman_section.pdf"