How to show total directory size of directories in current directory:
$ du --max-depth=1 -h ./
47M ./foo
2.0M ./bar
6.6G ./hoge
4.0K ./fuga| /** | |
| * Assert if objects are equal. This function also considers `not` | |
| * @return true if obj1 and obj2 are equal, otherwise false | |
| */ | |
| function _objEquals(obj1, obj2) { | |
| const keys1 = obj1.getOwnPropertyNames().sort(sortByCharCode), | |
| keys2 = obj2.getOwnPropertyNames().sort(sortByCharCode), | |
| sortByCharCode = function(key1, key2) { | |
| if (key1 < key2) { | |
| return -1; |
How to show total directory size of directories in current directory:
$ du --max-depth=1 -h ./
47M ./foo
2.0M ./bar
6.6G ./hoge
4.0K ./fuga| docker rm --force $(docker ps --all --quiet); docker rmi --force $(docker images --all --quiet); docker volume rm $(docker volume ls --quiet) |
| dropbox start | |
| while [[ $(dropbox status) != "Up to date" ]]; do | |
| sudo echo $(dropbox status) | |
| sleep 120 | |
| done && sudo shutdown now |
| #!/usr/bin/env python | |
| from bs4 import BeautifulSoup | |
| import urllib2 | |
| import os | |
| import random | |
| import string | |
| urls = [] |