Skip to content

Instantly share code, notes, and snippets.

View JoshuaVandaele's full-sized avatar
💙

Joshua Vandaële JoshuaVandaele

💙
View GitHub Profile
@JoshuaVandaele
JoshuaVandaele / BoxCli.py
Last active October 28, 2022 20:43
Simple tool allowing me to print pretty boxes to the CLI
from __future__ import annotations
class BoxCli():
def __init__(self: BoxCli, title: str = "", width: int = 0, lines: list[str] = [], _parent_width: int = 0) -> None:
self.__width: int = (width if width > len(title) else len(title))+4
self.title: str = title
self.lines: list[str] = lines
self._parent_width: int = _parent_width
self._child: BoxCli | None = None
@JoshuaVandaele
JoshuaVandaele / IPCensorship.py
Created September 13, 2021 17:22
Censors IPs from a minecraft logs folder
import sys
import os
import re
import gzip
### ARGUMENTS ###
if not len(sys.argv) == 2: # No arguments given
print("""
help: python IPCensorship.py [DIRECTORY] <Replacement String>
@JoshuaVandaele
JoshuaVandaele / FreeGamesGrab.js
Last active October 26, 2020 03:15
Grabs all free game's app ids in Steam, requires steam inventory helper to check if you already have the game or not, but not obligatory
//Use on https://store.steampowered.com/search/
//By Folfy Blue
function startLoadingGames() {
var scroll = setInterval(function(){ window.scrollBy(0,1000000); }, 1000); //load new games by scrolling down
}
function listFreeGames() {
for(var i = 0; i < 10000; i++) {
window.clearInterval(i);
return {
["regional_indicator_a"] = "",
["regional_indicator_b"] = "🇧",
["regional_indicator_c"] = "🇨",
["regional_indicator_d"] = "🇩",
["regional_indicator_e"] = "🇪",
["regional_indicator_f"] = "🇫",
["regional_indicator_g"] = "🇬",
["regional_indicator_h"] = "🇭",
["regional_indicator_i"] = "🇮",