This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def subtract_time(threshold_mins: int, next: int, offset: int = 0) -> None: | |
''' | |
Subtracts time in a Euro Truck Simulator 2 (and possibly American Truck Simulator) save file. | |
I wrote this because TruckersMP, before 2021-08-10 (https://forum.truckersmp.com/?/topic/105649--/), | |
save time was synced with server time, bloating it by years (about 25 in my case). | |
Save must be first not on Steam Cloud and be decrypted, see: | |
https://forum.truckersmp.com/index.php?/topic/44399-save-editing-tutorial-in-depth-video/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# SPDX-License-Identifier: GPL-2.0-or-later | |
# | |
# Tested on freshly installed Manjaro 22.0.5 Gnome. | |
pamac build trizen | |
cat >/tmp/convert.sh <<EOF | |
pacman -Qq | grep pamac | xargs pacman -Rs --noconfirm manjaro-application-utility | |
pacman -Rdd manjaro-release bashrc-manjaro manjaro-keyring python-manjaro-sdk | |
pacman -U https://www.archlinux.org/packages/core/x86_64/{lsb-release,pacman{,-mirrorlist}}/download/ | |
mv /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist |