Skip to content

Instantly share code, notes, and snippets.

import os
import pickle
import time
import glob
import joblib
import inspect
from loguru import logger
def persist_to_file():
@mrange
mrange / thindal.hlsl
Created September 11, 2022 10:38
Thindal Windows Terminal
#define WINDOWS_TERMINAL
Texture2D shaderTexture;
SamplerState samplerState;
// --------------------
#if defined(WINDOWS_TERMINAL)
cbuffer PixelShaderSettings {
float Time;
float Scale;
@dev-king21
dev-king21 / coalesce-11-phosphorescence-5.markdown
Created September 10, 2022 12:02
Coalesce 11 - Phosphorescence 5
/**
All Ansi color code constants that are valid in Bitburner
nano functions/color.js
*/
export const Color = {
black: "\x1b[30m",
red: "\x1b[31m",
green: "\x1b[32m",
yellow: "\x1b[33m",
blue: "\x1b[34m",

Download .ipa files removed from purchased tab.

Due to various reasons (such as Apple developer account termination), apps you had previously purchased can no longer be downloaded from the App Store or iTunes. However, it turns out these applications can still be accessed. Third party .ipa downloading tools such as iMazing, ipatool, and ipatool-py use a special endpoint that allows downloading removed apps.

This app must have been purchased on your Apple ID beforehand. You cannot download any app ever made. Apple only lets you download apps you had bought or downloaded in the past.

I reccomend using the ipatool-py method, because it is easier. However, if you are unable to use it, I have left the original iMazing method for you to follow.

Requirements for this tutorial:

@acheong08
acheong08 / excel-to-sqlite.py
Last active September 21, 2022 20:58
Convert excel to SQLite database
# This program takes an excel documents and maps it to a sqlite database.
# It is designed to be used with the excel-to-sqlite.xlsx template.
#
import sqlite3
import xlrd
import sys
import logging
import openpyxl
def useOPENPYXL(excelFile, sqliteFile):
@nberlette
nberlette / README.md
Last active December 2, 2022 04:06
Animated SVG 😎

Animated SVG 😎

No JavaScript. No CSS. Pure SVG Animations.

@greed9
greed9 / generate_pings.sh
Created August 28, 2022 23:45
Programs to map values for ping times into color values and meter setting
#!/bin/bash
# pings specified host once, greps out latency
# usage:
# generate_pings.sh <host> <ping_time_limit>
host=$1
ping_scale_limit=$2
ping_time=$(ping -c1 $host | grep from | cut -d '=' -f 4 | cut -d " " -f 1)
printf "%3.0f 0 %3.0F 0 255\n" $ping_time $ping_scale_limit
@JoeBlakeB
JoeBlakeB / MapGenieDownloader.py
Last active May 8, 2025 03:45
Download maps from mapgenie.io
#!/usr/bin/env python
#
# MapGenieDownloader.py - v2.1
#
# Copyright (C) 2022 Joe Baker (JoeBlakeB)
# This program is free software under the GPLv3 license.
#
# Download a high resolution maps from mapgenie.io
# May not work on all games, only tested with tarkov and forza
#
@lelandbatey
lelandbatey / cmdinfo.c
Last active June 10, 2025 18:37
Prints a detailed view of all arguments. When you're confused about args, substitute in `cmdinfo` for a hex dump of every arg.
// Compile with:
// gcc ./cmdinfo.c -lm -o cmdinfo
#include <stdio.h> /* printf(), fprintf() */
#include <string.h> /* strcmp() */
#include <math.h> /* log10(), ceil() */
// fwd decl to cease warnings
int print_arguments(FILE* outf, int argc, char *const *argv);
int xxdline(int lineno, char* input, int inputlen, char* outbuf);