Skip to content

Instantly share code, notes, and snippets.

$ 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
@BETLOG
BETLOG / list-all_protonVer-steamId-appName.sh
Created June 2, 2023 04:54
list-all_protonVer-steamId-appName.sh
#!/bin/bash
# betlog - 2023-03-03--20-32-15
#
unset data protonVer steamId steamIdList
while IFS= read -r data;do
# echo "data:$data"
protonVer=$(cat "$data")
protonVer=$(printf '%-15s' $protonVer)
# echo "protonVer:$protonVer"
steamId=$(echo "$data"|grep -o -E '\/[0-9]*\/'|sed 's|\/||g')
@BETLOG
BETLOG / steam-1238860.log
Last active January 10, 2023 00:28
2023-01-10--10-23-38 Battlefield 4 regular fail
This file has been truncated, but you can view the full file.
======================
Proton: 1670023342 GE-Proton7-42
SteamGameId: 1238860
Command: ['link2ea://launchgame/1238860?platform=steam&theme=bf4']
Options: {'forcelgadd'}
depot: 0.20221018.74
pressure-vessel: 0.20221014.0
scripts: v0.20220823.0-0-gcc4e44f
soldier: 0.20221017.1 soldier 0.20221017.1
Kernel: Linux 5.15.0-57-generic #63~20.04.1-Ubuntu SMP Wed Nov 30 13:40:16 UTC 2022 x86_64
@BETLOG
BETLOG / user.cfg
Last active December 30, 2022 06:08
Battlefield 4 console options
# -----------------------------------------------------------------------
# BATTLEFIELD 4
# BETLOG - 2022-12-30 transcribed from console
GameTime.MaxVariableFps
#
NetworkPerfOverlay.Enable
#
NetworkPerfOverlay.DrawGraph
#
rm: cannot remove '/home/user/.steam/steam': Is a directory
rm: cannot remove '/home/user/.steam/bin': Is a directory
steam.sh[3819350]: Running Steam on ubuntu 20.04 64-bit
steam.sh[3819350]: STEAM_RUNTIME is enabled automatically
setup.sh[3819451]: Steam runtime environment up-to-date!
steam.sh[3819350]: Steam client's requirements are satisfied
Installing breakpad exception handler for appid(steam)/version(1658362681)
Installing breakpad exception handler for appid(steam)/version(1658362681)
Loaded SDL version 2.23.1-7374734
ComputeStartupMode: found registry default startup mode: 0Installing breakpad exception handler for appid(steam)/version(1658362681)