Skip to content

Instantly share code, notes, and snippets.

@BETLOG
BETLOG / BackpacksBetPacks.yml
Created April 29, 2025 22:57
item agnostic BackpacksBetPacks.yml for valheim mod: smoothbrain-backpacks
# ---------------------------------
# betlog - 2025-04-30--08-54-09
# licence: public domain
#
# Easily distinguishable, different colored packs. For juggling inventory and mass-transporting ore and stuff. Upgrades add slots.
# Intended to be used with: (org.bepinex.plugins.backpacks.cfg)
# Backpacks in Backpacks = NotAllowed
# Backpacks in Chests = On
# Unique Backpack = None
# ---------------------------------
@BETLOG
BETLOG / BackpacksBetPacks.yml
Last active April 29, 2025 22:48
item specific BackpacksBetPacks.yml for valheim mod: smoothbrain-backpacks
"Pocket Stacker":
description: "Pocket-Stacker Pouch.\n\nCompress more stuff into less chest storage slots\nUpgrades to 8x4 slots"
size: 6x3
unique: none
appearance:
BackpackBody: 0022FF
BackpackFlap: 0066FF
BackpackStrapBottom: 2288FF
BackpackStrapTop: hidden
PouchLeft: hidden
@BETLOG
BETLOG / bepinex-valheim.sh
Created December 1, 2024 05:54
gumby tool to test steam %command% string > bepinex > valheim
#!/bin/bash
# betlog - 2024-12-01--15-24-38
#
# NOTE: valheim specific: consense all of the useless crap and eval $0 sorcery in:
# denikson-BepInExPack_Valheim-5.4.2202/start_game_bepinex.sh
# and
# BepInEx_unix_5.4.22.0/run_bepinex.sh
# and instead just export the bep exports, forcibly enable native linux graphics acceleration, maybe manipulate the argument string, and run %command%
# Explicitly avoid just shuffling $1 etc and using shift.
# Seems more useful to target & remove particular strings and pass commands/arguments entered before AND after %command%
# betlog - 2024-12-29--19-05-15
# valheim - custom backpack definition for Smoothbrain-Backpacks
#
# LICENSE : public domain
# NOTE: filename must start with `Backpacks`
# NOTE: NO END OF LINE COMMENTS
#
# size: 8x4 #32 - plains
# size: 7x4 #28 - mountain
# size: 6x4 #24 - swamp
$ sudo ratbagd --verbose
Initializing libratbag
ratbag debug: New device: NZXT. - Inc. NZXT USB Device
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 1e71:2006
ratbag debug: New device: SONiX USB DEVICE
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 0c45:7644
ratbag debug: New device: SONiX USB DEVICE
ratbag debug: Using data directory '/usr/share/libratbag'
@BETLOG
BETLOG / VM_kubuntu2304_SPICE.sh
Last active September 1, 2023 09:04
learning to use qemu
#!/bin/bash
# betlog - 2023-08-26--17-25-47
#
timeout=15
port=5930
vmImage="/home/user/qemu/kubuntu2304.qcow2"
auxMedia="/home/user/qemu/temporary30GB.img" # raw .img
# ----------------- AUTOMATIC SNAPSHOT SELECTION
test=$(find ${vmImage%/*} -maxdepth 1 -type f|grep -E "_snap[0-9]{2}.${vmImage##*.}"|sort|tail -n1)
[[ -f "$test" ]] && vmImage=$test
@BETLOG
BETLOG / tweak.sh
Created August 6, 2023 06:30
cryoutilities simplification
#!/bin/bash
# betlog - 2023-08-06--15-13-58
#
# https://github.com/CryoByte33/steam-deck-utilities/blob/main/docs/tweak-explanation.md
#
# get defaults
# hugepage=$(cat /sys/kernel/mm/transparent_hugepage/enabled)
# shmem=$(cat /sys/kernel/mm/transparent_hugepage/shmem_enabled)
# proactiveness=$(cat /proc/sys/vm/compaction_proactiveness)
# defrag=$(cat /sys/kernel/mm/transparent_hugepage/khugepaged/defrag)
@BETLOG
BETLOG / Steam System Information 2023-07-18
Created July 18, 2023 02:16
Steam System Information 2023-07-18
Computer Information:
Manufacturer: Gigabyte Technology Co., Ltd.
Model: B365 M AORUS ELITE-CF
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i9-9900KF CPU @ 3.60GHz
CPU Family: 0x6
CPU Model: 0x9e
# betlog - 2022-02-24--16-49-47
#
# esc, F1 through F5, and F10 cannot be rebound
# INGAME BINDS :
# Orders menu - KP_Insert(KP_0)
# Multiplayer Options / Alliance Dialog - Keypad Enter
# INGAME UNBINDS
# rotate left (KP_4)
# rotate right (KP_6)
# view north (ctrl-up)
#
# /home/user/.nvidia-settings-rc
#
# Configuration file for nvidia-settings - the NVIDIA Settings utility
# Generated on Tue Jun 20 18:22:37 2023
#
# ConfigProperties:
RcFileLocale = C