Skip to content

Instantly share code, notes, and snippets.

View majenkotech's full-sized avatar

Majenko Technologies majenkotech

View GitHub Profile
@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