Skip to content

Instantly share code, notes, and snippets.

View lappemic's full-sized avatar
🐒

Michael lappemic

🐒
View GitHub Profile
@lappemic
lappemic / log_memory.sh
Created June 25, 2024 15:20
Bash script to log memory usage every minute for three hours
#!/bin/bash
# install bc (cli calculator):
# sudo apt-get install bc
# and make script executable:
# chmod +x log_memory.sh
# Create or clear the usage.txt file
> memory_usage.txt