Skip to content

Instantly share code, notes, and snippets.

@dontdieych
dontdieych / acme-0.5x.hook
Created September 28, 2025 14:46 — forked from bjin/acme-0.5x.hook
simple 0.5x prescaler for mpv, best combined with "--cscale=bilinear --scaler-resizes-only --window-scale=0.5"
//!DESC acme-0.5x
//!HOOK LUMA
//!BIND HOOKED
//!WIDTH HOOKED.w 2 /
//!HEIGHT HOOKED.h 2 /
//!WHEN HOOKED.w 2 % ! HOOKED.h 2 % ! *
//!OFFSET 0.25 0.25
vec4 hook() {
return HOOKED_texOff(vec2(-0.25,-0.25));
}
@dontdieych
dontdieych / ex1.hs
Last active September 26, 2025 08:36 — forked from honki12345/ex1.hs
ex1
-- Q. λ¦¬μŠ€νŠΈκ°€ 빈 리슀트([])인지, λ˜λŠ” 첫 번째 μš”μ†Œκ°€ 빈 λ¦¬μŠ€νŠΈμΈμ§€([[]], ['a','b']]와 같은)λ₯Ό ν™•μΈν•˜λŠ” ν‘œν˜„μ‹μ„ μž‘μ„±ν•˜μ„Έμš”.
-- hasOnlyOneElement t = null t || null (head t)
hasOnlyOneElement :: [[a]] -> Bool
hasOnlyOneElement [] = True
hasOnlyOneElement [[]] = True
hasOnlyOneElement _ = False
-- Q. λ‹€λ₯Έ 리슀트 μ•ˆμ— μ£Όμ–΄μ§„ 두 리슀트λ₯Ό μ—°κ²°ν•˜λŠ” ν‘œν˜„μ‹μ„ μž‘μ„±ν•˜μ„Έμš”. 예λ₯Ό λ“€μ–΄, ["abc","de"]에 λŒ€ν•΄ "abcde"λ₯Ό λ°˜ν™˜ν•΄μ•Ό ν•©λ‹ˆλ‹€.
-- concatTwoElement t = head t ++ head (tail t)
concatTwoElement :: [[a]] -> [[a]] -> [a]
@dontdieych
dontdieych / Q soju, gamja, caddy config.md
Created September 23, 2025 17:27
Q soju, gamja, caddy config.md
$ y -Ql gamja

gamja /etc/
gamja /etc/webapps/
gamja /etc/webapps/gamja/
gamja /etc/webapps/gamja/config.json
gamja /usr/
gamja /usr/share/
gamja /usr/share/doc/
@dontdieych
dontdieych / flaresolverr.error.log
Created September 1, 2025 17:12
flaresolverr flaresolverr-bin aur asahilinux archlinux asahi-alarm python-selenium chromium error
9μ›” 02 02:06:00 a-macbookair systemd[1]: Started FlareSolverr.
9μ›” 02 02:06:00 a-macbookair flaresolverr[34023]: 2025-09-02 02:06:00 INFO FlareSolverr 3.4.0
9μ›” 02 02:06:00 a-macbookair flaresolverr[34023]: 2025-09-02 02:06:00 INFO Testing web browser installation...
9μ›” 02 02:06:00 a-macbookair flaresolverr[34023]: 2025-09-02 02:06:00 INFO Platform: Linux-6.15.10-asahi-3-2-ARCH-aarch64-with-glibc2.41
9μ›” 02 02:06:00 a-macbookair flaresolverr[34023]: 2025-09-02 02:06:00 INFO Chrome / Chromium path: /usr/bin/chromium
9μ›” 02 02:06:01 a-macbookair flaresolverr[34023]: 2025-09-02 02:06:01 INFO Chrome / Chromium major version: 139
9μ›” 02 02:06:01 a-macbookair flaresolverr[34023]: 2025-09-02 02:06:01 INFO Launching web browser...
9μ›” 02 02:06:01 a-macbookair systemd-coredump[34089]: Process 34050 (undetected_chro) of user 959 dumped core.
Stack trace of thread 34050:
@dontdieych
dontdieych / .psub.5bjCdOLV1T
Created May 6, 2025 12:57
eza --hyperlink needs auto or never option
╭─ ~/Videos/Youtube ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 21:51:29
╰─❯ l 30\ years\ of\ authentic\ New\ Jack\ Swing\ style\ \[j_ZpMQ0WCEw\].webm
'30 years of authentic New Jack Swing style [j_ZpMQ0WCEw].webm'*
╭─ ~/Videos/Youtube ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 21:51:41
╰─❯ l 30\ years\ of\ authentic\ New\ Jack\ Swing\ style\ \[j_ZpMQ0WCEw\].webm > /tmp/t.m3u8
╭─ ~/Videos/Youtube ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 21:51:57
╰─❯ cat /tmp/t.m3u8
'30 years of authentic New Jack Swing style [j_ZpMQ0WCEw].webm'
Updating and loading repositories:
Repositories loaded.
Problem 1: installed package asymptote-3.01-1.fc42.aarch64 requires libOSMesa.so.8()(64bit), but none of the providers can be installed
- package mesa-libGL-25.1.0~asahipre20250425-3.fc42.aarch64 from copr:copr.fedorainfracloud.org:group_asahi:mesa obsoletes mesa-libOSMesa < 25.1.0~rc2-1 provided by mesa-libOSMesa-25.1.0~asahipre20250221-1.fc42.aarch64 from @System
- package mesa-libGL-25.1.0~asahipre20250425-3.fc42.aarch64 from copr:copr.fedorainfracloud.org:group_asahi:mesa obsoletes mesa-libOSMesa < 25.1.0~rc2-1 provided by mesa-libOSMesa-25.0.4-2.fc42.aarch64 from updates
- package mesa-libGL-25.1.0~asahipre20250425-3.fc42.aarch64 from copr:copr.fedorainfracloud.org:group_asahi:mesa obsoletes mesa-libOSMesa < 25.1.0~rc2-1 provided by mesa-libOSMesa-25.1.0~asahipre20250221-1.fc42.aarch64 from copr:copr.fedorainfracloud.org:group_asahi:mesa
- package mesa-libGL-25.1.0~asahipre20250425-3.fc42.aarch64 from copr:copr.fedorainfracloud.org:group_asa
@dontdieych
dontdieych / gist:f980ce6686d8cac4a2eaae68b6798c28
Created April 30, 2025 03:15
fedora 42 stack ghc tinfo error
$ stack --no-system-ghc build
dungeon> configure (exe)
Configuring dungeon-0.1.0.0...
/home/a/.stack/programs/aarch64-linux/ghc-tinfo6-9.6.6/lib/ghc-9.6.6/bin/./ghc-9.6.6: /lib64/libtinfo.so.6: no version information available (required by /home/a/.stack/programs/aarch64-linux/ghc-tinfo6-9.6.6/lib/ghc-9.6.6/bin/../lib/aarch64-linux-ghc-9.6.6/libHShaskeline-0.8.2.1-ghc9.6.6.so)
/home/a/.stack/programs/aarch64-linux/ghc-tinfo6-9.6.6/lib/ghc-9.6.6/bin/./ghc-9.6.6: /lib64/libtinfo.so.6: no version information available (required by /home/a/.stack/programs/aarch64-linux/ghc-tinfo6-9.6.6/lib/ghc-9.6.6/bin/../lib/aarch64-linux-ghc-9.6.6/libHSterminfo-0.4.1.6-ghc9.6.6.so)
dungeon> build (exe) with ghc-9.6.6
Preprocessing executable 'dungeon-exe' for dungeon-0.1.0.0..
Building executable 'dungeon-exe' for dungeon-0.1.0.0..
/home/a/.stack/programs/aarch64-linux/ghc-tinfo6-9.6.6/lib/ghc-9.6.6/bin/./ghc-9.6.6: /lib64/libtinfo.so.6: no version information available (required by /home/a/.stack/programs/aarch64-linux/ghc-ti
@dontdieych
dontdieych / qman_-T.txt
Created January 8, 2025 21:30
qman -T strace
execve("/usr/local/bin/qman", ["qman", "-T"], 0xffffc8bb7158 /* 135 vars */) = 0
brk(NULL) = 0x3d228000
faccessat(AT_FDCWD, "/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=156171, ...}) = 0
mmap(NULL, 156171, PROT_READ, MAP_PRIVATE, 3, 0) = 0xffff0c4ac000
close(3) = 0
openat(AT_FDCWD, "/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=267984, ...}) = 0
@dontdieych
dontdieych / env.txt
Created January 8, 2025 20:41
qman strace
EXA_LD_OPTIONS=--only-dirs
EXA_LAAI_OPTIONS=--all --all --binary --icons
EXA_LO_OPTIONS=--oneline
KITTY_PUBLIC_KEY=1:mi`@nF%GoghhJL)p`yX+@?IA)tK=fkIDzonJ{~+V
PERL_LOCAL_LIB_ROOT=/home/a/perl5
DEBUGINFOD_URLS=https://debuginfod.fedoraproject.org/
NVM_BIN=/home/a/.nvm/versions/node/v22.9.0/bin
COLORTERM=truecolor
XDG_VTNR=1
XKB_DEFAULT_LAYOUT=us
@dontdieych
dontdieych / a.txt
Created January 8, 2025 20:37
qman strace
execve("/usr/local/bin/qman", ["qman", "ls"], 0xffffd649c248 /* 135 vars */) = 0
brk(NULL) = 0x276a0000
faccessat(AT_FDCWD, "/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=156171, ...}) = 0
mmap(NULL, 156171, PROT_READ, MAP_PRIVATE, 3, 0) = 0xfffec9b5c000
close(3) = 0
openat(AT_FDCWD, "/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=267984, ...}) = 0