Skip to content

Instantly share code, notes, and snippets.

@agrajag9
agrajag9 / aa0bb49e0355a0853e9019d87a4741fc0ec7cf55.diff
Last active May 17, 2025 18:36
FreeBSD-ports: switch games/mizuma from emulators/wine to emulators/wine-devel and apply Wine PR 7339 to implement create_logical_proc_info. This fixes Cyberpunk 2077.
commit aa0bb49e0355a0853e9019d87a4741fc0ec7cf55
Author: agrajag9 <[email protected]>
Date: Sat May 3 09:00:10 2025 +0000
emulators/wine-devel: implement create_logical_proc_info on FreeBSD
see: wine merge request 7339
https://gitlab.winehq.org/wine/wine/-/merge_requests/7339
commit 9c496d7af149cd9db9cc99d1d65841c3b1a0d552
Author: agrajag9 <[email protected]>
Date: Sat May 17 06:57:19 2025 +0000
misc/hworld-kmod
diff --git a/misc/hworld-kmod/Makefile b/misc/hworld-kmod/Makefile
new file mode 100644
index 0000000000..b21d06e344
--- /dev/null
@agrajag9
agrajag9 / .bash_aliases
Created March 31, 2023 16:39
Filebot bash aliases
export FILEBOT_FORMAT_MOVIE="/tank/media/library/movies/{ny}/{ny}{' - pt'+pi}"
export FILEBOT_FORMAT_TV="/tank/media/library/tv/{n}/{n} - Season {s.pad(2)}/{n} - {s00e00} - {t}"
alias filebot='filebot --log all --log-file /var/log/filebot.log -no-xattr -no-probe -rename -non-strict --mode interactive'
alias test_movie='filebot --db TheMovieDB --format "${FILEBOT_FORMAT_MOVIE}" --action test'
alias move_movie='filebot --db TheMovieDB --format "${FILEBOT_FORMAT_MOVIE}" --action move'
alias link_movie='filebot --db TheMovieDB --format "${FILEBOT_FORMAT_MOVIE}" --action hardlink'
alias test_tv='filebot --db TheTvDB --format "${FILEBOT_FORMAT_TV}" --action test'
@agrajag9
agrajag9 / plex-libva-fixup.sh
Last active December 31, 2021 20:26
A9Development.com FreeBSD Update Scripts
#!/bin/sh
LIBS="dri/radeonsi_drv_video.so libdrm_amdgpu.so.1 libdrm.so.2 libva-drm.so.2 libva.so.2"
SYS_ROOT="/zroot/iocage/jails/plex/root"
PLEX_PATH="$SYS_ROOT/usr/local/share/plexmediaserver-plexpass/lib"
LIB_PATH="/usr/local/lib"
SYS_PATH="$SYS_ROOT/$LIB_PATH"
iocage restart plex
iocage pkg plex update
@agrajag9
agrajag9 / stdout.txt
Created January 13, 2021 14:06
FreeBSD 13.0-CURRENT `ofwdump -ap` on Apple M1/Parallels
Node 0x38:
model:
51 75 61 6c 63 6f 6d 6d 20 54 65 63 68 6e 6f 6c 6f 67 69 65
73 2c 20 49 6e 63 2e 20 4d 53 4d 20 38 39 39 38 20 76 31 20
53 6f 43 00
'Qualcomm Technologies, Inc. MSM 8998 v1 SoC'
compatible:
71 63 6f 6d 2c 6d 73 6d 38 39 39 38 00
'qcom,msm8998'
qcom,board-id:
@agrajag9
agrajag9 / dupes.sh
Created July 23, 2020 13:01
Find duplicate files by MD5
#!/bin/sh
echo "Storing tmp csvs in /tmp/dupes.$$/"
mkdir -p /tmp/dupes.$$
echo -n "Hashing files... "
find $(pwd) -mindepth 1 -maxdepth 1 -type f \
| while IFS= read FULLPATH; do \
MD5=$( md5 -q "${FULLPATH}" )
MTIME=$( stat -f %m "${FULLPATH}" )
BackgroundColour=27,34,41
ForegroundColour=187,194,207
CursorColour=236,190,123
Black=27,34,41
BoldBlack=63,68,74
Red=255,108,107
BoldRed=218,133,72
Green=152,190,101
BoldGreen=77,181,189
Yellow=236,190,123
@agrajag9
agrajag9 / bcfg boot dump
Last active July 15, 2020 19:57
UEFI Shell Output
Option: 00. Variable: Boot0003
Desc - UEFI Samsung SSD 970 EVO Plus 250GB S59BNJ0N117895H 1
DevPath - PcieRoot(0x2)/Pci(0x0,0x0)/Pci(0x0,0x0)/NVMe(0x1,A8-C4-43-01-51-38-25-00)
Optional- Y
Option: 01. Variable: Boot0001
Desc - UEFI Misc Device
DevPath - SD(0xCA)
Optional- Y
Option: 02. Variable: Boot0002
Desc - UEFI Misc Device 2
@agrajag9
agrajag9 / dmesg.boot
Created July 14, 2020 10:39
UEFI 52d0, a9kern1, with NVMe and PCIe HBA, no direct AHCI/SATA
---<<BOOT>>---
KDB: debugger backends: ddb
KDB: current backend: ddb
Type Physical Virtual #Pages Attr
ConventionalMemory 000080000000 0 00061e5b WC WT WB
LoaderData 0000e1e5b000 0 00008000 WC WT WB
LoaderCode 0000e9e5b000 0 000000aa WC WT WB
ConventionalMemory 0000e9f05000 0 000000aa WC WT WB
LoaderCode 0000e9faf000 0 000000ed WC WT WB
ConventionalMemory 0000ea09c000 0 00000011 WC WT WB
@agrajag9
agrajag9 / console.log
Created July 8, 2020 15:15
UEFI 52d0, a9kern1, with NVMe, no PCI, no SATA
toor@honeycomb-sd:/usr/obj # gpart create -s GPT nda0
nda0 created
toor@honeycomb-sd:/usr/obj # gpart add -t freebsd-ufs -a 1M nda0
nda0p1 added
toor@honeycomb-sd:/usr/obj # gpart show nda0
=> 40 488397088 nda0 GPT (233G)
40 2008 - free - (1.0M)
2048 488394752 1 freebsd-ufs (233G)
488396800 328 - free - (164K)