Skip to content

Instantly share code, notes, and snippets.

@ademlabs
ademlabs / apex_cache.py
Last active June 12, 2022 06:08
Download Apex Legends Linux dxvk state cache files and merge automatically
#!/bin/python3
import json, urllib3, re, subprocess, shutil, os, time
steam_library_location = "/home/arvind/Games/Steam/steamapps"
dxvk_cache_tool = "/home/arvind/Games/Steam/steamapps/shadercache/1172470/DXVK_state_cache/dxvk-cache-tool"
url = "https://www.reddit.com/r/linux_gaming/comments/t5xrho.json?limit=99999"
http = urllib3.PoolManager()
main_last_updated = 0
cache_files = list()
@ademlabs
ademlabs / run_b2
Created January 22, 2021 13:07
Run Borderlands 2
#!/bin/bash
cd "~/.steam/steam/steamapps/common/Borderlands 2"
mesa_glthread=true GALLIUM_HUD=fps LD_PRELOAD='./libcxxrt.so /usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/dri/radeonsi_dri.so ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libwrap.so.0' LD_LIBRARY_PATH=~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu ./Borderlands2