Edit /etc/locale.conf
to change LANG to en_US.UTF-8
LANG=en_US.UTF-8
#!/usr/bin/env sh | |
install_missing_dep() { | |
if ! command -v "$1" > /dev/null 2>&1; then | |
echo "Installing $1..." | |
apk add "$1" | |
fi | |
} | |
DEPS="curl jq" |
printf " | |
\e[1mDocker Network Usage\e[0m | |
\e[3mRunning containers (I/O):\e[0m $(docker stats --format "table {{.NetIO}}" --no-stream | tail -n +2 | sed "s/kB/KB/g" | sed "s/B//g" | cut -d '/' -f1 | numfmt --from=iec | awk '{ sum += $1; } END { print sum; }' | numfmt --to=iec) / $(docker stats --format "table {{.NetIO}}" --no-stream | tail -n +2 | sed "s/kB/KB/g" | sed "s/B//g" | cut -d '/' -f2 | numfmt --from=iec | awk '{ sum += $1; } END { print sum; }' | numfmt --to=iec) | |
\e[3mAll containers (I/O):\e[0m $(docker stats --all --format "table {{.NetIO}}" --no-stream | tail -n +2 | sed "s/kB/KB/g" | sed "s/B//g" | cut -d '/' -f1 | numfmt --from=iec | awk '{ sum += $1; } END { print sum; }' | numfmt --to=iec) / $(docker stats --all --format "table {{.NetIO}}" --no-stream | tail -n +2 | sed "s/kB/KB/g" | sed "s/B//g" | cut -d '/' -f2 | numfmt --from=iec | awk '{ sum += $1; } END { print sum; }' | numfmt --to=iec) | |
" |
/* | |
This has been generated by the overpass-turbo wizard. | |
The original search was: | |
“aminity=*” | |
*/ | |
[out:json]; | |
// gather results | |
( | |
// query part for: “aminity=*” | |
node["amenity"="recycling"]["recycling_type"="centre"]["ownership"!="private"](around:10000,lat,lon); |
SELECT | |
TABLE_NAME AS `Table`, | |
ROUND((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024) AS `Size (MB)` | |
FROM | |
information_schema.TABLES | |
WHERE | |
TABLE_SCHEMA = 'my_database' | |
ORDER BY | |
(DATA_LENGTH + INDEX_LENGTH) | |
DESC; |
set NERDTree | |
set commentary | |
set highlightedyank | |
set ideajoin | |
set surround | |
Plug 'justinmk/vim-sneak' | |
" set scrolloff=5 sidescrolloff=10 | |
" Line number |
#!/usr/bin/env bash | |
docker image ls -a | awk -F ' ' '{ print $7 }' | tail +2 | sed 's/B/i/' | numfmt --from=auto | awk '{n += $1}; END{print n}' | numfmt --to=iec-i |