Skip to content

Instantly share code, notes, and snippets.

View EvilSupahFly's full-sized avatar
🧙‍♂️
Trying to make Flatpak and Python play nice with Amulet

EvilSupahFly EvilSupahFly

🧙‍♂️
Trying to make Flatpak and Python play nice with Amulet
View GitHub Profile
@EvilSupahFly
EvilSupahFly / system_info.txt
Last active March 26, 2017 19:43
Blackbeast - Low-latency Kernel
System: Host: black-beast Kernel: 4.10.1-041001-lowlatency x86_64 (64 bit gcc: 6.2.0)
Desktop: Cinnamon 3.2.7 (Gtk 3.18.9) dm: mdm Distro: Linux Mint 18.1 Serena
Machine: Mobo: ASUSTeK model: P5B v: Rev 1.xx Bios: American Megatrends v: 2104 date: 03/09/2009
CPU: Quad core Intel Core2 Quad Q6600 (-MCP-) cache: 4096 KB
flags: (lm nx sse sse2 sse3 ssse3 vmx) bmips: 19216
clock speeds: min/max: 1596/2394 MHz 1: 1596 MHz 2: 1596 MHz 3: 1596 MHz 4: 1596 MHz
Graphics: Card: Advanced Micro Devices [AMD/ATI] Turks XT [Radeon HD 6670/7670]
bus-ID: 01:00.0 chip-ID: 1002:6758
Display Server: X.Org 1.18.4 drivers: ati,radeon (unloaded: fbdev,vesa)
Resolution: [email protected]
@EvilSupahFly
EvilSupahFly / Overviewer Config
Last active May 2, 2017 17:26
Overviewer Render Error
#########################################################
######## https://gist.github.com/aperson/2644002 ########
#########################################################
worlds["Resquer"] = "/home/seann/minecraft_server/Chateau de Resquer_venture Server"
processes = 8
def cauldronFilter(poi):
if poi['id'] == "Cauldron":
return "Brew Stand with %s" % len(poi['Items'])
@EvilSupahFly
EvilSupahFly / Overviewer-Config.py
Created May 2, 2017 17:42
Modified Overviewer Config
def playerIcons(poi):
# '''This finds the players and formats the popup bubble a bit. TODO: Work in health, armor, and hunger'''
def meterHelper(meter, icon, reversed=False, spacer=False):
# '''Helper function for playerFilter() that builds a pretty bar for hunger/armor/health/etc.
# We're going to make the assumption that for every icon, there is the equivalent half_icon,
# and empty_icon.'''
if spacer:
empty = 'blank.gif'
else:
@EvilSupahFly
EvilSupahFly / .bashrc
Last active October 9, 2024 05:11
Python Virtual Environment Manager using PythonZ
RESET="\033[0m" # Normal
RED="\033[1m\033[1;31m" # Red
GREEN="\033[1m\033[1;32m" # Green
WHITE="\033[1m\033[1;37m" # White
pyvenv() {
local venv_name=${1:-$(read -p "Enter the virtual environment name: " name && echo "$name")}
local venv_home="$HOME/python-virtual-environs/$venv_name"
if [[ -z "$venv_name" ]]; then
@EvilSupahFly
EvilSupahFly / cow_bsod.txt
Created February 3, 2025 23:53
COW Program for Windows XP BSOD Simulation
MoO MoO moO MoO MoO MoO MoO MoO
MoO MoO moO MoO MoO MoO MoO MoO
MoO MoO moO MoO MoO MoO MoO MoO
MoO MoO moO MoO MoO MoO MoO MoO
MoO MoO moO MoO MoO MoO MoO MoO
MoO MoO moO MoO MoO MoO MoO MoO
MoO MoO moO MoO MoO MoO MoO MoO
MoO MoO moO MoO MoO MoO MoO MoO
moO
MOo "A problem has been detected and Windows has been shut down to prevent damage to your computer."
@EvilSupahFly
EvilSupahFly / install_v7.sh
Last active February 12, 2025 18:41
Install Script (version 7)
#!/usr/bin/env bash
# Function to check if colour output is supported (Canadian spelling!)
supports_colour() {
if [ -t 1 ] && command -v tput &> /dev/null; then
local colours
colours=$(tput colors 2>/dev/null)
if [[ -n "$colours" && "$colours" -ge 8 ]]; then
return 0 # Colour support detected
fi
@EvilSupahFly
EvilSupahFly / install_v2.sh
Created February 11, 2025 03:26
install_v2.sh
#!/bin/bash
#
# This is nearing the final evolution of my Game Installer Script. Command-line parameters are now optional,
# I've added colour to the output, the logic has been tweaked out a bit so now the script will check for WINE,
# and attempt to install it, should it not be found, and I've also added commentary to each section to explain
# what it all does and added extensive error handling. As far as features go, I was thinking of making both the
# MSVC redist and Vulkan functions which could be called independently of actually performing an install with
# a command-line parameter, but I don't really see the need at this point.
IFS=$'\n'
@EvilSupahFly
EvilSupahFly / resource_pack.py
Last active March 19, 2025 02:51
resource_pack.py
import os, json
import logging
from minecraft_model_reader.api.resource_pack.base import BaseResourcePack
# Define TRACE level before Amulet initializes logging
TRACE_LEVEL = 5
logging.addLevelName(TRACE_LEVEL, "TRACE")
# Attach a custom trace method to all loggers
#def trace(self, message, *args, include_traceback=False, **kwargs):
# """Custom trace logging function."""
# if include_traceback:
@EvilSupahFly
EvilSupahFly / rebuild.sh
Created March 16, 2025 00:07
rebuild.sh
#!/bin/bash
# Check if terminal supports colour output
supports_colour() {
if [ -t 1 ] && command -v tput &> /dev/null; then
local colours
colours=$(tput colors 2>/dev/null)
if [[ -n "$colours" && "$colours" -ge 8 ]]; then
return 0 # Colour support detected
fi
@EvilSupahFly
EvilSupahFly / download_resources.py
Last active March 19, 2025 02:56
download_resources.py
import os, shutil
import zipfile
import json
from urllib.request import urlopen, Request
import io
from typing import Generator, TypeVar, Any, Optional
import logging
from minecraft_model_reader.api.resource_pack import JavaResourcePack