First Commit

This commit is contained in:
2018-06-21 22:49:50 -05:00
commit af15154277
134 changed files with 23594 additions and 0 deletions

13
give_mem Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
# Free unused memory
flush_mem () {
sudo sync
echo 3 | sudo tee /proc/sys/vm/drop_caches
}
echo -e "\nMemory usage before purge:\n" && free -m
flush_mem || exit && echo " Error purging memory"
echo -e "\nMemory usage after purge:\n" && free -m