Skip to content

Instantly share code, notes, and snippets.

@Chooks22
Chooks22 / 0_index.ts
Last active March 3, 2024 18:53
TypeScript Pascal Case to Screaming Snake Case
type PascalToScreamingSnake<T extends string, TInit = true, TMulti = false> = T extends `${infer Head}${infer Rest}`
? `${
TInit extends true
? Uppercase<Head>
: Head extends Uppercase<Head>
? TMulti extends false
? `_${Head}`
: Rest extends `${infer Next}${string}`
? Next extends Uppercase<Next>
? Head
@Chooks22
Chooks22 / kemono-party-downloader.user.js
Last active July 11, 2024 17:05
Bulk Downloader for Kemono.Party
// ==UserScript==
// @name Download Post
// @namespace http://kemono.su/
// @version 4.1.0
// @description Download kemono.su posts as zip files.
// @updateURL https://gist.githubusercontent.com/Choooks22/6f28904bebe7f7cdc0a2a2b4cf6a6df1/raw
// @downloadURL https://gist.githubusercontent.com/Choooks22/6f28904bebe7f7cdc0a2a2b4cf6a6df1/raw
// @author Chooks22 <chooksdev@gmail.com> (https://github.com/Choooks22)
// @match https://kemono.su/*/user/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=kemono.su
@Chooks22
Chooks22 / koikatsu-linux-howto.md
Last active July 16, 2024 02:03
How To Run Koikatsu in Linux using Bottles

How To Run Koikatsu in Linux using Bottles

Installing Bottles

Bottles is a Graphical Frontend for managing your Wine Applications.

Basically it's an app that allows you to click buttons to play games instead of typing random commands you don't understand that you copy-pasted from the internet into your terminal.

For Ubuntu-based distros (apt install)

@Chooks22
Chooks22 / kemono-party-cache.user.js
Last active August 26, 2022 14:25
Cache Creators for Kemono.Party
// ==UserScript==
// @name Cache Creators for Kemono.Party
// @namespace https://kemono.party/
// @version 1.0.4
// @description Intercept API call to cache creator data and speed up search index load times.
// @updateURL https://gist.githubusercontent.com/Choooks22/714d98e8125990a41f17ea58055e60d2/raw
// @downloadURL https://gist.githubusercontent.com/Choooks22/714d98e8125990a41f17ea58055e60d2/raw
// @author Chooks22 <chooksdev@gmail.com> (https://github.com/Choooks22)
// @match https://kemono.party/artists
// @icon https://kemono.party/favicon.ico