Skip to content

Instantly share code, notes, and snippets.

View CodingKoopa's full-sized avatar
💜

Koopa CodingKoopa

💜
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active July 25, 2024 09:00
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

17.0.0 Save File Management

Hello! It's been a while since I've done any write-ups, but I thought I'd do one to (hopefully) bring a little clarity to a situation that's been causing a lot of confusion and misinformation.

I'm thinking I'll go through what the problem is and why it happens. So, I guess, let's dive in:

What's happening?

Some people are finding that upon updating to 17.0.0, their consoles are getting a blackscreen and refusing to boot further.

@Henje
Henje / papers_please_fix.cpp
Last active February 28, 2023 23:10
Simple hack to disable joystick scanning and remove stutters from Papers Please.
#include <string>
#include <dlfcn.h>
#include <stdio.h>
#include <sys/mman.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
using namespace std::literals;
@alanbixby
alanbixby / vscode-g7-installer.sh
Created October 29, 2021 16:52
Installing Visual Studio Code in G7 without sudo access:
#!/usr/bin/env bash
# Created by Alan Bixby (10/29/2021)
# Installs a portable version of Visual Studio code in "$/HOME/.bin", since students lack write access to /usr/bin or sudo access to use the get-apt installer.
# TODO: Tested to be functional, but I still need to add functionality to prevent running on an invalid OS, or from attempting to run it multiple times (after it previously working).
SAVE_DIR=".bin"
mkdir $HOME/$SAVE_DIR
wget -O "$HOME/$SAVE_DIR/VSCode-linux-x64.tar.gz" "https://code.visualstudio.com/sha/download?build=stable&os=linux-x64"
@rlaphoenix
rlaphoenix / windows-7-plus-build-env-for-nitro.md
Last active July 11, 2023 18:10
Windows 7+ Build Environment for Nintendo NITRO-System (Nintendo DS) compiling.
@LambdAurora
LambdAurora / optifine_alternatives_fabric.md
Last active July 25, 2024 00:41
Recommended OptiFine alternatives on Fabric

The list is moving out!

If you share this list, please use this link instead: https://lambdaurora.dev/optifine_alternatives

It may still be only a redirection link, but it will have a better web display of the list soon. And the list being on GitHub/GitHub pages improves load times.

The gist version of this list will stop being updated.

Why?

import time
import psutil
import multiprocessing as mp
from multiprocessing import Process
def f(thread, duty, freq, q):
p = psutil.Process()
p.cpu_affinity([thread])
while True:
@rmi1974
rmi1974 / conversion_of_wine_builtins_to_pe_format.md
Last active January 21, 2023 05:16
Conversion of Wine builtins to PE format #wine #mingw #llvm #gcc #pe #elf #commandlinefu

Conversion of Wine builtins to PE format

Status of Conversion

List of Wine builtin fake executables in Wine installation as of Wine 7.16:

mainline-install-7.16-x86_64/lib/wine/x86_64-windows/openal32.dll
mainline-install-7.16-x86_64/lib/wine/x86_64-windows/opengl32.dll
mainline-install-7.16-x86_64/lib/wine/i386-windows/openal32.dll
@rmi1974
rmi1974 / wine_pdb_symsrv_symbol_store.md
Last active March 2, 2024 08:36
How to create a symbol store for Wine .pdb files for use with SymSrv #wine #debug #symsrv #pdb #commandlinefu #lvm-pdbutil

How to create a symbol store for Wine .pdb files for use with SymSrv

Setup symbol store

Download and install Debugging Tools for Windows. See Links section at the bottom for all download links.

wget https://web.archive.org/web/20190317014905/http://download.microsoft.com/download/A/6/A/A6AC035D-DA3F-4F0C-ADA4-37C8E5D34E3D/setup/WinSDKDebuggingTools_amd64/dbg_amd64.msi

wine msiexec -i dbg_amd64.msi /quiet /qn /norestart
@Sam-Belliveau
Sam-Belliveau / crc.hpp
Last active October 5, 2023 23:34
CRC16, CRC32, and CRC64 in constexpr C++14
/**
* Copyright 2019 Sam Robert Belliveau
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions: