Skip to content

Instantly share code, notes, and snippets.

@jordanbray
jordanbray / chia-backup.service
Last active December 16, 2021 21:02
Chia Backup Systemd Service
#
# chia-backup.service
#
# This unit requires manual modification, because the author is lazy.
# You should also have a `chia-backup.timer` file.
# Copy both of these files into /etc/systemd/system
#
# This service takes about 25 minutes on my PC per run.
#
# My node was _easily_ able to keep up with the blockchain during the backup operation.
@jordanbray
jordanbray / installish curse modpack arch linux.sh
Created December 27, 2019 03:11
Install curse modpack on arch linux
# It's up to you to download these files...
yay -S minecraft-launcher cmpdl
# make sure to select jre8 as the java to use...
java -jar forge-1.14.4-28.1.109-installer.jar # Download Here: https://files.minecraftforge.net/
# Yeah, you need to use a different java I think...
/usr/lib/jvm/java-8-jre/jre/bin/java -jar /opt/cmpdl/cmpdl.jar
# Select the zip file you downloaded, and a folder, herein referred to as 'folder'
minecraft-launcher
@jordanbray
jordanbray / blocks.py
Created August 23, 2019 18:08
Determine if a point is inside a boundary using rays and heuristics
from datetime import datetime
class Ray:
# Create a Ray iterator
# It iterates starting at start, and goes in some direction, on block at a time
def __init__(self, start, direction):
self.start = start
self.direction = direction
self.t = float(0)