Skip to content

Instantly share code, notes, and snippets.

@shafzhr
shafzhr / create_pipe.sh
Created February 11, 2021 10:26
Create a virtual mic and pipe audio to it
pactl load-module module-pipe-source source_name=virtmic file=/tmp/virtmic format=s16le rate=16000 channels=1
ffmpeg -re -i input.mp3 -f s16le -ar 16000 -ac 1 - > /tmp/virtmic
@shafzhr
shafzhr / OpenDoor.cs
Created July 25, 2019 22:13
Open Door With Modem
using System;
using System.Diagnostics;
using System.Threading;
namespace Door
{
public class OpenDoor
{
public static void Open()
{