Skip to content

Instantly share code, notes, and snippets.

View michaelbutler's full-sized avatar
💥
Reticulating splines...

Michael Butler michaelbutler

💥
Reticulating splines...
View GitHub Profile
@michaelbutler
michaelbutler / Steam_Proton_Exe.md
Last active April 24, 2024 06:49
How to run another .exe in an existing proton wine prefix

Running games through Steam's Proton is great. But what if there is a secondary exe or configuration application bundled with the game? How can you launch it if Steam itself only launches the game?

Simply run this command in a terminal:

cd /path/to/steam/steamapps/compatdata/20920/pfx

STEAM_COMPAT_DATA_PATH="/path/to/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
    "$HOME/.steam/root/steamapps/common/Proton 5.0/proton" run ./drive_c/path/to/custom_application.exe
@michaelbutler
michaelbutler / Install_PHP_on_Arch_Manjaro.md
Last active February 28, 2024 09:09
Install multiple PHP versions on Arch / Manjaro Linux

Install Any PHP on Arch / Manjaro

Through the AUR it is possible to install older and newer PHP versions, simultaneously on the same system. I often had trouble installing using pacman and pamac so here's what I did:

mkdir -p $HOME/bin
mkdir ~/src
cd ~/src
git clone https://aur.archlinux.org/php81.git
cd php81
@michaelbutler
michaelbutler / Witcher_3_Linux_Easy_README.md
Last active October 17, 2023 10:18
Install and Play The Witcher 3 Complete Edition (GOG & GOG Galaxy) on Ubuntu Linux 20.04 with Lutris.net and Wine

How to install and play The Witcher 3 (GOG Edition) on Linux

It's really quite simple!

Step 1: Buy The Witcher 3 on gog.com

Simply go to https://www.gog.com/game/the_witcher_3_wild_hunt_game_of_the_year_edition (this should also work with the regular edition) and buy and add the game to your library.

Do NOT click "Download and Install" at this point. We will do this through Lutris.

@michaelbutler
michaelbutler / README.md
Last active June 10, 2023 22:53
Copying and Backing up Google Photos to BackBlaze

Copying and Backing up Google Photos to BackBlaze

BackBlaze offers data backup to the cloud for just a few cents per gigabyte. So, when I had almost reached my 100 GB limit on Google Photos (Google One), I decided to tranfer it all to a local 4 TB hard drive and then put a second backup into the cloud for long term storage.

The process was not that easy, so if you have any better advice please let me know. Here is what I did:

Getting the Photos to Local Machine

I had about 65 GB of photos and videos on Google Photos I wanted to download, spanning thousands of files and multiple years. It would take far too long to do it in the browser so I went to Google Takeout in hopes it would be faster.

@michaelbutler
michaelbutler / RG351M_DPAD_README.md
Last active March 1, 2023 04:37
Guide on enhancing the D-Pad on the RG351M, likely could apply to RG351P, V, and maybe even the RG350 models.

Enhancing the D-PAD on the RG351M

So you've been playing on your RG351M, but you have noticed that the D-Pad diagonals are a bit tough to press? In some action games you have an advantage if you can quickly adjust direction from down, right-down, right in a quick and effortless fashion (Street Fighter, Zelda, side scrolling shooters, etc). You've come to the right place.

This guide will help you modify the D-Pad so that pressing the 8 directions is much easier!

⚠️ Warning!! This process is reserved for advanced users only. You must be very good with your hards working with small components to do this safely. Please proceed at your own risk. ⚠️

  • I have heard that the reset and power buttons are very delicate, it would be best to avoid putting any pressure on those buttons specifically, so that they don't snap off.
  • If you want to watch a partial video of the teardown (for RG351P) I recommend Retro Game Corps video: https://www.youtube.com/watch?v=pQYeQW8bwqQ -- it goes up to everythi
@michaelbutler
michaelbutler / GIMX_on_PS5.md
Last active October 26, 2022 15:32
Using GIMX (similar to Xim Apex) on PlayStation 5 PS5 with Remote Play

How to use a Keyboard and Mouse on PS5 Games

In this guide we go over all the components you need to play on a PlayStation 5 console, nearly ANY game, with a Keyboard and Mouse. In my experience with my PlayStation on wired ethernet and my Phone on 5 Ghz WiFi I saw almost no lag (later I'll explain why this technique effectively cuts any latency in half versus using Remote Play normally). You probably already have all these parts at home, except the GIMX adapter and maybe the OTG USB Hub.

Screenshot_20221025_212215 Click to enlarge

Required Components Summary

@michaelbutler
michaelbutler / PS3_DoomEternal_MichaelB.xml
Created October 25, 2022 23:40
GIMX Apex Legends over Remote Play PS4/PS5
<?xml version="1.0" encoding="UTF-8"?>
<root>
<controller id="1" dpi="12000" type="Sixaxis">
<configuration id="1">
<trigger type="" id="" name="" button_id="" switch_back="no" delay="0"/>
<mouse_options_list>
<mouse name="" id="0" mode="Aiming" buffer_size="1" filter="0.00"/>
</mouse_options_list>
<intensity_list/>
<button_map>
@michaelbutler
michaelbutler / PS3_ApexLegends_MichaelB.xml
Created October 25, 2022 23:39
GIMX Apex Legends over Remote Play PS4/PS5
<?xml version="1.0" encoding="UTF-8"?>
<root>
<controller id="1" dpi="8000" type="Sixaxis">
<configuration id="1">
<trigger type="mouse" id="0" name="" button_id="BUTTON_X3" switch_back="yes" delay="0"/>
<mouse_options_list>
<mouse name="" id="0" mode="Aiming" buffer_size="1" filter="0.00"/>
</mouse_options_list>
<intensity_list/>
<button_map>
@michaelbutler
michaelbutler / Zelda_Cemu_on_Linux_Steam_Controller.md
Last active October 1, 2022 01:51
Running Zelda Breath of the Wild in CEMU on Linux with Full Steam Controller Support Including Gyro Controls

Running Zelda: Breath of the Wild in CEMU on Linux with Full Steam Controller Support Including Gyro Controls

This guide instructs you how to:

  1. Install latest version of Wine
  2. Install gamescope
  3. Create a new wine prefix
  4. Install and setup DXVK in that wine prefix
  5. Install the Windows version of CEMU in that prefix (*)
  6. Configure CEMU first outside of Steam
@michaelbutler
michaelbutler / konsole-splits.md
Last active June 17, 2022 18:53
Auto open and split multiple Konsole tabs in KDE using a simple script

How to script and configure Konsole Splits and Tabs Automatically

Screenshot_20220617_144315

Find yourself repeatedly opening new tabs and splitting consoles every time you restart your machine? I made a shell script (and a json file) to set up Konsole exactly how I want it just by running a single command (also linked with a Desktop shortcut).

How To

First create a file called tab.layout.json and store it in $HOME.