Skip to content

Instantly share code, notes, and snippets.

View illnyang's full-sized avatar
🪶
blissful

Illyan Garte illnyang

🪶
blissful
  • traversing the 7 seas
View GitHub Profile
@xmoforf
xmoforf / qb-http2.md
Last active September 28, 2025 00:51
HTTP/2 Thing

Upgrade Qbittorrent HTTP Announces to HTTP/2

Motivation

You probably don't want to do what is described in this document. Seriously consider just leaving things alone.

Because Qbittorrent, and most all torrent clients, still use HTTP/1.1, they typically do not reuse connections for multiple announces of different torrents to the same tracker announce URL. As the number of torrents goes up, there ends up being a lot of traffic back and forth just re-establishing a connection for each announce. This is highly inefficient, and while it is not really a problem for most users, or even most tracker operators, it is something that can start to be noticed at at the tracker level at a very large scale.

Using a more modern protocol, like HTTP/2, addresses this inefficiency by reusing an established connection. Unfortunately, Transmission is really the only torrent client that implements HTTP/2 right now. For Qbittorrent, the issue resides in an underlying library, libtorrent. The issue was raised in 2020,

@namazso
namazso / coff.ksy
Created January 13, 2022 20:41
Kaitai Struct YAML for COFF
meta:
id: coff
title: Common Object Format File
file-extension:
- obj
license: CC0-1.0
ks-version: 0.9
endian: le
doc-ref: https://wiki.osdev.org/COFF
seq:
@huntrar
huntrar / full-disk-encryption-arch-uefi.md
Last active November 7, 2025 22:37
Arch Linux Full-Disk Encryption Installation Guide [Encrypted Boot, UEFI, NVMe, Evil Maid]

Arch Linux Full-Disk Encryption Installation Guide

This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.

Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.

Preface

You will find most of this information pulled from the Arch Wiki and other resources linked thereof.

Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX with /dev/sdX or your device as needed.

@Gnimuc
Gnimuc / Nuklear_and_CImGui.jl
Created February 28, 2019 02:14
Nuklear works along side with CImGui
using Nuklear
using Nuklear.LibNuklear
using Nuklear.GLFWBackend
using CImGui
using CImGui.CSyntax
using CImGui.GLFWBackend
using CImGui.OpenGLBackend
using CImGui.GLFWBackend.GLFW
using CImGui.OpenGLBackend.ModernGL
All albums uploaded to the /jp/ denpa thread since June 2018.
IF A LINK IS DEAD PLEASE CHECK THE LINKS HERE FIRST: https://gist.github.com/dnpcllctns/9424fcc4c80429253d3194251b4a15ed
If it's not there/not available then comment and let me know!
For uploads 2016 - 2018 see https://nyaa.si/view/1068471 or https://gist.github.com/dnpcllctns/9424fcc4c80429253d3194251b4a15ed
June - December 2018:
妄想の旅団 - 古代アイドル!黄泉比良坂88! (FLAC) - https://mega.nz/#F!W8UUVSwJ!1H_Y1fn55w-PqFqP0UUy-g
妄想の旅団 - ゆりゆりやんもえフィーバー (FLAC) - https://mega.nz/#F!ihFCCS7L!0fN-sPmjfW1r76DSW_EQ8w
シルクパラソル collection- https://mega.nz/#F!K91hzIqS!PPuzfXX0neFufLV5-le6Ww
とろ美 ‐ ねぎとろ美 - https://mega.nz/#!qgE01IjJ!C4IV1FwCy81ZqYpRM_AUx1mDeQIag1HvlWjdPyNHJxk
@niklas-ourmachinery
niklas-ourmachinery / reducing-build-times.md
Created January 24, 2019 16:30
Reducing build times by 20 % with a one line change

Reducing build times by 20 % with a one line change

Experimenting a bit with the /d2cgsummary and /d1reportTime flags described by Aras here and here I noticed that one of our functions was consistently showing up in the Anomalistic Compile Times section:

1>	Anomalistic Compile Times: 2
1>		create_truth_types: 0.643 sec, 2565 instrs
1>		draw_nodes: 0.180 sec, 5348 instrs
@zingmars
zingmars / tinc.MD
Last active September 14, 2025 10:19
tinc VPN setup instructions on Windows and Linux

Tinc setup instructions for Ubuntu and Windows. Based on 1 2.

Start here.

  1. sudo apt-get install -y build-essential libncurses5-dev libreadline6-dev libzlcore-dev zlib1g-dev liblzo2-dev libssl-dev
  2. Download and install tinc
    2.1. Download the latest tinc 1.1 source package ( current: wget https://www.tinc-vpn.org/packages/tinc-1.1pre16.tar.gz -O tinc.tar.gz)
    • tar -xf tinc.tar.gz --one-top-level --strip-components=1
    • cd tinc
    • ./configure
@shakesoda
shakesoda / imgui_bgfx.cpp
Last active September 18, 2025 18:10
imgui for bgfx (works with unmodified imgui)
#include <imgui/imgui.h>
#include <SDL2/SDL_syswm.h>
#include "myon/imgui.hpp"
#include "myon/window.hpp"
#include "myon/timer.hpp"
#include "myon/cache.hpp"
#include "math/matrix.hpp"
#include <bgfx/bgfx.h>
#include <imgui/imgui_demo.cpp>
#include <imgui/imgui_lua_bindings.cpp>
@jult
jult / TLS
Last active August 18, 2025 19:25
My nginx include for TLS A+ rating at ssllabs.com/ssltest using freenginx/1.29 and OpenSSL 3.0.1
# version 2025 august 18
ssl_certificate /etc/letsencrypt/live/my.jult.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/my.jult.net/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/my.jult.net/chain.pem;
#ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
# generated using:# openssl dhparam -dsaparam -out /etc/ssl/dh4096.pem 4096
ssl_dhparam /etc/ssl/dh4096.pem;
@wbenny
wbenny / nt_syscalls.md
Last active September 16, 2024 22:11
Windows syscall stubs

Windows system calls

...by stub

x86

Windows XP

B8 ?? ?? ?? ??                mov     eax, ??
BA 00 03 FE 7F                mov     edx, 7FFE0300h