start new:
tmux
start new with session name:
tmux new -s myname
| /* | |
| * object.watch polyfill | |
| * | |
| * 2012-04-03 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |
| ;; Now, replace the loop by more telling operations. | |
| (defn tarjan | |
| "Returns the strongly connected components of a graph specified by its nodes | |
| and a successor function succs from node to nodes. | |
| The used algorithm is Tarjan's one." | |
| [nodes succs] | |
| (letfn [(sc [env node] | |
| ; env is a map from nodes to stack length or nil, nil means the node is known to belong to another SCC | |
| ; there are two special keys: ::stack for the current stack and ::sccs for the current set of SCCs |
| #!/bin/bash | |
| set -o errexit | |
| echo "Removing exited docker containers..." | |
| docker ps -a -f status=exited -q | xargs -r docker rm -v | |
| echo "Removing dangling images..." | |
| docker images --no-trunc -q -f dangling=true | xargs -r docker rmi |