Skip to content

Instantly share code, notes, and snippets.

@Tonius
Tonius / checkout.py
Created April 29, 2018 12:41
Script for fetching and checking out a bunch of Git repositories at a time (used for CoFH/cofh.github.io)
import os
import sys
from subprocess import Popen, PIPE
from threading import Thread
REPOS = [
'RedstoneFlux',
'CoFHCore',
'CoFHWorld',
'ThermalFoundation',
@Tonius
Tonius / recipe-sheet-add-sprites.py
Last active April 24, 2020 13:24
GIMP plugin that adds new sprites to the Team CoFH website's recipe item sheet
#!/usr/bin/env python
from gimpfu import *
def recipe_sheet_add_sprites(img, layer, sprite_size, sheet_width, x, y):
gimp.progress_init('Adding layers to sheet...')
pdb.gimp_image_undo_group_start(img)
pdb.gimp_context_set_interpolation(INTERPOLATION_NONE)
@Tonius
Tonius / slice-minecraft-animation.py
Last active April 24, 2020 13:23
GIMP plugin that slices a Minecraft animated texture into layers; used for converting them to GIFs
#!/usr/bin/env python
import json
from gimpfu import *
def copy_frame(img, layer, sprite_size, index):
pdb.gimp_image_select_rectangle(img, CHANNEL_OP_REPLACE, 0, index * sprite_size,
sprite_size, sprite_size)
pdb.gimp_edit_copy(layer)
@Tonius
Tonius / navbox-draft.txt
Last active August 27, 2017 18:26
Team CoFH documentation navigation drafts
Thermal Foundation
Guides
Getting started
World
Ores
Copper | Tin | Silver | Lead | Aluminum | Nickel | Platinum | Iridium | Mana Infused
Fluid Ores
Oil Sand | Oil Shale | Destabilized Redstone Ore | Energized Netherrack | Resonant End Stone
Mobs
Blizz | Blitz | Basalz
sites:
tf-docs:
url: '/docs/thermal-foundation/'
mc-wiki:
url: 'https://minecraft.gamepedia.com/'
new-tab: yes
items:
redstone:
name: 'Redstone'

Keybase proof

I hereby claim:

  • I am Tonius on github.
  • I am tonius (https://keybase.io/tonius) on keybase.
  • I have a public key whose fingerprint is 7F3A 5353 6551 E52A BC37 438F 249B 215E DC75 F27B

To claim this, I am signing this object: