diff --git a/bin/screenit b/bin/screenit new file mode 100755 index 0000000..12bbbe1 --- /dev/null +++ b/bin/screenit @@ -0,0 +1,6 @@ +#! /bin/bash + +screen -wipe +sudo echo "Rooted." +sleep .5 +screen -c /etc/screenrc.over diff --git a/bin/till b/bin/till new file mode 100755 index 0000000..9a5e36a --- /dev/null +++ b/bin/till @@ -0,0 +1,28 @@ +#! /usr/bin/env python3 +# encoding: utf-8 + +import os +import sys +import time + +locks = set(sys.argv[1:]) +locks_to_remove = set() + +print(">>> Active locks: %s" %(", ".join(locks))) + +while locks: + for lock in locks: + if not os.path.exists(lock): + print("--- Releasing %s" %(lock)) + locks_to_remove.add(lock) + + for lock in locks_to_remove: + locks.remove(lock) + + locks_to_remove.clear() + + if locks: + time.sleep(5) + + +print("<<< All locks have been released.")