Skip to content

Instantly share code, notes, and snippets.

@infernvs
infernvs / keybase
Created September 12, 2019 07:40
keybase
### Keybase proof
I hereby claim:
* I am infernvs on github.
* I am infernvs (https://keybase.io/infernvs) on keybase.
* I have a public key ASDVPC_HpLM9_y0Ra2Oiou5FPI6j0ghKn1dWkf-ikKXo2wo
To claim this, I am signing this object:
@infernvs
infernvs / weather.sh
Last active September 15, 2021 22:16
Bash script to get the weather from Openweathermap.org
#!/bin/bash
APIID="GET API KEY"
temp() {
python -c 'import json; import sys; print json.load(sys.stdin)["main"]["temp"]'
}
humidity() {
python -c 'import json; import sys; print json.load(sys.stdin)["main"]["humidity"]'
}
wind() {
python -c 'import json; import sys; print json.load(sys.stdin)["wind"]["speed"]'