This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Can work for other delimiters as well | |
# Tab delimiter | |
bq load --source_format=CSV --field_delimiter=tab \ | |
--skip_leading_rows 1 -<destination_table> <source> \ | |
<schema> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Lists memory usage per Docker container | |
# | |
# FORMAT: | |
# | |
# IMAGE:TAG MEMORY_USAGE CONTAINER ID | |
for i in `find /sys/fs/cgroup/memory/docker/* -type d`; do | |
CONTAINER_ID=`echo $i | awk -F'/' '{print $7}'` | |
MEMORY_USAGE=$((`cat $i/memory.usage_in_bytes`/1024/1024)) |