Skip to content

Instantly share code, notes, and snippets.

View rthompsonj's full-sized avatar

Robert Thompson rthompsonj

  • Austin, TX
View GitHub Profile
@rthompsonj
rthompsonj / docker-compose.yml
Created January 12, 2019 08:34
Media Automation with deluge, nzbget, sonarr, radarr
version: '3'
services:
deluge:
container_name: deluge
image: linuxserver/deluge
restart: unless-stopped
environment:
- TZ=America/Chicago
@rthompsonj
rthompsonj / config.plist
Created August 10, 2018 14:29
hackintosh config
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Fixes</key>
<dict>
@rthompsonj
rthompsonj / config.plist
Last active June 19, 2018 17:29
Hackintosh Config
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Fixes</key>
<dict>
import argparse
#CFG = 'Admins.cfg'
CFG = 'Output.cfg'
OUTPUT = 'Output.cfg'
## add grouping class that handles add/modify/remove
class Config(object):
def __init__(self, currentPlayers, staticLines):
self.currentPlayers = currentPlayers
@rthompsonj
rthompsonj / dump_to_point_cloud.py
Created September 25, 2017 18:55
dump sim data to point cloud for VR
import struct
import matplotlib.cm as cm
import numpy as np
import os
import sys
import yt
import yt.analysis_modules.sphgr.api as sphgr
import yt.analysis_modules.sphgr.group_funcs as gf
from readgadget import *
@rthompsonj
rthompsonj / LightModulator.cs
Created March 6, 2017 02:37
modulate a light's intensity & position unity3d
using UnityEngine;
using System.Collections;
public class LightModulator : MonoBehaviour {
private enum LightStatus
{
Active,
Inactive,
Ramping
@rthompsonj
rthompsonj / shroud-logstash-public.conf
Last active May 18, 2017 17:20
Shroud player data sanitation
input {
# stdin { }
# udp {
# port => 5959
# codec => json
# }
syslog {
severity_labels => ["DEBUG", "ERROR", "WARNING", "INFO"]
host => "127.0.0.1"
port => 5514
import numpy as np
import struct
import sys
FREE_TYPES = [2,3,5]
INFILE = sys.argv[1]
if len(sys.argv) > 2:
OUTFILE = sys.argv[2]
#else: