Skip to content

Instantly share code, notes, and snippets.

View notruri's full-sized avatar

Ruri notruri

View GitHub Profile
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 10, 2025 00:44
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@matthiasr
matthiasr / gpg_wsl2.md
Last active December 9, 2025 11:57
GPG signing with full gpg-agent support in WSL2: the easy way

Problem statement

Signing with GPG in Windows System for Linux (WSL2) does not work smoothly out of the box. Notably, when using a TTY-based pinentry, signing in Visual Studio Code does not work at all.

Solution

  1. Install Gpg4Win: winget install -e GnuPG.Gpg4win or download and install manually
  2. Start Kleopatra and generate or import keys
  3. Insert links to gpg.exe inside of WSL:
@ImagineGamingPlay
ImagineGamingPlay / code.bash
Created December 20, 2021 10:44
Code to put in shell
# Put this code in shell
npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH
@cherryblossom000
cherryblossom000 / Minimum number of levels and bookshelves required for Minecraft enchantments.md
Last active December 3, 2025 23:21
Minimum number of levels and bookshelves required for Minecraft enchantments

Minimum number of levels and bookshelves required for Minecraft enchantments

Last updated: August 2019

I made this for my answer to a question on Arqade/Gaming Stack Exchange.

Enchantment Levels Bookshelves
Aqua Affinity I 0 0
Bane of Arthropods I 5 3
@fnky
fnky / ANSI.md
Last active December 8, 2025 19:43
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27