Skip to content

Instantly share code, notes, and snippets.

View mcd1992's full-sized avatar
🦀
How2Rust?

Aaron mcd1992

🦀
How2Rust?
View GitHub Profile
@cheahjs
cheahjs / README.md
Last active February 11, 2024 01:13
Converting PalWorld saves to JSON and back
@subrezon
subrezon / openwrt-on-proxmox.md
Created February 15, 2023 14:56
How to set up an OpenWRT VM in Proxmox
  1. Go to OpenWRT release page, select the latest release stable release, then targets -> x86 -> 64. Right-click generic-ext4-combined.img.gz (not the "efi"!) and copy the link.

  2. On the Proxmox host, download the archive and unpack it:

wget *paste link here*
gunzip openwrt-*.img.gz
  1. Resize the image to be the size you want your VM's disk to be (example with 8 GiB):
@catboxanon
catboxanon / README.md
Last active November 9, 2024 18:03
/hdg/ catbox.moe userscript

/hdg/ catbox.moe userscript

This userscript adds functionality to upload to Catbox directly from 4chan, and to view metadata for Stable Diffusion, TavernAI, and NovelAI, in PNGs, JPEGs, and WebPs.

Prerequisites

You will need both a userscript extension and 4chanX.

# Script for converting a HF Diffusers saved pipeline to a Stable Diffusion checkpoint.
# *Only* converts the UNet, VAE, and Text Encoder.
# Does not convert optimizer state or any other thing.
# Written by jachiam
import argparse
import os.path as osp
import torch
@alexander-hanel
alexander-hanel / bn-cheat.md
Last active November 15, 2024 19:43
Cheat Sheet for Binary Ninja
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active October 31, 2024 21:33
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
@feldim2425
feldim2425 / steamvr_dev.md
Created July 23, 2021 19:46
How to debug SteamVR Drivers on Linux

SteamVR Driver Dev (Linux)

Installing your driver

To install your driver on Linux you have to drop it into $STEAM_HOME/steamapps/common/SteamVR/drivers where STEAM_HOME depends on your Steam settings and distro. Usually it is located at ~/.steam or ~/.local/share/Steam. However it can also be located on an external drive depending on where SteamVR is installed.

The in the drivers folder you have to drop a folder named after your module. This folder has to contain the following structure:

driver/
 ├─ example/
 │ ├─ bin /
@x0nu11byt3
x0nu11byt3 / elf_format_cheatsheet.md
Created February 27, 2021 05:26
ELF Format Cheatsheet

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@zmike
zmike / WineReload.py
Last active February 4, 2024 01:54
WineReload.py
from __future__ import print_function
import gdb
import subprocess
import sys
import re
import os.path
class WineReload (gdb.Command):
@stonar96
stonar96 / Anti-Xray.md
Last active September 16, 2024 13:12
Recommended Paper Anti-Xray settings by stonar96

❗ This has been moved to the official PaperMC docs ❗

Link: https://docs.papermc.io/paper/anti-xray

Help: https://discord.gg/papermc






Recommended Paper Anti-Xray settings by stonar96

General

Anti-Xray can be configured per world in the paper.yml configuration file. To understand how per world configuration works please read this first. Note that after changing any settings for Anti-Xray you have to restart your server. Executing the /reload command (you should never do this) won't apply the settings to worlds that are already loaded.