Skip to content

Instantly share code, notes, and snippets.

@hirbod
hirbod / 01-fix-lg-ultrafine-firmware-crash.md
Last active November 15, 2026 22:31
LG Screen Manager 3.05: Fixes the firmware update crash at 20% on Apple Silicon. 100% vibe-coded. This worked for me, but I can't guarantee it'll work for everyone. Use this as a reference. **Warning:** Flashing firmware incorrectly can brick your device. Proceed at your own risk. If you're not willing to risk potentially damaging your device, s…

Fixing LG Screen Manager's firmware update crash at 20% on Apple Silicon

LG Screen Manager 3.05 kept crashing at 20% while updating my UltraFine 5K. Reconnecting the display and trying again didn't fix it. Both crash reports pointed to the same invalid memory release in the updater.

I used Codex to inspect the installed app and create a small patch. I then ran the firmware update myself. It got past 20%, reached 100%, and passed the final checksum check.

This Gist explains the change and includes a script that patches a separate copy of the app. It does not include LG's app or firmware.

Credit

@vanGalilea
vanGalilea / Confetti.tsx
Created November 20, 2025 09:39
A fully custom, physics-driven confetti engine for React Native + Expo, built with Reanimated + SVG. 8 shapes, randomized trajectories, gravity simulation, peak arcs, opacity fades. Everything you need to instantly upgrade your success screens with joyful, performant confetti.
import React, { useEffect } from "react";
import { Dimensions, View } from "react-native";
import Animated, {
Easing,
useAnimatedStyle,
useSharedValue,
withDelay,
withSequence,
withTiming,
} from "react-native-reanimated";
import { ThemedText } from "@/components/themed-text";
import { BottomSheet, Button, Host, Slider } from "@expo/ui/swift-ui";
import { frame, offset } from "@expo/ui/swift-ui/modifiers";
import { Canvas, Fill, Shader, Skia, vec } from "@shopify/react-native-skia";
import { useState } from "react";
import {
PlatformColor,
StyleSheet,
useWindowDimensions,
View,
@dougg0k
dougg0k / REACT_NATIVE_SECURITY.md
Last active May 7, 2026 02:27
React Native Security - this compilation were initially built upon a help request about security for a banking app.

Obfuscate code helps.

@arch1t3cht
arch1t3cht / video_noob_guide.md
Last active November 13, 2026 16:53
What you NEED to know before touching a video file

What you NEED to Know Before Touching a Video File

Hanging out in subtitling and video re-editing communities, I see my fair share of novice video editors and video encoders, and see plenty of them make the classic beginner mistakes when it comes to working with videos. A man can only read "Use Handbrake to convert your mkv to an mp4 :)" so many times before losing it, so I am writing this article to channel the resulting psychic damage into something productive.

If you are new to working with videos (or, let's face it, even if you aren't), please read through this guide to avoid making mistakes that can cost you lots of time, computing power, storage space, or video quality.

@efstathiosntonas
efstathiosntonas / <appname>.Bridging-Header.h
Last active December 12, 2025 12:57
Lottie as a react-native bootsplash
//
// <appname>-Bridging-Header.h <----- replace the app name with your app's name
// <appname>
//
// Created by Efstathios Ntonas on 2/2/24.
//
#ifndef <appname>_Bridging_Header_h
#define <appname>_Bridging_Header_h
@hirbod
hirbod / metro.config.js
Created May 1, 2025 19:02
Expo SDK 53, New Arch, Metro Config with Crypto support
const { getSentryExpoConfig } = require('@sentry/react-native/metro')
const { withNativeWind } = require('nativewind/metro')
const path = require('path')
const config = getSentryExpoConfig(__dirname)
config.transformer.getTransformOptions = async () => ({
transform: {
experimentalImportSupport: true,
inlineRequires: true,
@Kudo
Kudo / android+e595dc4a98abafdbbb9eb9979064bb34.patch
Created February 17, 2024 05:38
Customize User-Agent for Expo
diff --git a/android/app/src/main/java/dev/expo/kudo/sdk50/MainApplication.kt b/android/app/src/main/java/dev/expo/kudo/sdk50/MainApplication.kt
index e9a2f7a..fbf9aae 100644
--- a/android/app/src/main/java/dev/expo/kudo/sdk50/MainApplication.kt
+++ b/android/app/src/main/java/dev/expo/kudo/sdk50/MainApplication.kt
@@ -14,10 +14,12 @@ import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.facebook.react.defaults.DefaultReactNativeHost
import com.facebook.react.flipper.ReactNativeFlipper
+import com.facebook.react.modules.network.OkHttpClientProvider
import com.facebook.soloader.SoLoader
@kconner
kconner / macOS Internals.md
Last active November 4, 2026 04:48
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

How to make a small tweak to free software

The target audience for this is people who are beginners at software engineering and using linux. A lot of the information here may be obvious or already known to you. The language involved is C but you do not need to know any C to read this tutorial. I used mg to write this blog post. I used vs code to edit the source code.

This post is also available on gopher://tilde.team:70/0/~river/tweak-free-software

If you use a piece of free software and it's 99% perfect but there's just this one thing it does that annoys the hell out of you.. you can in theory just fix it! Here's a look at what doing that is like. Hopefully it inspires you, or you pick up a could tricks on the way!

Step 0: Have a problem