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
@thesamesam
thesamesam / xz-backdoor.md
Last active April 23, 2024 21:38
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@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 / 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 / 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.

@SalomonBrys
SalomonBrys / Stadia-ubuntu.md
Last active February 15, 2023 17:48
Stadia in Ubuntu

Stadia in Ubuntu

1. Install Chromium-vaapi & drivers

  • Add the chromium-vaapi dev repository:
    sudo add-apt-repository ppa:saiarcot895/chromium-beta
    sudo apt-get update
    
  • Install Chromium-vaapi:
@coolaj86
coolaj86 / Create a Bootable MacOS Recovery USB with Linux.md
Last active March 19, 2024 19:11
How to create Apple's Bootable MacOS Rescue Image from Linux

See bootableinstaller.com

How to create a Bootable MacOS Recovery USB from Linux

If your Mac is out-of-order or you otherwise cannot download macOS from the App Store, you can still create a bootable OS X recovery USB, and you can use that to create an Installer USB.

The downloads used in this process are legal and freely avaliable - including disk images directly from Apple's IT support pages, and open source utilities for extracting and converting pkg, dmg, and HFS+.

@ahmed-musallam
ahmed-musallam / compress_pdf.md
Last active March 10, 2024 13:53
How to compress PDF with ghostscript

How to compress PDF using ghostscript

As a developer, it bothers me when someone sends me a large pdf file compared to the number of pages. Recently, I recieved a 12MB scanned document for just one letter-sized page... so I got to googlin, like I usually do, and found ghostscript!

to learn more abot ghostscript (gs): https://www.ghostscript.com/

What we are interested in, is the gs command line tool, which provides many options for manipulating PDF, but we are interested in compressign those large PDF's into small yet legible documents.

credit goes to this answer on askubuntu forum: https://askubuntu.com/questions/3382/reduce-filesize-of-a-scanned-pdf/3387#3387?newreg=bceddef8bc334e5b88bbfd17a6e7c4f9

@achautha
achautha / awslogs.md
Last active February 21, 2022 02:32
Monitor Docker container logs with AWS CloudWatch

Monitor Docker container logs with AWS CloudWatch

In this post, we are going to see how to monitor docker logs from AWS Cloudwatch logs. Docker supports different logging drivers one of which is awslogs

For this excersice, Docker container need NOT be running on EC2. We can send docker logs from anywhere to AWS.

Prerequisite

  • Ubuntu 14.04
  • Docker version 1.12 and above
@chadrien
chadrien / README.md
Last active September 1, 2023 12:43
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \