Skip to content

Instantly share code, notes, and snippets.

@plinki
plinki / covid.sh
Last active May 1, 2020 10:32
Fetch worldwide COVID19 infected number. I use this for polybar.
#!/bin/bash
result=$(curl -s -X GET https://covidapi.info/api/v1/global) &&
echo $result | grep -Po '"confirmed":.*?[^\\]".' | sed 's/[confirmed\"\:\,]//g'
#!/bin/bash
res=$(command -v gpick)
exit_code=$?
if [ $exit_code -eq 1 ];
then
echo "gpick is not installed. aborting"
exit 1
fi

Keybase proof

I hereby claim:

  • I am splendidx on github.
  • I am splendidx (https://keybase.io/splendidx) on keybase.
  • I have a public key ASClKTzNrxpxZaiHZhWo7d8bG-I_tYybFMVa-BB-O8OOEQo

To claim this, I am signing this object: