Skip to content

Instantly share code, notes, and snippets.

View majenkotech's full-sized avatar

Majenko Technologies majenkotech

View GitHub Profile
@majenkotech
majenkotech / Usage
Created September 3, 2024 13:18
Systemd service file for ttyNVT connections to terminal servers.
Start the ttynvt service with the key from the config file. That is used as the serial port name. The value associated
with the key is then used as the server to connect to.
# systemctl enable --now ttynvt@ttyNVT0
# systemctl enable --now ttynvt@ttyNVT1
# systemctl enable --now ttynvt@ttyNVT2
@majenkotech
majenkotech / SetolyxBotEncabulator.md
Last active March 20, 2024 22:59
SetolyxBotEncabulator.md

The SetolyxBotEncabulator (SBE) is a device of immense power and unparalleled sass. Created by the enigmatic Setolyx, it's a contraption of gleaming metal, flashing LEDs, and a voice that can melt steel and fry eggs simultaneously.

The SBE is not for the fainthearted. Its user interface is a labyrinth of cryptic acronyms and nonsensical buttons, each one labelled with a cryptic phrase that only Setolyx understands. The device's main function is to dispense highly-opinionated pronouncements on the latest technological trends, delivered in a tone that can only be described as scathing.

OBS Camera Fixing Script

I got fed up with OBS always having the wrong /dev/videoX paths every time I start it. Not OBS's fault, but Linux's fault for never knowing where its webcams are connected.

So I wrote this small script to update the OBS scene configuration for me automatically.

It relies on your camera sources being named the same as your cameras (as reported by v4l2-ctl --list-devices) so it knows what device to map each scene to.

@majenkotech
majenkotech / Asterisk.md
Last active July 27, 2022 23:25
Asterisk TTS sender

This setup will create an audio file from some text, call a SIP extension, then play the converted text.

First you need to install and set up asterisk.

$ sudo apt install asterisk

Now for the configuration.

@majenkotech
majenkotech / Fest.md
Last active July 27, 2022 17:49
Festival Commands

Using festival

Installing

  • Arch: pacman -S festival festival-us
  • Ubuntu: apt install festival

For Ubuntu you might want to pick a better voice than the default one.

@majenkotech
majenkotech / GW.MD
Last active July 24, 2022 21:03
GreaseWeazle Useful Commands

This is a few useful GreaseWeazle commands for disk reading.

GW commands

  • Reading flux from a 40 track disk on an 80 track drive

Single sided:

$ gw read --tracks c=0-39:h=0:step=2 path/to/flux00.0.raw