Skip to content

Instantly share code, notes, and snippets.

View matthewyang204's full-sized avatar

Matthew Yang (杨佳明) matthewyang204

View GitHub Profile
@matthewyang204
matthewyang204 / 0001-Patch-unneeded-pragma-GCC-diagnostics.patch
Created December 5, 2025 00:49
Patch sed 4.9 to build cleanly and correctly with gcc 4.2
From 08e7901611a781cd33aa62cab680d41f2b718222 Mon Sep 17 00:00:00 2001
From: Matthew Yang <[email protected]>
Date: Thu, 4 Dec 2025 16:17:59 -0800
Subject: [PATCH] Patch unneeded #pragma GCC diagnostics
---
sed/compile.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sed/compile.c b/sed/compile.c
@matthewyang204
matthewyang204 / upgrade-24h2-25h2.md
Last active October 1, 2025 04:33
Upgrading unsupported Win11 machines from 24H2 to 25H2 without full ISO reinstall

Upgrade unsupported Windows 11 machines from 24H2 to 25H2 without reinstalling the OS entirely from ISO

To upgrade, you do not need the full ISO to install 25H2. Because the update is in the form of an eKB, the update package only enables features already present in 24H2. So all you need is to install the update package and the update will be complete. Please note that these instructions are only for computers with x64 Intel/AMD CPUs because first, I do not have any hashes, and two, most ARM machines are supported anyways and the only ones not supported are typically VMs and you can find instructions elsewhere for those.

Instructions:

  1. Download the Intel/AMD update package from Pureinfotech page. These links lead to the official Microsoft Update Catalog page.
  2. Check the SHA512 hash of the package. It should be `91c5c513966131c12b5abc372c4311f4dcbc64606ac0011e10c38add69e721cace5c5935666fa498a08878302d1a0237fc21d4693b70
@matthewyang204
matthewyang204 / fix.md
Last active September 19, 2025 13:54
Fix audio issues in Ubuntu on MacBooks from around the 2008-2015 era

Fix audio issues in Ubuntu on MacBooks from around the 2008-2015 era

First, you need to uninstall all PipeWire-related packages:

sudo apt remove pipewire-audio-client-libraries pipewire-pulse wireplumber

Install the stuff required for pulseaudio and itself:

sudo apt install pulseaudio pulseaudio-utils pavucontrol

Enable any pulseaudio services so they start on login:

@matthewyang204
matthewyang204 / quotes-9-17-2025.txt
Created September 19, 2025 00:52
Quotes 9-17-2025
"The contents of a tilted container reflect the container's tilt." - Matthew Yang @ 9/17/2025, 9:33 PM
@matthewyang204
matthewyang204 / totallynotaffiliated1.txt
Last active September 18, 2025 02:54
Not involved with the fishy flashy stupid user located at @13-JA in any way
I'm completely aware that there is a user at @13-JA masquerading as a collaborator with me on a water cleanup bot project or something.
I just want to clarify that this is not the case. This user has no affiliation with me.
If you believe cheaters (whom this user is one) are people I associate myself with, I have a giant lot of 128 Lamborghinis to sell you. And just to clarify further, it's not the kind of romantic cheater. It's the kind of cheater who plagarizes other people's work and uses AI to do everything they do.
This "water cleanup bot" project or something does not even exist.
@matthewyang204
matthewyang204 / lesstif failed to build on 10.4.md
Created June 18, 2025 02:30
lesstif failed to build on 10.4

HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install lesstif

==> Downloading https://downloads.sourceforge.net/project/lesstif/lesstif/0.95.2/lesstif-0.95.2.tar.bz2
Already downloaded: /Users/matthewyang/Library/Caches/Homebrew/lesstif-0.95.2.tar.bz2
==> Verifying lesstif-0.95.2.tar.bz2 checksum
/usr/bin/tar xjf /Users/matthewyang/Library/Caches/Homebrew/lesstif-0.95.2.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/lesstif/0.95.2 --disable-debug --enable-production --disable-dependency-tracking --enable-shared --enable-static
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
@matthewyang204
matthewyang204 / Delete All Files by Type.md
Created March 18, 2025 20:57
Delete All Files By Type

Delete All Files by Type

Ever converted all your m4a files to mp3 on your Mac, only to find it hard to delete all of the m4a after you're done? Or maybe converted all your keynotes into powerpoints, and find it hard to delete all the .key files leftover? This is a solution! All you need is to make sure Homebrew is installed, and make sure that the tool shc, which we're going to use to compile the executables, is also installed.

Installation:

  1. Create a new file on your desktop called
dfbt.sh

in TextEdit with the contents below: