Skip to content

Instantly share code, notes, and snippets.

View Yukaii's full-sized avatar
👾
nyan, nyan, nyan

Yukai Huang Yukaii

👾
nyan, nyan, nyan
View GitHub Profile
@bbqtd
bbqtd / macos-tmux-256color.md
Last active August 16, 2026 06:05
Installing tmux-256color for macOS

Installing tmux-256color for macOS

  • macOS 10.15.5
  • tmux 3.1b

macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.

The Fast Blazing Solution

Instead of tmux-256color, use screen-256color which comes with system. Place this command into ~/.tmux.conf or ~/.config/tmux/tmux.conf(for version 3.1 and later):

@ronnywang
ronnywang / points.csv
Last active September 18, 2019 14:03
We can't make this file beautiful and searchable because it's too large.
x,y,xmin,ymin,xmax,ymax
120.04444241524,23.079425783524,120.04417419434,23.079198766901,120.04471063614,23.079652800146
120.09097337723,23.091476650507,120.0908446312,23.09127926701,120.09110212326,23.091674034005
120.09626269341,23.23268044398,120.09618759155,23.232631150184,120.09633779526,23.232729737776
120.09650945663,23.232631150184,120.09644508362,23.232591715148,120.09657382965,23.232670585221
120.09575843811,23.22219022985,120.09554386139,23.22196346124,120.09597301483,23.22241699846
120.09478211403,23.218680152593,120.09477138519,23.218670292716,120.09479284286,23.218690012471
120.09228229523,23.15273091414,120.09200334549,23.152573078668,120.09256124496,23.152888749613
120.0921857357,23.090973322588,120.09217500687,23.090904238364,120.09219646454,23.091042406812
120.09240031242,23.090667378167,120.0923037529,23.090627901467,120.09249687195,23.090706854866
@cerebrate
cerebrate / README.md
Last active October 23, 2025 04:01
Recompile your WSL2 kernel - support for snaps, apparmor, lxc, etc.

WARNING

THIS GIST IS EXTREMELY OBSOLETE. DO NOT FOLLOW THESE INSTRUCTIONS. SERIOUSLY.

IF YOU IGNORE THE ABOVE WARNING, YOU AGREE IN ADVANCE THAT YOU DIDN'T GET THESE INSTRUCTIONS FROM ME, THAT I WARNED YOU, AND THAT I RESERVE THE RIGHT TO POINT AND LAUGH MOCKINGLY IF AND WHEN SOMETHING BREAKS HORRIBLY.

I'll do a write-up of current custom-kernel procedures over on Random Bytes ( https://randombytes.substack.com/ ) one day soon.

NOTE

@rsheeter
rsheeter / README.txt
Created February 4, 2019 19:19
Progressive Enrichment Demo Notes
Notes on server-side of https://fonts.gstatic.com/experimental/incxfer_demo
- it's currently tied to Google internal serving so just open sourcing code isn't helpful
/experimental/incxfer, args:
- font - string identifying font, e.g. Lobster:400
- cp_current - csv of codepoints UA has
- cp_needed - csv of codepoints UA would like to have
- retain_gids - whether gids should be stable
- diff_type - lets demo support different diff algorithms
@MIvanchev
MIvanchev / article.md
Last active June 12, 2026 13:53
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@fnky
fnky / ANSI.md
Last active August 18, 2026 18:58
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active August 7, 2026 18:31
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
/**
* Bear Theme with Typora
*
* @version : 0.0.1
* @update : 2018/09/08
* @homepage: https://gist.github.com/Kenshin/e5adc79da3149315bdfd72a35b70d65e
* @license : MIT https://github.com/kenshin/mduikit/blob/master/LICENSE
* @author : Kenshin Wang <kenshin@ksria.com>
*
* @copyright 2018
@ian-p-cooke
ian-p-cooke / add_wsl_exclusions.ps1
Last active June 30, 2024 05:27
powershell script to add WSL exclusions
$win_user = "ipc"
$linux_user = "ipc"
$package = "CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc"
$base_path = "C:\Users\" + $win_user + "\AppData\Local\Packages\" + $package + "\LocalState\rootfs"
$dirs = @("\bin", "\sbin", "\usr\bin", "\usr\sbin", "\home\" + $linux_user + "\.cargo\bin")
$dirs | ForEach { Add-MpPreference -ExclusionProcess ($base_path + $_ + "\*") }
Add-MpPreference -ExclusionPath $base_path
@mterrel
mterrel / git.ps1
Created July 3, 2018 21:44
Use WSL git with VS Code
# Run WSL git from Windows, mapping some paths between unix <-> Win
# To use with wslgit.cmd, place them in the same directory
Function ToUnix {
# If the arg has a \, then it's probably a path. Convert it.
if ($args[0] -match "\\") {
$mapped = wsl wslpath -u `'$($args[0])`'
} else {
$mapped = $args[0]
}