Skip to content

Instantly share code, notes, and snippets.

@hexparrot
hexparrot / node-posix-bsd93.sh
Last active December 17, 2015 17:04
Building node-posix on FreeBSD 9.3
#!/bin/sh
test_command() {
eval $1
RET=$?
echo ""
if [ $RET -eq 0 ]; then
echo "COMMAND OK: $1"
else
echo "COMMAND FAILED: $1"
@hexparrot
hexparrot / mtga_opening_hand.py
Created May 10, 2019 00:02
MTG:A Opening Hand Land Simulator
#!/usr/bin/env python3
__author__ = "Will Dizon"
__license__ = "Public Domain"
__version__ = "0.0.1"
__email__ = "[email protected]"
import numpy as np
from scipy.stats import hypergeom
from collections import Counter
@hexparrot
hexparrot / finder.py
Created March 12, 2021 17:59
Valheim Coord Finder
#!/usr/bin/env python3
from collections import namedtuple, defaultdict
Coord = namedtuple('Coord', 'x y z')
def byte_to_coord(bytestr, start_pos):
x = slice(start_pos+0, start_pos+4)
z = slice(start_pos+4, start_pos+8)
y = slice(start_pos+8, start_pos+12)
@hexparrot
hexparrot / populate_qube.sh
Created June 4, 2021 05:35
Easily recreate template qube upon new distro release
#!/bin/bash
# Currently known-working with Fedora 33
#brave
dnf install -y dnf-plugins-core
dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/
rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
dnf install -y brave-browser