Skip to content

Instantly share code, notes, and snippets.

View Silenoid's full-sized avatar
👷
You gotta do what you gotta do

Silenoid Silenoid

👷
You gotta do what you gotta do
  • Swisscom
  • Netherlands, Rotterdam
View GitHub Profile
@Silenoid
Silenoid / Pizza Recipe.md
Created June 9, 2023 22:20 — forked from syxanash/Pizza Recipe.md
My Pizza Recipe

Pizza Recipe

pizza recipe

Hi I'm Simone! This recipe was developed based on some tips I acquired over time from lots and lots of resources and tutorials like youtube videos, family and friends recipes. I'm just an amateur who likes making pizza :)

If you plan to perfectionate your pizza making skills, I suggest to come up with your own recipe and research online watching lots of tutorials and different techniques. For now the following recipe is the one that works for me!

(I'm not a professional pizzaiolo and I never had any sort of experience in a professional pizzeria restaurant)

Ingredients and quantities

@Silenoid
Silenoid / FixAudioFrequenciesForL4DModAudioFiles.ps1
Created May 6, 2023 20:52
A Powershell script that uses SoX and fixes the sample rate of the audio files in input to a different one so that the mod won't crash during the compilation od the sound cache
# Loop through each .wav file in the current directory
Get-ChildItem -Path . -Filter *.wav | ForEach-Object {
# Call sox and trim only the "Sample rate" line. From that line, then, trim the word "Sample rate"
$sampleRate = [Int32](
sox --i $_
| Select-Object -Last 7
| Select-String -Pattern "Sample rate.*" -AllMatches
| ForEach-Object { $_.Matches }
| ForEach-Object { $_.Value }
@Silenoid
Silenoid / NormalizeAudio.ps1
Created April 21, 2023 13:44
A Powershell script to normalize audio in bulk using SoX
# Loop through each .wav file in the current directory
$inputFiles = Get-ChildItem -Path . -Filter *.wav
$inputFiles | ForEach-Object -Parallel {
$newFilename = $_.BaseName + ".wav"
Write-Output ("Processing $newFilename")
$outputFile = Join-Path $_.DirectoryName "converted" $newFilename
# If the "converted" directory doesn't exists, create it
if (!(Test-Path "converted")) {