Skip to content

Instantly share code, notes, and snippets.

View jcopps's full-sized avatar
🥁
Figuring out

Jeffry copps jcopps

🥁
Figuring out
View GitHub Profile
@jcopps
jcopps / wav_to_pcm.sh
Created February 11, 2023 07:18
Convert wav to PCM - 16K
for file in ./*; do
[ -f "$file" ] || continue
ffmpeg -i "$file" -f s16le -ar 16000 -acodec pcm_s16le "$file".raw
done
@jcopps
jcopps / Black formatting
Created April 21, 2023 07:22
Black formatting
black() { docker run -v $(pwd):/code jbbarth/black $*; }
@jcopps
jcopps / test_ram_cpu_utilisation
Created May 21, 2024 11:41
Collect RAM, CPU, Swap and Secondary Storage Utilisation
"""
Dependency: psutil
pip3 install psutil
"""
import psutil
import time
import json
from datetime import datetime
def get_system_utilization():