Skip to content

Instantly share code, notes, and snippets.

@SuperFlue
SuperFlue / InventorySort.cs
Last active June 22, 2024 18:40
Inventory sorting script for Empyrion Galactic Survival
// Automatic sorting script for Empyrion by SuperFlue
// This script will automaticall sort items to various containers based on tags
// Needs https://github.com/GitHub-TC/EmpyrionScripting to work
// Place in "Empyrion - Galactic Survival\Saves\Games\<SaveName>\Mods\EmpyrionScripting\Scripts
// Updates will generally be available at https://gist.github.com/SuperFlue/d596c0eaaa40867bfd34c292458e2281
using Eleon.Modding;
using EmpyrionScripting.Interface;
using System;
using System.Collections.Generic;
@SuperFlue
SuperFlue / AudioAffinity.xml
Created August 9, 2023 20:38
Scheduled task template for automatically setting core affinity on the audiodg service
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2021-03-13T14:05:56.3414408</Date>
<Author>SuperFlue</Author>
<URI>\AudioAffinity</URI>
</RegistrationInfo>
<Triggers>
<LogonTrigger>
<Enabled>true</Enabled>
@SuperFlue
SuperFlue / UnityProjects .kopiaignore
Last active July 11, 2023 07:45
Kopiaignore file for UnityProjects folder
# This is a modified Unity .gitignore for use with Kopia
# The main changes from the default Unity .gitignore is that a lot of the folder definitions has a /*/ added in front.
# This ignore file is meant to be placed in the root UnityProjects folder.
# At the top here we also include some extra ignores that are more VRC specific
# Ignore OptmizedShaders directories (these are generated by locked in Poiyomi Shader
# Comment out this line if you want to keep them in the backup
*/OptimizedShaders
@SuperFlue
SuperFlue / XHTMLCharacterEnteties.ps1
Created November 5, 2022 11:05
XHTML character enteties
# Extracted XHTML character definitions from "http://www.w3.org/TR/html4/loose.dtd"
#
$Docdef = @"
<!DOCTYPE definition [
<!ENTITY nbsp "&#160;">
<!ENTITY iexcl "&#161;">
<!ENTITY cent "&#162;">
<!ENTITY pound "&#163;">
<!ENTITY curren "&#164;">
<!ENTITY yen "&#165;">
@SuperFlue
SuperFlue / SaveEditor.ps1
Created October 11, 2022 09:36
Terra Invicta PowerShell save editor
# Quick save editor for Terra Invicta in PowerShell
# Released under MIT license by <Superflue@github>
# Use PowerShell ISE or VSCode to more easily tweak stuff.
# Just place a breakpoint (F9) on the line pointed out at the bottom of the script
# And then you can use the examples in the if statement as a start
# This script handles the compressed saves (gzip)
# For simplicity we just hardcode the name of the save to edit (just call it "editsave")
# And the output is called "modifiedsave"
# This is just a simple way to avoid accidentally breaking an important save
@SuperFlue
SuperFlue / ExtractUnityPackage.ps1
Last active September 20, 2022 17:52
Unity package extractor in PowerShell
# This script can unpack Unitypackages that are based on tar.gz
# Regires an updated version of Windows 10 that has tar.exe buildt in (any currently in-support version of W10 should have this).
# MIT License <SuperFlue@GitHub>
[CmdletBinding()]
param (
# The path to the unitypackage
[Parameter(ValueFromRemainingArguments=$true,Position=0)]
[String]$UnityPackage = (Read-Host "Enter package path"),
# Optional temp folder
@SuperFlue
SuperFlue / flashwatchman.md
Last active February 17, 2025 18:35
Flashing Watchman firmware to Crazyradio PA

How to flash Watchman firmware to a Crazyradio PA dongle

This is a quick guide on how to flash the Watchman firmware (SteamVR tracking dongle) onto Crazyradio PA dongle.

CAUTION: It seems like the dongles end up with really short range, they work technically but is not really all that usable at this time.

Requirements

  • A Crazyradio PA dongle
  • A Linux device (Raspberry PI is excellent for this, but any computer running Linux will do)
  • The "SteamVR HDK" for the Firmware binary
    AFAIK no one can legally redistribute this, you will have to register for a SteamVR Tracking License to get this.