Skip to content

Instantly share code, notes, and snippets.

View NotNite's full-sized avatar
πŸ’œ
let's build cuteware!

Jules NotNite

πŸ’œ
let's build cuteware!
View GitHub Profile
@s5bug
s5bug / 01a.md
Last active May 9, 2024 03:41
Advent of Code solved in Hex Casting

Accepts input as a list of UTF-32 codepoints and returns a Number.

High-Level

let isNewline: Number -> Boolean =
  (x: Number) -> x == 10

let isDigit: Number -> Boolean =
  (x: Number) -> (x >= 48) && (x < 58)
@snightshade
snightshade / gshade_to_reshade_guide.md
Last active June 30, 2024 00:56
GShade -> ReShade migration guide for FFXIV
@S-trace
S-trace / idafix.md
Last active June 4, 2024 13:00 — forked from 2igosha/idafix.md
Fix IDA 7.5/7.6/7.7SP1 crashing on idapython3.dll in Wine

Description

For some reason IDA executes FreeLibrary() to the plugin immediately after getting its PLUGIN structure's address, so later invocations of the plugin lead to calls to nowhere (that was supposed to be python3.dll). Simply patching the location of the FreeLibrary() call fixes the issue. The location is easy to find: go by cross-references to a place where the call to FreeLibrary is followed by a reference to the string "%s: incompatible plugin version..." and NOP it away.

7.5

@legowerewolf
legowerewolf / readme.md
Last active April 7, 2024 02:13
Tailscale on Steam Deck
@Cynosphere
Cynosphere / sourcequery.js
Last active March 18, 2025 01:03
sourcequery nodejs
const dgram = require("dgram");
const ip = process.argv[2];
const port = process.argv[3] || 27015;
if (!ip) {
console.log("giv ip");
process.exit(1);
}
@WamWooWam
WamWooWam / .net-standard-2.0-uwp.md
Last active February 12, 2025 16:17
How to use .NET Standard 2.0 under UWP <= 10.0.15063

Enabling .NET Standard support on UWP apps targeting 15063 or below is relatively simple.

Step 1

Set your project's TargetPlatformMinVersion to anything above 15063, for this I've always used 16299 but other SDKs should work the same way

step-1

Step 2

Open your .csproj file in a text editor (right click, "Unload project", right click again, "Edit project file"), and add the following 2 lines to the first property group.

@UtsuhoRocks
UtsuhoRocks / thelounge-lcd.css
Created June 22, 2020 20:08
My "The Lounge" web based irc client theme
/*
TTY, A The Lounge Theme bodged together by
β–‘β–ˆβ–‘β–ˆβ–‘β–€β–ˆβ–€β–‘β–ˆβ–€β–€β–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–€β–ˆ
β–‘β–ˆβ–‘β–ˆβ–‘β–‘β–ˆβ–‘β–‘β–€β–€β–ˆβ–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–€β–ˆβ–‘β–ˆβ–‘β–ˆ
β–‘β–€β–€β–€β–‘β–‘β–€β–‘β–‘β–€β–€β–€β–‘β–€β–€β–€β–‘β–€β–‘β–€β–‘β–€β–€β–€
β–‘β–ˆβ–€β–„β–‘β–ˆβ–€β–ˆβ–‘β–ˆβ–€β–€β–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–€β–€
β–‘β–ˆβ–€β–„β–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–‘β–‘β–‘β–ˆβ–€β–„β–‘β–€β–€β–ˆ
β–‘β–€β–‘β–€β–‘β–€β–€β–€β–‘β–€β–€β–€β–‘β–€β–‘β–€β–‘β–€β–€β–€
Needs "One Dark" theme because based upon that,
"npm install thelounge-theme-onedark"
@basoro
basoro / proxmox-proxy
Created May 25, 2019 20:45
Running Proxmox behind a single IP address
I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables.
What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding.
Network configuration
Here’s how it’s done:
Create a virtual interface that serves as the gateway for your VMs:
@twilight-sparkle-irl
twilight-sparkle-irl / rtpin.js
Last active March 30, 2025 18:51
pin retweets on twitter ----> ----> !! YOU NEED TO BE ON THE OLD LAYOUT, GET GoodTwitter !! <---- <----
$(document).ajaxComplete((e, x, o) => {
if (o.url == "https://api.twitter.com/1.1/statuses/retweet.json") {
tweet_id = JSON.parse(x.responseText)['id_str'];
auth_token = JSON.parse(document.querySelector('#init-data').value)['formAuthenticityToken'];
fetch("https://twitter.com/i/tweet/pin", {
body: `authenticity_token=${auth_token}&id=${tweet_id}`,
method: "POST",
headers: {
Accept: "application/json, text/javascript, */*; q=0.01",
"Cache-Control": "no-cache",
@troyfontaine
troyfontaine / readme.md
Last active April 18, 2025 13:58
Resize root partition (or how to remove the default /home partition) on CentOS 7 online

Resize root partition (or how to remove the default /home partition) on CentOS 7 online

This process requires that you are able to ssh OR log in locally using the root user account and that no services be running as users out of /home on the target machine.

The examples are from a default installation with no customization-you NEED to know what you're working with for volumes/partitions to not horribly break things.

By default, CentOS 7 uses XFS for the file system and Logical Volume Manager (LVM), creating 3 partitions: /,/home and swap.

NOTE: If you want to be sure that nothing is writing to /home you can either modify the host to boot into single-user mode OR try to use the systemctl isolate runlevel1.target command to switch (not tested! should work).