Skip to content

Instantly share code, notes, and snippets.

View technorav3nn's full-sized avatar
😎
im so cool

Death_Blows technorav3nn

😎
im so cool
  • United States
  • 07:49 (UTC -05:00)
View GitHub Profile
import hmac
import base64
import urllib.parse
import requests
import time
# Supercell ID "Request Forgery Protection" bypass by danyanull, 2025
# I know this code is holy crap but it's made as a PoC just for fun in about 2 hours
# Updates:
@Widdershin
Widdershin / ssr.md
Last active May 1, 2024 17:36
The absurd complexity of server-side rendering

In the olden days, HTML was prepared by the server, and JavaScript was little more than a garnish, considered by some to have a soapy taste.

After a fashion, it was decided that sometimes our HTML is best rendered by JavaScript, running in a user's browser. While some would decry this new-found intimacy, the age of interactivity had begun.

But all was not right in the world. Somewhere along the way, we had slipped. Our pages went uncrawled by Bing, time to first meaningful paint grew faster than npm, and it became clear: something must be done.

And so it was decided that the applications first forged for the browser would also run on the server. We would render our HTML using the same logic on the server and the browser, and reap the advantages of both worlds. In a confusing series of events a name for this approach was agreed upon: Server-side rendering. What could go wrong?

In dark rooms, in hushed tones, we speak of colours.

@favna
favna / subcommands-with-manager-property.ts
Last active April 10, 2022 20:45
[REVISION 2] Sapphire Subcommands v3 for framework v3
import type { Args, ChatInputCommand, MessageCommand } from '@sapphire/framework';
import {
ChatInputSubcommandGroupMappings,
ChatInputSubcommandMappings,
MessageSubcommandGroupMappings,
MessageSubcommandMappings,
SubCommand,
SubcommandMappingsArray
} from '@sapphire/plugin-subcommands';
import type { CommandInteraction, Message } from 'discord.js';
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active November 30, 2025 20:59
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
@ghostrider-05
ghostrider-05 / discord_app_protocols.md
Last active December 4, 2025 22:51
An unofficial list of discord app protocol routes

Discord app protocol routes

Home:

  • /: discord://-/
  • friends: discord://-/channels/@me/
  • nitro: discord://-/store
  • shop: discord://-/shop
  • message requests: discord://-/message-requests
  • family centre: discord://-/family-center
@technorav3nn
technorav3nn / filters.ts
Created August 24, 2021 12:35
Filters for lavalink
const reset = {
op: "filters",
};
const vaporwave = {
op: "filters",
equalizer: [
{ band: 1, gain: 0.3 },
{ band: 0, gain: 0.3 },
],
timescale: { pitch: 0.5 },

How to setup a practically free CDN using Backblaze B2 and Cloudflare

⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,

Exploiting Lua 5.1 on 32-bit Windows

The following Lua program generates a Lua bytecode program called ignore-unsigned-sga.fnt, which in turn loads a DLL from within an extremely locked down Lua 5.1 sandbox in a program called RelicCOH2.exe. The remainder of this document attempts to explain how this program works by a whirlwind tour of relevent bits of the Lua 5.1 virtual machine.

if string.dump(function()end):sub(1, 12) ~= "\27Lua\81\0\1\4\4\4\8\0" then
  error("This generator requires a 32-bit version of Lua 5.1")
end

local function outer()
  local magic -- In bytecode, the stack slot corresponding to this local is changed