Skip to content

Instantly share code, notes, and snippets.

/**
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.

As of around March 20th, 2025, the volumeStoreDownloadProduct endpoint (required to download removed apps) has changed and now has a tendancy to not work sometimes. There is not any noticable pattern as to what apps work or not but note that there is a high likelyhood this tutorial may not work.

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

@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 August 12, 2024 05:08
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
Created August 24, 2022 21:55
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);
@Spartelfant
Spartelfant / colors.js
Last active September 23, 2024 20:52
Bitburner ns2 script: a quick reference to all colors, printed to the terminal (at https://imgur.com/a/VtebvCM you can view a screenshot of the script in action)
/**
* Updated for game version 2.4.0
*/
/** @param {NS} ns */
export async function main(ns) {
ns.disableLog(`ALL`); // Failures are still logged, this just prevents unnecessary log spam.
ns.tprintf(`\x1b[1;35mUsing colors in script output with \x1b[1;36mtprint\x1b[1;35m & \x1b[36;1mtprintf\x1b[1;35m (terminal) and \x1b[36;1mprint\x1b[1;35m & \x1b[1;36mprintf\x1b[1;35m (log)`);
@dbiesecke
dbiesecke / docker-compose.yml
Last active November 15, 2024 16:42
RClone Docker Compose file - with rcd & additional options
version: '3.5'
networks:
default:
name: rclone
driver: "bridge"
services:
rclone:
@leonjza
leonjza / countips.py
Created August 24, 2022 09:15 — forked from joswr1ght/countips.py
Read a file of network + CIDR masks, one per line; count the number of IP addresses it represents
#!/usr/bin/env python3
#
# original: https://gist.github.com/joswr1ght/595d49d5a7914cf7305b73512f37186a
import sys
def countips(netblock):
v = netblock.split('/')
# nothing?