Skip to content

Instantly share code, notes, and snippets.

View Zeitwaechter's full-sized avatar

John Doe Zeitwaechter

  • Germany
View GitHub Profile
@Zeitwaechter
Zeitwaechter / 00-install-arch-linux-2024.md
Last active April 20, 2024 10:56
Installing Arch Linux (Encrypted) on a device 2024 (with a few extras)

To backup your old system:

  • rsync -aAXhv --exclude={"/dev/*","/lost+found","/mnt/*","/media/*","/proc/*","/run/*","/sys/*","/tmp/*","*cache"} / /[TARGET]

If you want to remind yourself about how to install Arch Linux on a console that you can only access via serial console, checkout the official arch wiki article.

Or:

  • Add console=ttyS0,115200 after hitting TAB in Arch Linux Image Bootloader
@Zeitwaechter
Zeitwaechter / final-fantasy-pixel-remaster-memoria-steam-deck.md
Last active December 24, 2023 06:47
final fantasy pixel remasters on steam deck - steps to set up memoria.ffpr
  1. download the newest release of Albeoris/Memoria.FFPR.
  2. navigate to your FF Pixel Remaster game of choice.
  3. unpack the referenced BepInEx_UnityIL2CPP of the latest release into the root of your game folder (e.g. .local/share/Steam/steamapps/common/FINAL FANTASY VI PR/).
  4. unpack the referenced game specific files (e.g. FF6_v2022.08.07.zip) into the root as well (so you will basically override your BepInEx directory).
  5. install protontricks onto your Arch Linux / Steam (Deck) OS
  6. (the rest is basically taken from bepinex.dev)
    1. run protontricks --gui
    2. select your game of choice (e.g. Final Fantasy VI (check game id!)) and hit "OK" image displaying the protontricks --gui command and the game selection
@Zeitwaechter
Zeitwaechter / patching-genshin-impact-on-linux.md
Last active September 26, 2023 21:17
Genshin Impact / Linux / Steam / Deck

Patching

Update 2023-09

This is deprecated.

Currently, the game launches without the need for any patch whatsoever.

Original Post

@Zeitwaechter
Zeitwaechter / HasAuthOpenApiVersion1Descriptors.php
Last active September 16, 2023 16:27
Laravel Auth / Sanctum routes are not annotated by default, right? So here we go - with a bit extra...
<?php
namespace App\Helpers\Traits\OpenApi\Routes\Auth;
use OpenApi\Attributes as OAT;
#[OAT\Post(
path: '/v1/auth/login',
operationId: 'v1-auth-login',
description: <<<'NOW'
@Zeitwaechter
Zeitwaechter / Handler.php
Last active September 16, 2023 16:11
laravel api generalized http exception responses
<?php
namespace App\Exceptions;
use App\Http\Controllers\Traits\HasHttpResponses;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\RedirectResponse;
@Zeitwaechter
Zeitwaechter / REAMDE.md
Created January 6, 2023 15:39
docker issues

Docker Issues

Got any fancy error message?

  • failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: docker-credential-desktop resolves to executable in current directory (./docker-credential-desktop), out: ''
    • Check your ~/.docker/config.json file, maybe something happend inside of it... like when you wanted to "check" Docker Desktop
    • You might want to just clear the file completely, depending on your use-case, and docker-compose should build imagea again, without any problem
  • Some also reported that renaming the credsStore attribute helped them
@Zeitwaechter
Zeitwaechter / steam-deck-unlocks.md
Last active August 9, 2022 16:52
steam deck commands after another system update
  1. install apps via discover, like firefox+addons + disable pocket + configure, keepassxc, ...
  2. setup emudeck
  3. sudo steamos-readonly disable && sudo pacman-key --init && sudo pacman-key --populate archlinux && sudo rm -fr /etc/vpnc/vpnc-script && sudo rm /etc/ppp/ip-up.d/50-sstp.PROFILE.sh.sample && sudo rm /etc/sstpc/sstp.options.sample && yay -Sy base-devel mtpfs networkmanager-openvpn networkmanager-openconnect networkmanager-pptp network-manager-sstp protontricks
  4. setup vpn setup
@Zeitwaechter
Zeitwaechter / 00-final-fantasy-viii-remastered-config.txt
Last active July 3, 2022 10:51
final fantasy viii remastered on steam - config.txt error fix - check your compatdata savegame directory
; %USER%/Documents/My Games/FINAL FANTASY VIII Remastered/Steam/%steamid%/config.txt
width 3840
height 2160
language EN
mastervol 100
bgmvol 100
screenmode 1
display 0
cameraspeed 6
brightness 50
  • ~/.local/share/Steam/config/htmlcache/UserPrefs.json set directories to [] to disable type checking.