Skip to content

Instantly share code, notes, and snippets.

View Willdrick's full-sized avatar

Willdrick

  • Buenos Aires, Argentina
View GitHub Profile
@Willdrick
Willdrick / gist:824575eeb90d93d96c8bcdb44b7b35c0
Created March 25, 2021 22:56
Valheim 0.148.6 player.log
This file has been truncated, but you can view the full file.
Mono path[0] = '/home/willdrick/.local/share/Steam/steamapps/common/Valheim/valheim_Data/Managed'
Mono config path = '/home/willdrick/.local/share/Steam/steamapps/common/Valheim/valheim_Data/MonoBleedingEdge/etc'
Preloaded 'libsteam_api.so'
Display 0 'XWAYLAND0 40"': 1920x1080 (primary device).
Desktop is 1920 x 1080 @ 60 Hz
[Vulkan init] extensions: count=18
[Vulkan init] extensions: name=VK_KHR_device_group_creation, enabled=0
[Vulkan init] extensions: name=VK_KHR_display, enabled=1
[Vulkan init] extensions: name=VK_KHR_external_fence_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_memory_capabilities, enabled=0
@Willdrick
Willdrick / run.sh
Created October 5, 2020 16:50
AoE2:DE run file created by PROTON_DUMP_DEBUG_COMMANDS=1 %command
#!/bin/bash
#Run game or given command in environment
cd "/steamssd/SteamLibrary/steamapps/common/AoE2DE"
DEF_CMD=("/steamssd/SteamLibrary/steamapps/common/AoE2DE/AoE2DE_s.exe")
PATH="/home/willdrick/.local/share/Steam/compatibilitytools.d/Proton-5.9-GE-7-ST/dist/bin/:/home/willdrick/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/bin:/home/willdrick/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/bin:/home/willdrick/.local/share/Steam/ubuntu12_32/steam-runtime/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin" \
TERM="xterm" \
WINEDEBUG="-all" \
WINEDLLPATH="/home/willdrick/.local/share/Steam/compatibilitytools.d/Proton-5.9-GE-7-ST/dist/lib64//wine:/home/willdrick/.local/share/Steam/compatibilitytools.d/Proton-5.9-GE-7-ST/dist/lib//wine" \
LD_LIBRARY_PATH="/home/willdrick/.local/share/Steam/compatibilitytools.d/Proton-5.9-GE-7-ST/dist/lib64/:/home/willdrick/.local/share/Steam/compatibilitytools.d/Proton-5.9-GE-7-ST/dist/lib/:/home/willdrick/.local/share/Steam/ubuntu12_32/steam-runtime/
willdrick@vega:~$ cd /tmp/proton_willdrick/
willdrick@vega:/tmp/proton_willdrick$ ./run
fsync: up and running.
Setting breakpad minidump AppID = 813780
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198006177079 [API loaded no]
info: Game: AoE2DE_s.exe
info: DXVK: v1.7-8-g51531e4a7
info: Built-in extension providers:
info: Win32 WSI
info: OpenVR

Enable 2.1 audio output in PulseAudio

I'm using a 2.1 speakers kit from Logitec but most of the time it is always detected as 2.0... 😒

So I decided to make some research and found a solution that works everytimes (on Ubuntu based distribs).

Before patching

As you can see, my audio output is not patched.

Audio Ouput

actual-audio-output

@Willdrick
Willdrick / dsu.fish
Created January 8, 2020 12:28
fish shell - run last command as root
function dsu
if count $argv > /dev/null
if [ $history[$argv[1]] = "dsu" ]
dsu (math $argv[1] + 1)
else
eval command sudo $history[$argv[1]]
end
else
dsu 1
end
#You need
#curl, wget, node, npm
VERSION=$(curl https://updates.counterplay.co/ | grep duelyst |grep -v staging | grep zip | tail -c 18 | head -c 6)
wget http://downloads.counterplay.co/duelyst/v$VERSION/duelyst-v$VERSION-win32-x64.zip
#remove old stuff
rm -rf Duelyst-linux-x64
#extract it
rm -rf duelyst-v$VERSION
@Willdrick
Willdrick / copy-from-time-machine.sh
Last active October 24, 2022 22:17 — forked from vjt/copy-from-time-machine.sh
Copy data from a Time Machine volume mounted on a Linux box.
#!/bin/bash
#
# Copy data from a Time Machine volume mounted on a Linux box.
#
# Usage: copy-from-time-machine.sh <source> <target>
#
# sudo ./copy-from-time-machine.sh /media/<current-username>/<time-machine-drive-name>/Backups.backupdb/<old-mac-system-name>/Latest/<old-mac-internal-hd-name>/Users/<old-mac-user-name> <target...>
#
# source: the source directory inside a time machine backup
# target: the target directory in which to copy the reconstructed