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
for file in ./*; do | |
[ -f "$file" ] || continue | |
ffmpeg -i "$file" -f s16le -ar 16000 -acodec pcm_s16le "$file".raw | |
done |
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
black() { docker run -v $(pwd):/code jbbarth/black $*; } |
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
""" | |
Dependency: psutil | |
pip3 install psutil | |
""" | |
import psutil | |
import time | |
import json | |
from datetime import datetime | |
def get_system_utilization(): |
OlderNewer