10 lines
279 B
Bash
Executable file
10 lines
279 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# intended usage: watch -n 60 bin/status
|
|
|
|
DBNAME="github"
|
|
|
|
echo "SELECT COUNT(*), MAX(id) 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)
|