Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9349064
status
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
536 B
Subscribers
None
status
View Options
#!/bin/bash
# Copyright (C) 2015 Stefano Zacchiroli <zack@upsilon.cc>
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
# intended usage: watch -n 60 bin/status
DBNAME
=
"github"
DBCONN
=
"-p 5433"
psql
=
"psql
$DBCONN
--no-psqlrc"
ps
auxw
|
grep
bin/batch
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
)
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Jul 4 2025, 7:03 PM (6 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3369140
Attached To
rDLS Listers
Event Timeline
Log In to Comment