Skip to content

Instantly share code, notes, and snippets.

@jessfraz
jessfraz / boxstarter.ps1
Last active July 7, 2024 22:46
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@alxbl
alxbl / type08.py
Last active October 22, 2020 07:52
Encoder for TES Arena's MIF file format (type08) records
# This script provides a rudimentary data encoding algorithm for
# type08 records in MIF files.
#
# It's not exactly Huffman-coding or adaptative Huffman coding, but it
# behaves very similar. The developers call it "Delta Mode"
#
# @author alxbl (alex@segfault.me)
#
# https://en.wikipedia.org/wiki/File:Huffman_coding_visualisation.svg
from sys import exit