Skip to content

Instantly share code, notes, and snippets.

View notsatvrn's full-sized avatar

satvrn (inactive account) notsatvrn

View GitHub Profile
from base64 import b64encode
from os import path
url = input('Input your gdps url (without the / at the end). Reference:\nhttp://www.boomlings.com\nhttp://www.boomlings.com/database\n')
to_replace = 'http://www.boomlings.com'
while len(url) != 24 and len(url) != 33:
print(f'wrong size ({len(url)}), needs to be either 24 or 33')
url = input()
@orlp
orlp / ipow.c
Last active October 1, 2025 15:06
int64_t ipow(int64_t base, uint8_t exp) {
static const uint8_t highest_bit_set[] = {
0, 1, 2, 2, 3, 3, 3, 3,
4, 4, 4, 4, 4, 4, 4, 4,
5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5,
6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 255, // anything past 63 is a guaranteed overflow with base > 1