Skip to content

Instantly share code, notes, and snippets.

View Lili1228's full-sized avatar

Lili Kurek Lili1228

  • 04:36 (UTC +02:00)
View GitHub Profile
@Lili1228
Lili1228 / subtract_time.py
Created October 26, 2023 14:19
Subtract time from ETS2/ATS save
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/
@Lili1228
Lili1228 / convert.sh
Last active September 1, 2023 17:54
Convert Manjaro to Arch
#!/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