This file contains 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
#### | |
## Config | |
# FFMPEG | |
$ffmpegPath = "ffmpeg.exe" | |
$ffplayPath = "ffplay.exe" | |
#$isPreview = $true # Uncomment to preview (ffplay) instead of transcoding. | |
# OUTPUT |
This file contains 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
const cluster = require('cluster'); | |
/** | |
* @param {Function[]} workloads - simple paramaterless functions | |
* @param {{ restartOnExit: bool? }} opts | |
*/ | |
function runWorkloads(workloads, opts) { | |
const restartOnExit = opts?.restartOnExit ?? false; | |
const workloadLookup = Object.fromEntries( |
This file contains 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
#!/bin/bash | |
# Find and add _private_ keys | |
# note- may need adjustments for password-protected keys | |
eval `ssh-agent -s` | |
for f in $HOME/.ssh/*; do | |
fType=`file -b $f` | |
# echo "$f type: $fType" | |
if echo $fType | grep -i "private key"; then | |
ssh-add $f | |
fi |
This file contains 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
#include "espnow_utils.h" | |
#ifdef ESP32 | |
#include <WiFi.h> | |
#else | |
#include <ESP8266WiFi.h> | |
#endif | |
String get_mac_as_arduino_str(const uint8_t *address); |
This file contains 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
#### Options | |
#output_file=~/debs_install.log | |
output_file=~/debs_install.sh | |
# filter logs for active install commands | |
# columns: $1=install date, $2=install time, $4=pkg id, $5="<none>" (?), $6=version | |
awk_cmd='/ install /{print "apt install " $4 " # originally installed " $1}' | |
#### Make the output a runnable script (in order | |
gunzip -c /var/log/dpkg.log.2 | awk "$awk_cmd" >1 $output_file |
This file contains 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
while ( $deleteInp -notmatch "[yYnN]" ) { | |
$deleteInp = Read-Host -Prompt "Delete files when done? [y/n]" | |
} | |
$delete = $deleteInp -match "[yY]" | |
$deleteInp = "" # reset this since its global | |
echo "------ Transcoding MP3s -------" | |
$oldFileEnding='.wav' |