Skip to content

Instantly share code, notes, and snippets.

View tetra-fox's full-sized avatar

tetra tetra-fox

View GitHub Profile
@tetra-fox
tetra-fox / tid_sudo
Last active May 25, 2023 06:02
Enable Touch ID for sudo
sudo sed -i '' '2i\
auth sufficient pam_tid.so
' /etc/pam.d/sudo
@tetra-fox
tetra-fox / portainer.yml
Created May 4, 2023 08:15
simple portainer setup
version: "3.8"
services:
portainer_agent:
image: portainer/agent:latest
container_name: portainer_agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
restart: always
@tetra-fox
tetra-fox / ableton_mmb_drag.ahk
Created February 15, 2023 21:42
mmb drag for ableton live (Iike fl studio)
SetTimer, KeepRunning
return
KeepRunning:
WinGetClass, class, A
if class = Ableton Live Window Class
{
Suspend, off
}
else
@tetra-fox
tetra-fox / downgrading.md
Last active July 27, 2022 03:28
Downgrading VRChat

This no longer works.

image

For PC (Steam)

  1. open steam://nav/console as a url in your browser (this will open steam)
  2. run download_depot 438100 438101 1831754904438111685 (last version of vrchat without EAC, build 1207)
  3. delete the following files/folders from [...]\steamapps\common\VRChat
    • \start_protected_game.exe
    • \EasyAntiCheat
var rainbow = ["&c", "&6", "&e", "&a", "&b", "&d"];
var rainbowIndex = -1;
var text = "text here".split("");
text.map((obj, index) => {
if (obj !== " ") rainbowIndex++;
if (index > rainbow.length - 1 && index % 6 === 0) rainbowIndex = 0;
return rainbow[rainbowIndex] + obj;
}).join("");
@tetra-fox
tetra-fox / table_gen.js
Created August 11, 2019 02:46
generates a json array of the entire emoji unicode table
const fs = require("fs");
const https = require("https");
const emojiVersion = process.argv.slice(2)[0];
const supportedVersions = ["4.0", "5.0", "11.0", "12.0"];
const unicodeUrl = `https://unicode.org/Public/emoji/${emojiVersion}/emoji-test.txt`;
if (!supportedVersions.includes(emojiVersion)) {
console.error("unsupported emoji version!");
process.exit(1);
"your message here".split("").map(char => `||${char}||`).join("");

Keybase proof

I hereby claim:

  • I am tetra-fox on github.
  • I am tetrafox (https://keybase.io/tetrafox) on keybase.
  • I have a public key whose fingerprint is 266B F4C6 9765 4D71 200F 7C54 9624 10C7 8D56 3D72

To claim this, I am signing this object: