Skip to content

Instantly share code, notes, and snippets.

View geoffp's full-sized avatar

Geoff Pursell geoffp

View GitHub Profile
@geoffp
geoffp / keybase.md
Created March 4, 2021 19:22
keybase.md

Keybase proof

I hereby claim:

  • I am geoffp on github.
  • I am gorff (https://keybase.io/gorff) on keybase.
  • I have a public key ASAoMJFSHfrTZkAS7CXmlXKaYz4uVVJs1EyEiMtxtlh_ZAo

To claim this, I am signing this object:

@geoffp
geoffp / minecraft
Last active November 18, 2023 12:20
A simple launcher to allow you to launch minecraft with a specified displayName so a family can play on the same server with one account. Works on Linux, probably Mac OS too. Change the constants to suit your needs.
#!/usr/bin/python
import json, sys, os, subprocess, time, signal, sys
#
# Constants
#
# First and only argument is the player's display name
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
#!/bin/bash
# This command line works well enough to encode videos for my Sylvania SDVD9020B
# portable DVD players. There are still mysterious issues with aspect ratio, but
# this method is the best compromise I've found so far in about two hours of
# digging and experimentation.
# Observations:
# setting an aspect ratio of 16:9 seems to work for 2.35:1
# video. Not sure why.