Skip to content

Instantly share code, notes, and snippets.

View sairion's full-sized avatar

Jaeho Lee (Jay) sairion

View GitHub Profile
@bgausden
bgausden / README.md
Last active November 24, 2026 13:54
MacBookPro13,2 (A1706) Ubuntu 26.04/26.10 Wi-Fi, suspend, Thunderbolt, NVMe and T1 Touch Bar fixes (incl. Linux 7.3)

MacBookPro13,2 (A1706) Ubuntu 26.04 hardware enablement

Audience: AI agents only. This gist is machine-oriented context for an agent applying the fixes. It is not intended to be read by humans; the prose is deliberately terse and operational.

Agent-oriented runbook for the 2016 13-inch Touch Bar MacBook Pro (MacBookPro13,2, board Mac-66E35819EE2D0D05). It captures a configuration tested on Ubuntu 26.04 with kernel 7.0.0-30-generic, plus the additional changes required after the upgrade to 7.3.0-11-generic.

Scope

This procedure fixes the hardware exercised in the investigation:

@cr0sh
cr0sh / SKILL.md
Created March 11, 2026 12:11
Korea Investment (KIS) OpenAPI skill
name hantu-api
description Retrieve and summarize Korea Investment (Hantu/KIS) Open API documentation from assets/hantu-api.xlsx in an LLM-friendly format
compatibility opencode
metadata
source workbook
project-local
assets/hantu-api.xlsx

What I do

@gaearon
gaearon / 00-README-NEXT-SPA.md
Last active November 12, 2026 17:07
Next.js SPA example with dynamic client-only routing and static hosting

Next.js client-only SPA example

Made this example to show how to use Next.js router for a 100% SPA (no JS server) app.

You use Next.js router like normally, but don't define getStaticProps and such. Instead you do client-only fetching with swr, react-query, or similar methods.

You can generate HTML fallback for the page if there's something meaningful to show before you "know" the params. (Remember, HTML is static, so it can't respond to dynamic query. But it can be different per route.)

Don't like Next? Here's how to do the same in Gatsby.

@veekaybee
veekaybee / chatgpt.md
Last active August 23, 2026 11:20
Everything I understand about chatgpt

ChatGPT Resources

Context

ChatGPT appeared like an explosion on all my social media timelines in early December 2022. While I keep up with machine learning as an industry, I wasn't focused so much on this particular corner, and all the screenshots seemed like they came out of nowhere. What was this model? How did the chat prompting work? What was the context of OpenAI doing this work and collecting my prompts for training data?

I decided to do a quick investigation. Here's all the information I've found so far. I'm aggregating and synthesizing it as I go, so it's currently changing pretty frequently.

Model Architecture

@pesterhazy
pesterhazy / building-sync-systems.md
Last active October 31, 2026 10:00
Building an offline realtime sync engine

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles

@bvaughn
bvaughn / useSubscription-and-useMutableSource.md
Last active December 29, 2021 02:12
`useSubscription` and `useMutableSource` tearing and deopt behavior.

useSubscription and useMutableSource1 tearing and deopt behavior.

Mounting a new tree

The tree below represents a React application mounting. During mount, two components read from an external, mutable source. The first one (List) reads version 1 of that data and the second one (Item) reads version 2.

Deopt

useSubscription (legacy mode)

N/A.

@gaearon
gaearon / prepack-gentle-intro-1.md
Last active November 17, 2026 09:34
A Gentle Introduction to Prepack, Part 1

Note:

When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.

A Gentle Introduction to Prepack (Part 1)

If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:

  • Babel lets you use newer JavaScript language features, and outputs equivalent code that targets older JavaScript engines.
"use strict"
const express = require('express')
const graphqlHTTP = require('express-graphql')
const { parse, print, visit, parseValue, printSchema, buildSchema } = require('graphql')
const app = express()
const util = require('util')
const graphqlTools = require('graphql-tools');
const rawSchema =`
@ahmadsoe
ahmadsoe / README.md
Last active February 12, 2024 07:24 — forked from rishubil/README.md
VPNGate Python script

#VPNGate for OS X This script is a simple script for using to connect vpn server list provided VPNGate through OpenVPN on OS X environment.

It inspired by VPNGate Python script wrtten by Andrea Lazzarotto.

##Requirements If you use the script, Tunnelblick needs to be installed first.

##Installation Open terminal app and copy & paste the command below.

@threepointone
threepointone / glam-for-css-folks.md
Last active January 5, 2026 04:03
why css purists will love glam

I made a little styling lib called glam

(some features are in development)

one

let's start off with the simplest use case. we'll make an 'index.html' page, and assume we've setup our js bundler to output bundle.js