Skip to content

Instantly share code, notes, and snippets.

Robert Thompson rthompsonj

  • Austin, TX
View GitHub Profile
@rthompsonj
rthompsonj / docker-compose.yml
Created Jan 12, 2019
Media Automation with deluge, nzbget, sonarr, radarr
View docker-compose.yml
version: '3'
services:
deluge:
container_name: deluge
image: linuxserver/deluge
restart: unless-stopped
environment:
- TZ=America/Chicago
@rthompsonj
rthompsonj / config.plist
Created Aug 10, 2018
hackintosh config
View config.plist
<?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 Jun 19, 2018
Hackintosh Config
View config.plist
<?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>
View modify_config.py
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 Sep 25, 2017
dump sim data to point cloud for VR
View dump_to_point_cloud.py
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 Mar 6, 2017
modulate a light's intensity & position unity3d
View LightModulator.cs
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
Shroud player data sanitation
View shroud-logstash-public.conf
input {
# stdin { }
# udp {
# port => 5959
# codec => json
# }
syslog {
severity_labels => ["DEBUG", "ERROR", "WARNING", "INFO"]
host => "127.0.0.1"
port => 5514
View split_zoom.py
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:
You can’t perform that action at this time.