Skip to content

Instantly share code, notes, and snippets.

View jlp78's full-sized avatar

Jan Peterson jlp78

View GitHub Profile
@tiagoengel
tiagoengel / noise-cancellation.sh
Last active May 12, 2023 20:41
Hiss / White / Static noise cancellation on Linux using Pulseaudio and Sox
#!/bin/bash
# You'll need to have sox, pavucontrol and alsa-utils installed, and the snd_aloop kernel module loaded.
# You can configure your system to load it on startup or load it manually with "sudo modprobe snd_aloop"
# Once this is script is running, you need to start recording audio in the application of your
# preference, open pavucontrol, go to the recording tab and change the recording source of that application
# to "Monitor of Loopback ..."
time=5
@raws
raws / gist:756864
Created December 28, 2010 03:21
Deepest, darkest infobot secrets revealed

Factoid arguments

Arguments are referenced as part of the factoid name itself, and get turned into bits of regex when parsed.

<Raws> infobot, no, starspin $1 is <action> swallows $1 in a violent, ethereal whorl of galactic stardust!
<infobot> Raws: okay
<Raws> ~starspin Mr_Rabies
*infobot swallows Mr_Rabies in a violent, ethereal whorl of galactic stardust!

The literal value of the factoid can then be displayed by prefixing the name with cmd: and substituting (.*?) for your dollar-sign argument(s):