Skip to content

Instantly share code, notes, and snippets.

View ForestKatsch's full-sized avatar

Forest Katsch ForestKatsch

View GitHub Profile
@ForestKatsch
ForestKatsch / clone-ksp-install.sh
Last active April 28, 2023 00:16
Clones a KSP installation.
#!/bin/bash
BASE=$(realpath base-1.12.5)
NEW_DIR=$1
function usage {
echo "usage: $0 <new_save>"
}

Pomodorologio Privacy Policy

No personal data is saved or sent.

@ForestKatsch
ForestKatsch / zshrc
Last active April 25, 2023 03:50
Personal zshrc with minimal prompt.
# Forest Katsch's zshrc
# Last updated 2021-01-12
# Make the given directory and cd into it.
function take() {
mkdir -p "$1" && cd "$1"
}
# btw i use emacs
EDITOR=`which emacs`
@ForestKatsch
ForestKatsch / open-iterm-window.applescript
Created November 29, 2020 22:54
Opens a new iTerm window.
tell application "iTerm"
create window with default profile
activate
end tell
// Sets the origin mode for XR.
// Add this component somewhere in your scene.
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR;
public class SetXROrigin : MonoBehaviour {
@ForestKatsch
ForestKatsch / iss-sim-autodock.js
Last active May 24, 2020 01:38
Automatically dock with the ISS in SpaceX's docking game.
// 1. Go to iss-sim.spacex.com
// 2. Open the developer console and paste in the contents of this file
// 3. Press the "start autopilot" button.
(function() {
class PID {
constructor(options) {
options = {
itermMin: -10000,
@ForestKatsch
ForestKatsch / README.md
Created April 14, 2020 02:05
ASB asset readme

asb

asb is the reference implementation of an asset packing format.

asb format

The asb format, or "asset binary" format, is a specification of how to store assets efficiently in binary form. It is designed to be appended to other asb files. Files are keyed by path, which is saved in the asset as a 64-bit unique ID.