Skip to content

Instantly share code, notes, and snippets.

View BasixKOR's full-sized avatar

Sung Jeon BasixKOR

View GitHub Profile
@dahlia
dahlia / README.md
Last active October 23, 2022 09:44
Dirty workaround to let VS Code Live Share run on Apple silicon Macs without Rosetta 2

As of June 2022, VS Code's [Live Share] still does not work well on Apple silicon Macs (M1/M2 series) without [Rosetta 2]. Although [this bug is tracked in the official issue tracker on GitHub][1], unfortuneately, Live Share extension is not open source, so no outsiders can send any patch to address this bug to the upstream. Instead, I'd like to share a workaround I found:[^1]

  1. Install [.NET SDK] 6 (arm64) or higher. It's also available on Homebrew Cask: brew install --cask dotnet-sdk.

  2. Replace vsls-agent (no postfix) in

@FxMorin
FxMorin / ScummyMods.md
Last active July 20, 2024 16:22 — forked from kyrptonaught/ScummyMods.md
The Scummy Behavior of mods that act like modpacks

Introduction

Let me start by clarifying that the following doesn't exclusively apply to Debugify, but they serve as an excellent illustration of the heinous behavior outlined in the following. The mods in question shall therefore be collectively referred to as "Scummy Mods".

Scummy Mods are mods that incorporate or outright copy foreign code bases, without permission from the original author. They commonly state to either "replace" or "include" the original work, if any mention is given at all. Developing a mod is not easy. Many mod creators sacrifice significant chunks of their personal time and resources to their creations, essentially for free. Curseforge offers a symbolic compensation for the hours poured, but it's usually insignificant and just a nice bonus.

The Problem

The majority of the original projects are still in development. Since the creators behind Scummy Mods typically do not understand the code they copied to begin with, they lack the knowledge required to eliminate the bugs that will

@lifthrasiir
lifthrasiir / dj40.c
Last active September 13, 2022 16:42
Pre-release version of J40 JPEG XL decoder, see https://github.com/lifthrasiir/j40 for recent releases
#define J40_CONFIRM_THAT_THIS_IS_EXPERIMENTAL_AND_POTENTIALLY_UNSAFE
#define J40_IMPLEMENTATION
#include "j40.h"
#ifdef __GNUC__ // stb_image_write issues too many warnings
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-conversion"
#pragma GCC diagnostic ignored "-Wconversion"
#endif
#define STB_IMAGE_WRITE_IMPLEMENTATION
@rauschma
rauschma / about.md
Last active May 25, 2022 17:23
Transferring objects between a ShadowRealm and an incubator realm

Transferring objects between a ShadowRealm and an incubator realm

Material:

@nautalice
nautalice / gist:5db09aebcf892b57f342b695ffebc867
Last active June 11, 2024 11:21
Fuck off Twitter Chirp
1. Install uBlock Origin: https://github.com/gorhill/uBlock
2. Click the gears icon on the plugin dropdown (lower right-hand corner)
3. Select the My Filters tab
4. Enter the following (one filter per line):
https://abs.twimg.com/fonts/chirp-bold-web.woff
https://abs.twimg.com/fonts/chirp-heavy-web.woff
https://abs.twimg.com/fonts/chirp-regular-web.woff
https://abs.twimg.com/fonts/chirp-medium-web.woff
https://abs.twimg.com/fonts/v2/chirp-bold-web.woff
https://abs.twimg.com/fonts/v2/chirp-regular-web.woff

Note

This gist has graduated to a proper repo: preactjs/preact-root-fragment

preact-root-fragment: partial root rendering for Preact

This is a standalone Preact 10+ implementation of the deprecated replaceNode parameter from Preact 10.

It provides a way to render or hydrate a Preact tree using a subset of the children within the parent element passed to render():

@motorailgun
motorailgun / idea.md
Last active April 1, 2026 17:06
Installing Windows and Linux into the same partition

Installing Windows and Linux into the same partition

But WHY?

There was a reddit post about installing Arch on NTFS3 partition. Since Windows and Linux doesn't have directories with same names under the /(C:\), I thought it's possible, and turned out it was actually possible.
If you are not familiar to Linux, for example you've searched on Google "how to dualboot Linux and Windos" or brbrbr... you mustn't try this. This is not practical.

Pre-requirements

  • UEFI system
  • Any Linux live-boot CD/DVD/USB... with Linux kernel newer than 5.15
  • Windows installer USB
@bvaughn
bvaughn / react-dom-test-selectors.md
Last active January 9, 2023 15:46
Experimental React DOM test selector API

RFC Test Selectors

Owner: Brian Vaughn


As of facebook/react/pull/22760, the experimental Test Selector API is now available in the experimental release channel.

To test the API, first install the experimental release:

@mhcoma
mhcoma / pi.c
Created October 17, 2021 18:43
pi
#include <stdio.h>
#define PI putchar(i);
#define Pi i++;
#define pI i--;
#define pi char i; i -= i;
int main(void) {
pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi Pi PI pI pI pI pI pI PI Pi Pi Pi PI Pi Pi Pi PI pI pI pI PI Pi Pi Pi Pi PI Pi Pi Pi Pi PI pI pI pI pI pI pI pI PI Pi Pi Pi Pi PI pI PI pI pI PI Pi
Pi PI Pi Pi Pi PI Pi PI pI pI PI Pi Pi PI pI pI pI pI pI pI PI pI PI Pi PI Pi Pi Pi Pi Pi PI pI pI pI pI PI Pi Pi PI pI pI pI pI PI Pi Pi Pi Pi PI pI pI PI pI PI PI Pi Pi Pi Pi Pi PI pI pI pI pI pI PI pI PI Pi Pi Pi Pi Pi PI Pi Pi PI pI pI pI pI PI pI pI pI pI pI PI Pi Pi PI Pi Pi Pi Pi Pi Pi PI PI
pI pI pI pI PI pI pI pI PI Pi Pi Pi Pi Pi Pi Pi Pi PI pI pI PI pI pI pI pI pI pI PI Pi Pi Pi Pi Pi PI Pi Pi Pi PI pI pI
pI
import idl from "@webref/idl";
const serializables = [];
const transferables = [];
const all = await idl.parseAll();
for (const file of Object.values(all)) {
for (const obj of file) {
if (obj.type !== "interface") {
continue;