This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Snapclient for Speakers | |
| After=network.target sound.target | |
| [Service] | |
| User=speaker | |
| ExecStart=/usr/local/bin/start_snapcast.sh 10.x.x.x CLIENT_NUMBER /dev/snd/by-id/usb-Creative_Technology_Ltd_Sound_Blaster_Play__3_YDSB1730431006108F-00 | |
| Restart=on-failure | |
| [Install] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param ( | |
| [Parameter(Position = 1)] | |
| [ValidateScript({ Test-Path $_ -PathType Container })] # Ensures the provided folder path exists | |
| [string] | |
| $TargetDir | |
| ) | |
| $maxLength = 42 | |
| $invalidChars = '[^ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\#\$\%\&\''\(\)\-\.\@\[\]\^_`\{\}~ ]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $MAX_LENGTH = 42 | |
| $files = (Get-ChildItem -File -Recurse | Where-Object { $_.Name.Length -gt $MAX_LENGTH }) | |
| $validChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#$%&''()-.@[]^_`{}~ ' | |
| function Strip-Unnecessary | |
| { | |
| param( | |
| [string]$In | |
| ) | |
| return ($In -replace '\[!\]','').Trim() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| G90 ; use absolute coordinates | |
| M83 ; extruder relative mode | |
| M104 S150 ; set temporary nozzle temp to prevent oozing during homing | |
| M140 S{first_layer_bed_temperature[0]} ; set final bed temp | |
| G4 S30 ; allow partial nozzle warmup | |
| G28 ; home all axis | |
| M190 S{first_layer_bed_temperature[0]} ; wait for bed temp to stabilize | |
| ; UBL Stuff | |
| G29 L0 ; Load mesh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| API_KEY=PORKBUNAPIKEYHERE | |
| API_SECRET=PORKBUNAPISECRETHERE | |
| IP4_ADDR=$(ip -4 addr show eth0 | grep -oE '([0-9]{1,3}\.){3}([0-9]{1,3})') | |
| IP6_ADDR=$(ip -6 addr show eth0 | grep -oE '([0-9a-f]{1,4}\:){7}([0-9a-f]{1,4})') | |
| curl --header "Content-Type: application/json" \ | |
| --request POST \ | |
| --data '{ | |
| "apikey" : "'"$API_KEY"'", | |
| "secretapikey" : "'"$API_SECRET"'", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://devblogs.microsoft.com/scripting/generate-random-letters-with-powershell/ | |
| -join ((65..90) + (97..122) | Get-Random -Count 64 | % {[char]$_}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg.exe -i INPUTFILE.mp4 -vn -c:a libopus -b:a 160K -ac 2 OUTPUTFILE.opus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg.exe -i <INPUTFILE> -an -c:v libx264 -b:v 5000K -tune zerolatency -r 30 -profile:v baseline -vf scale=1280:720 -x264-params keyint=60:scenecut=0:bframes=0 OUTPUTFILE.h264 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| Fires up a bunch of ftl_app instances pointing at an ingest | |
| #> | |
| [CmdletBinding()] | |
| param ( | |
| [Parameter(Mandatory = $true)] | |
| [string] | |
| $FtlAppPath, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From b08b81705e30ce81c3747f5a424461cc297a8510 Mon Sep 17 00:00:00 2001 | |
| From: "Jan Alexander Steffens (heftig)" <[email protected]> | |
| Date: Thu, 2 May 2019 16:26:51 +0200 | |
| Subject: [PATCH] WIP: Add plugin for Microsoft Mixer's FTL protocol | |
| We have handle the failure of the FTL library initialization somewhere | |
| else. | |
| --- | |
| ext/ftl/gstftl.c | 81 +++++ | |
| ext/ftl/gstftlaudiosink.c | 116 +++++++ |