Skip to content

Instantly share code, notes, and snippets.

View z's full-sized avatar

Tyler "-z-" Mulligan z

  • everywhere
View GitHub Profile
@z
z / screenshot-all-maps.sh
Last active December 5, 2022 20:07
Xonotic, screenshot all maps
#!/usr/bin/env bash
# Use Xvfb to open a xonotic client and take 9 screenshots
# z@xnz.me
export DISPLAY=:1.0
# Customize
DIMENSIONS=1920x1080
XONOTIC_DIR=~/.xonotic/
XONOTIC_GAME=data_dl
@z
z / gource.sh
Created January 31, 2018 00:53
a gource wrapper for Xonotic's repository structure written in bash
#!/usr/bin/env bash
# name: gource.sh
# version: 0.2.0
# A convenience wrapper for visualizing Xonotic's git commits via gource.
# Copyright 2018 Tyler "-z-" Mulligan (z@xnz.me), MIT License
# Requires gource: https://github.com/acaudwell/Gource and GNU's sed
# [!] This script expects to live in xonotic's misc/tools directory
set -e
@z
z / io_export_md3.py
Created February 27, 2017 15:30
Mirror of the latest md3 export script that works with blender 2.78b
#Updates for Blender 2.6X by Derek McPherson
# Credits: https://forums.duke4.net/topic/5358-blender-27-md3-export-script/
bl_info = {
"name": "MD3 (+shaders)",
"author": "Derek McPherson, Xembie, PhaethonH, Bob Holcomb, Damien McGinnes, Robert (Tr3B) Beckebans",
"version": (1,6),# March the twenty first, twenty twelve.
"blender": (2, 6, 2),
"api": 36991,
"location": "File > Export > Quake Model 3 (.md3)",
@z
z / encode-demos.sh
Last active February 26, 2017 14:43
encode-demos.sh for Xonotic headlessly in parallel
#!/bin/bash
# name: encode-demos.sh
# version: 0.6.2
# author: Tyler "-z-" Mulligan <z@xnz.me>
# license: GPL & MIT
# date: 26-02-2017
# description: headless encoding of demo files to HD video concurrently with Xfvb and parallel
#
# The encoding is done with a full Xonotic client inside Xfvb.
# parallel is acting as a job queue.