Skip to content

Instantly share code, notes, and snippets.

View thetredev's full-sized avatar

Timo Reichl thetredev

  • Germany
  • 18:23 (UTC +02:00)
View GitHub Profile
@thetredev
thetredev / fix-networkdrives.bat
Last active August 30, 2019 13:54
Batch file to fix "red crossed" network drives (on Windows logon)
:: This script will open instances of explorer.exe at specific locations,
:: and kill explorer.exe after 1 second when all explorer windows are open.
:: I personally use it to make Windows realize that my network drives
:: are actually online and don't show a red cross after I login.
:: I have my Steam library on a network drive which gets disabled
:: when Steam doesn't see it. Therefore I wrote this little workaround.
:: To run it on logon, do the following:
:: 1. Put this file somewhere accessible, like C:
"workbench.colorCustomizations": {
"terminal.background":"#1D2021",
"terminal.foreground":"#e7dbca",
"terminal.ansiBlack":"#1D2021",
"terminal.ansiBlue":"#2f62af",
"terminal.ansiBrightBlack":"#665C54",
"terminal.ansiBrightBlue":"#88f59f",
"terminal.ansiBrightCyan":"#8BA59B",
"terminal.ansiBrightGreen":"#aec9a4",
"terminal.ansiBrightMagenta":"#8F4673",
@thetredev
thetredev / remove-snap-from-ubuntu.md
Last active August 7, 2023 15:48
Remove snap from Ubuntu

Remove snap from Ubuntu

Tested with:

  • Ubuntu Desktop 22.04.2
  • Ubuntu Server 22.04.2

Both are VirtualBox VMs on my Void Linux host. Both have been installed using the following options:

  • Normal installation (not minimal), to ensure it's fully bloated
  • With third party drivers

After the install, sudo apt update and sudo apt full-upgrade have been applied. A reboot was done next.

@thetredev
thetredev / fix-source-engine-malloc-bug-on-voidlinux.md
Last active March 9, 2024 02:38
Fix Source Engine malloc bug on Void Linux

TLDR: Just scroll down to The solution.

The problem

Today (2024-03-09) I tried to run Counter-Strike Source on Void Linux via the Flatpak version of Steam on Void Linux. I have updated all my Flatpaks via flatpak update before I started Steam.

After trying to run Counter-Strike Source, it just stopped. No game window opened. The green Play button of the game just updated to the blue Stop button and eventually reverted back to the green Play button.

So I ran Steam via the console using flatpak run com.valvesoftware.Steam to look at the logs. The game had problems with line 72 of hl2.sh, printing

/hl2.sh: line 72:  Aborted