Instantly share code, notes, and snippets.

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 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
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 *
View LightModulator.cs
using UnityEngine;
using System.Collections;
public class LightModulator : MonoBehaviour {
private enum LightStatus
{
Active,
Inactive,
Ramping
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: