This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################### | |
######## 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']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer