Skip to content

Instantly share code, notes, and snippets.

TTT Onboarding Instructions

The TTT server has positional audio integrated with the game using the Mumble voice client. This associates everyone's voice with their in game character, so it sounds as if each player's voice is coming from their player model, as opposed to everyone's voice sounding equally loud and in the same stereo position. We also have some additional integrations set up with the TTT gamemode so that if you're killed in game, you can talk to other dead players but those who are still alive can't hear you.

You'll need to set up Mumble and Garry's Mod with some specific settings to get everything working right.

Mumble Setup

  1. Download the Mumble Client (free).
@ebai101
ebai101 / uad-meter.sh
Last active April 5, 2024 16:56
disable UAD meter launching on startup on macOS
# run once in terminal
# if something goes wrong, just replace uad-meter.plist with uad-meter.plist.bak
sudo sed -i'.bak' -e "s/true/false/" /Library/LaunchAgents/com.uaudio.uad-meter.plist
@ebai101
ebai101 / google-drive-restarter.md
Last active September 22, 2023 00:17
google-drive-restarter

Google Drive likes to leak memory on macOS, and since the devs don't seem to want to do anything about it I made these two launch agents to periodically restart it so it doesn't tie up a ton of resources.

  • place them both in ~/Library/LaunchAgents
  • disable launch on login in Google Drive Preferences
  • launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/googledrive.keepalive.plist
  • launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/googledrive.killer.plist
  • restart

Use at your own risk, this might mess up your sync somehow. I haven't had any issues personally. Quitting the app from the menu will not restart it, you'll need to launchctl kickstart the keepalive plist or just restart your computer.

@ebai101
ebai101 / init.lua
Last active July 5, 2024 21:00
reason pinch zoom
--[[
Pinch zoom script for Reason
This file should be put in the ~/.hammerspoon directory
or just click Open Config in the Hammerspoon menu and paste all of this in
To use, just pinch with the trackpad while in the sequencer.
Hold shift to zoom in on the playhead instead of the cursor
Hold command to zoom vertically
]]
@ebai101
ebai101 / download.js
Created January 16, 2024 18:32
splice download all presets
document.querySelectorAll('[aria-label="add-to-library"]').forEach((element) => { element.click()})