Skip to content

Instantly share code, notes, and snippets.

<#
.SYNOPSIS
Delete Cached User Profiles
.PARAMETER IgnoreListFile
Specify plain text file containing list of user profile (full / absolute) directory paths to exclude from deletion.
.NOTES
Author : Steven Peguero
Date : 2023-03-31
#!/bin/sh
play -n synth brownnoise synth pinknoise mix synth 0 0 0 10 10 40 trapezium amod 0.1 30
@speguero
speguero / README
Last active January 22, 2023 01:03
quickdeploy
===========
Runs DOS batch scripts on remote Windows hosts.
Synopsis
--------
quickdeploy.cmd script host [-v]
:: Allows admins to execute batch scripts on
:: remote Windows hosts.
@echo off
set CMD=%1
set SYS=%2
set VERBOSITY=%3
set CMD=%CMD:"=%
set SYS=%SYS:"=%
-- autosave.lua
-- ------------
--
-- periodically saves watch_later data during mpv playback.
-- accounts for periodic cached write synchronization on raspberry pi.
os = require 'os'
mp = require 'mp'
mp_opt = require 'mp.options'
@speguero
speguero / autohiberd
Last active January 27, 2023 21:02
autohiberd
#!/bin/sh
os="$(uname -s | tr '[:upper:]' '[:lower:]')"
bat_percent_to_hiber=5
ac_stat()
{
# description: get status of ac power availability.
ac_stat=
@speguero
speguero / mpv-change_audio_tempo_pitch.sh
Last active December 18, 2020 22:12
mpv: How to Concurrently Change Tempo and Pitch of Audio/Music
mpv --audio-pitch-correction=no -af-add=scaletempo=speed=both --speed=0.95 file