Skip to content

Instantly share code, notes, and snippets.

@Eirenliel
Eirenliel / slimevr-setup.md
Last active July 19, 2022 22:52
SlimeVR Setup instructions
@mariotaku
mariotaku / LspWslFix.ps1
Created December 20, 2022 11:09
Fix WSL Connection Issue Caused by Winsock
#Requires -RunAsAdministrator
# Fix for https://github.com/microsoft/WSL/issues/4177
$MethodDefinition = @'
[DllImport("ws2_32.dll", CharSet = CharSet.Unicode)]
public static extern int WSCSetApplicationCategory([MarshalAs(UnmanagedType.LPWStr)] string Path, uint PathLength, [MarshalAs(UnmanagedType.LPWStr)] string Extra, uint ExtraLength, uint PermittedLspCategories, out uint pPrevPermLspCat, out int lpErrno);
'@
$Ws2Spi = Add-Type -MemberDefinition $MethodDefinition -Name 'Ws2Spi' -PassThru
@jjb
jjb / file.md
Last active July 12, 2025 22:41
Using Jemalloc 5 with Ruby.md

For years, people have been using jemalloc with ruby. There were various benchmarks and discussions. Legend had it that Jemalloc 5 didn't work as well as Jemalloc 3.

Then, one day, hope appeared on the horizon. @wjordan offered a config for Jemalloc 5.

Ubuntu/Debian

FROM ruby:3.1.2-bullseye
RUN apt-get update ; \
@bambooGHT
bambooGHT / m3u8Download.user.js
Last active November 14, 2024 01:53
下载m3u8视频脚本
// ==UserScript==
// @name m3u8Download
// @namespace https://github.com/bambooGHT
// @version 1.2.8
// @description 修复bug
// @author bambooGHT
// @match https://canan8181.com/*
// @match https://rnqq.jp/*
// @match https://kemomimirefle.net/*
// @match https://nicochannel.jp/*
@Artefact2
Artefact2 / README.md
Last active July 12, 2025 09:51
GGUF quantizations overview