bin/status: hack to monitor bin/batch retrival progress
This commit is contained in:
parent
1292fc1bba
commit
bf08743356
1 changed files with 10 additions and 0 deletions
10
bin/status
Executable file
10
bin/status
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
# intended usage: watch -n 60 bin/status
|
||||
|
||||
DBNAME="github"
|
||||
|
||||
echo "SELECT COUNT(*) FROM repos" | psql "$DBNAME"
|
||||
echo "\\l+ ${DBNAME}" | psql "$DBNAME"
|
||||
du -sh cache/
|
||||
zgrep -i --color=auto "'X-RateLimit-Remaining'" cache/$(ls -t cache/ | head -n 4 | tail -n 1)
|
Loading…
Add table
Add a link
Reference in a new issue