Skip to content

Instantly share code, notes, and snippets.

@Maxty99
Maxty99 / profile.ps1
Last active December 14, 2021 15:44
Powershell Profile
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
# POSH
oh-my-posh --init --shell pwsh --config ~/Documents/Powershell/Modules/oh-my-posh/6.14.0/themes/ohmyposhv3-v2.json | Invoke-Expression
# Icons for lists of files
Import-Module -Name Terminal-Icons
# History AutoComplete
Import-Module PSReadLine
Set-PSReadLineOption -PredictionSource History
@Maxty99
Maxty99 / convert.py
Created August 11, 2021 08:15
Quick python script for converting a buncha random image formats to one. No extensive debugging but should work
import os
import shutil
import tempfile
import logging
from PIL import Image
import concurrent.futures
from math import ceil
import sys
SUPPORTED_EXT = [