This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Stolen from chatgpt | |
#include <stdbool.h> | |
#include <stddef.h> | |
#include <stdint.h> | |
bool has_invalid_utf8(const char *s) | |
{ | |
const uint8_t *p = (const uint8_t *)s; | |
while (*p != '\0') { | |
if (*p < 0x80) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <inttypes.h> | |
#include <time.h> | |
time_t days_to_seconds(uint32_t days) | |
{ | |
return days * 24 * 60 * 60; | |
} | |
time_t hours_to_seconds(uint32_t hours) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import urllib | |
import re | |
import argparse | |
import logging | |
logging.basicConfig(level=logging.INFO) | |
logger = logging.getLogger("getversion") | |
PLAY_URL_FMT_STR = "https://play.google.com/store/apps/details?id=%s&hl=%s&gl=%s" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Locates the x and z coordinates of the Valheim vendor and prints them | |
to console. | |
""" | |
import struct | |
import sys | |
import argparse | |
#VENDOR_ID = b"Meteorite" # ashlands | |
#VENDOR_ID = b"Eikthyrnir" # first boss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Attempts to download the specified jenkins plugin and all of its dependencies. | |
""" | |
import subprocess | |
import os | |
import re | |
import requests | |
import argparse | |
import logging | |
import zipfile |