Skip to content

Instantly share code, notes, and snippets.

View arm64v9a's full-sized avatar
:octocat:
¯\_(ツ)_/¯

Dead Angel arm64v9a

:octocat:
¯\_(ツ)_/¯
View GitHub Profile
@oldnomad
oldnomad / rustore.md
Created October 21, 2024 18:37
RuStore API

RuStore API for application installation

  • URL for human-readable application info page has format https://www.rustore.ru/catalog/app/{packageName}.
  • Application info as a JSON object is available at URL https://backapi.rustore.ru/applicationData/overallInfo/{packageName}.
  • APK reference URL is https://backapi.rustore.ru/applicationData/download-link. It accepts only POST requests (see below).

Application info

Application info JSON object has following fields:

  • code: contains string OK (on success).
@spvkgn
spvkgn / capture_tls_quic.py
Last active October 13, 2025 14:35
Capture TLS ClientHello / QUIC Initial
#!/usr/bin/env python3
"""
capture_tls_quic.py — Capture TLS ClientHello and QUIC Initial
-t : capture TLS ClientHello (default)
-q : capture QUIC Initial
-a : capture both (TLS + QUIC)
"""
from __future__ import annotations
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active November 3, 2025 02: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:
@tkrotoff
tkrotoff / #calculator.ts
Last active October 1, 2025 13:29
Calculator function using shunting yard algorithm and reverse Polish notation (RPN)
// https://gist.github.com/tkrotoff/b0b1d39da340f5fc6c5e2a79a8b6cec0
// WTF!
// parseFloat('-0') => -0 vs parseFloat(-0) => 0
// -0 === 0 => true vs Object.is(-0, 0) => false
const minus0Hack = (value: number) => (Object.is(value, -0) ? '-0' : value);
export const operators: {
[operator: string]:
| {
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active September 30, 2025 23:23
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
@25b3nk
25b3nk / simple_log.cpp
Last active October 19, 2025 07:41
C/C++ - printf() wrapper in macro
#include <stdio.h>
#define GET_MACRO(_1,_2,NAME,...) NAME
/**
* @brief Info logs
*
*/
// prints date, time, tag name, INFO in bold green color before actual message
#define LOGI2(tag, ...) printf("%s %s [%s]", __DATE__, __TIME__, tag); printf(" \033[1;32mINFO\033[0m "); printf(__VA_ARGS__); fflush(stdout);
@ancientGlider
ancientGlider / keenetic_auth.py
Last active October 18, 2025 05:20
Authentication for Keenetic routers for work with CLI via REST API (Python)
# -*- coding: utf-8 -*-
"""
Данные с адресом, логином, паролем хранятся в конфигурационном файле следующего вида:
[Router]
ip_addr = 192.168.1.1:8080
login = admin
passw = anyPassword
@tfeldmann
tfeldmann / duplicates.py
Last active August 3, 2025 18:52
Fast duplicate file finder written in python
#!/usr/bin/env python
"""
Fast duplicate file finder.
Usage: duplicates.py <folder> [<folder>...]
Based on https://stackoverflow.com/a/36113168/300783
Modified for Python3 with some small code improvements.
"""
import os
import sys
@fnky
fnky / ANSI.md
Last active November 2, 2025 14:27
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@Lonami
Lonami / mc-ping.py
Last active June 24, 2024 17:35
Python Minecraft Server Pinger
import struct
import socket
import base64
import json
import sys
class Server:
def __init__(self, data):
self.description = data.get('description')