git: reset

This commit is contained in:
k
2024-06-23 17:38:53 +02:00
commit a1a576d088
375 changed files with 40952 additions and 0 deletions
Executable
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
# https://stackoverflow.com/questions/31389483/find-and-delete-file-or-folder-older-than-x-days
# For Mac OS users
if [ "$(uname)" == "Darwin" ]; then
echo "Increasing limit of opened files..."
ulimit -n 1000000 # Can't be $(ulimit -Hn), bitcoind needs some too !
# Needed because the datasets tree is too big lol
echo "Increasing stack size..."
ulimit -s $(ulimit -Hs)
if mdutil -s / | grep "enabled"; then
echo "Disabling spotlight indexing..."
sudo mdutil -a -i off &> /dev/null
fi
echo "Cleaning local TimeMachine snapshots..."
# If not enough: tmutil thinlocalsnapshots / 500000000000 4
tmutil thinlocalsnapshots / &> /dev/null
fi
# Update path
cargo run -r -- "$HOME/Developer/bitcoin"