Skip to content

Instantly share code, notes, and snippets.

View roy4801's full-sized avatar
🎯
Focusing

roy4801

🎯
Focusing
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active April 21, 2026 01:58
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.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@mmozeiko
mmozeiko / !README.md
Last active April 20, 2026 08:00
Download MSVC compiler/linker & Windows SDK without installing full Visual Studio

This downloads standalone MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for native desktop app development.

Run py.exe portable-msvc.py and it will download output into msvc folder. By default it will download latest available MSVC & Windows SDK from newest Visual Studio.

You can list available versions with py.exe portable-msvc.py --show-versions and then pass versions you want with --msvc-version and --sdk-version arguments.

To use cl.exe/link.exe first run setup_TARGET.bat - after that PATH/INCLUDE/LIB env variables will be updated to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.

To use clang-cl.exe without running setup.bat, pass extra /winsysroot msvc argument (msvc is folder name where output is stored).

@sleirsgoevy
sleirsgoevy / ps4.html
Created October 27, 2021 16:06
PS4 WebKit exploit on 9.00
<script>
var PAGE_SIZE = 16384;
var SIZEOF_CSS_FONT_FACE = 0xb8;
var HASHMAP_BUCKET = 208;
var STRING_OFFSET = 20;
var SPRAY_FONTS = 0x1000;
var GUESS_FONT = 0x200430000;
var NPAGES = 20;
var INVALID_POINTER = 0;
var HAMMER_FONT_NAME = "font8"; //must take bucket 3 of 8 (counting from zero)
@x0nu11byt3
x0nu11byt3 / elf_format_cheatsheet.md
Created February 27, 2021 05:26
ELF Format Cheatsheet

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@ervinb
ervinb / boost-your-microphone-above-the-Mac-OS-limit-and-improve-voice-quality.md
Last active April 6, 2026 13:55
How to boost the microphone volume on Mac above the OS limit. Useful for quality microhpones, which are too quiet out-of-the box.

How to boost your microphone above the Mac OS limit

If you just bought a good mic but got dissapointed how quiet it is, this post will sort you out. My Blue Snowball iCE was way too quiet out of the box and I've used this procedure to make it sound great.

mic-vst-light

First we'll set up BlackHole, but the focus will be on Element, which is a great VST host application. It enables the manipulation of an input singnal through VST, AU and its built-in plugins. This is a good alternative to AU Lab, which actually works. We will also install AU Lab for it's plugins however.

The rest of the chain is just passing on a hot potato.

@benoitpetit
benoitpetit / docker-compose.yml
Last active September 22, 2025 17:13
complete Gitlab installation and a runner with docker
version: '4.5'
services:
# GITLAB
gitlab-web:
image: 'gitlab/gitlab-ce:latest'
restart: always
container_name: gitlab-web
hostname: '192.168.0.14'
environment:

前言

這兩年多虧於 VTuber 的盛行,動態捕捉從原先軟硬體價格昂貴難以上手,到現在越來越多適合獨立創作者的軟體盛行,入門的門檻也一天比一天降低許多。此表單整理我這陣子試過適合直播的動態捕捉軟體,包含 Live2D、3D、半身捕捉、全身捕捉等,希望對有興趣的人有幫助,有錯誤或補充資訊也歡迎提出。

Yan-K / 2020.06.08 社群平台:Website | Facebook | Twitter | Plurk | Twitch

【2D】- 免費

PrprLive

@ishad0w
ishad0w / sources.list
Created April 30, 2020 16:55
Ubuntu 20.04 LTS (Focal Fossa) -- Full sources.list
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
@andy0130tw
andy0130tw / subprocess_safe.py
Last active November 8, 2024 15:01
Finally I made it. A customized Popen to support limiting the size of stdout/stderr! (Works on non-Windows only, for now)
import contextlib
import io
import logging
import os
import queue
import selectors
import subprocess
import tempfile
import threading
from time import monotonic as _time