Skip to content

Instantly share code, notes, and snippets.

@n-ts
n-ts / worker.js
Created October 3, 2018 20:21
Cloudflare Workers - Load balancing to nearest datacenter from current POP
/*
--------------------------------------------------------
Please note that this grouping is just for example...
You can rearrange POPs, remove or add dacaneters according to your needs.
--------------------------------------------------------
First, we have to get all Cloudflare POP codes (three letter airport codes) from https://www.cloudflarestatus.com/
North America is routed to Chigaco datacenter;
Europe, Africa and Middle East is routed to Amsterdam datacenter;
@LukeZGD
LukeZGD / NekoparaExtraction.md
Last active October 25, 2025 08:13
Nekopara Data Extraction for Vol. 1, 0, 2, 3, 4, and Extra

Nekopara Data Extraction for Vol. 1, 0, 2, 3, 4, and Extra

  • This guide can also be used in other VNs that have the Kirikiri/CatSystem2 engine

Tools Needed:

<?php
//movable.sed_bak is the movable of the old/source 3ds extracted from a backup or wherever
$fileContentOriginal = file_get_contents('movable.sed');
$keyYOriginal = substr($fileContentOriginal, 0x110, 16);
//id0 of the new system that you want to find keyY for
$targetId0 = "ID0 here";
function getId0($keyY) {
$sha = hex2bin(hash("sha256", $keyY));
@hexdefined
hexdefined / jd-gui.sh
Last active September 8, 2024 15:22
Patch JD-GUI to use a dark theme
sed -i '/<lookAndFeel>/{s/javax\.swing\.plaf\.metal\.MetalLookAndFeel/com\.bulenkov\.darcula\.DarculaLaf/}' ~/.config/jd-gui.cfg
java -Dhidpi -Dswing.aatext=true -Dawt.useSystemAAFontSettings=on -jar jd-gui-mod.jar
@bmaupin
bmaupin / nsui-via-wine.md
Last active August 26, 2025 21:11
Run New Super Ultimate Injector with Wine

Installation

Prerequisites

Install NSUI

@LukeZGD
LukeZGD / ios-downgrade-dualboot.md
Last active November 10, 2025 01:38
Downgrade and dualboot status of almost all iOS devices

Downgrade and dualboot status of almost all iOS devices

UPDATED: 2025-09-25

@mh-firouzjah
mh-firouzjah / better_powershell.md
Last active October 3, 2025 16:01
how to add zsh-like theme and feature to windows powershell

Better PowerShell

Theme | History | KeyBinding

MyPowershell

in order to make windows powershell more comfortable and add a some theme and features like history binding, auto complete on keypress and so on, if you have used linux teminl wiht zsh for example, we are going to make powershell like that as much as we can.

What we will achieve

@david50407
david50407 / 00-README.md
Last active August 17, 2021 06:48
Open GitHub in VS Code Remote Repository without cloning repo

Open GitHub repo with VSCode Remote Repository

How to use

Configuration

@krzys-h
krzys-h / Hyper-V GPU-PV with Linux guest.md
Last active November 15, 2025 10:06
Ubuntu 21.04 VM with GPU acceleration under Hyper-V...?

Ubuntu 21.04 VM with GPU acceleration under Hyper-V...?

Modern versions of Windows support GPU paravirtualization in Hyper-V with normal consumer graphics cards. This is used e.g. for graphics acceleration in Windows Sandbox, as well as WSLg. In some cases, it may be useful to create a normal VM with GPU acceleration using this feature, but this is not officially supported. People already figured out how to do it with Windows guests though, so why not do the same with Linux? It should be easy given that WSLg is open source and reasonably well documented, right?

Well... not quite. I managed to get it to run... but not well.

How to do it?

  1. Verify driver support