navi/cheats/misc.cheat

28 lines
481 B
Text
Raw Normal View History

2019-10-11 14:33:16 -03:00
% weather
# Show weather info for current location
curl -s "wttr.in" \
| grep -v "New feature" \
| grep -v Follow
# Show weather info for a specific location
curl -s "wttr.in/<location>" \
| grep -v "New feature" \
| grep -v Follow
% qr code
2019-10-14 13:54:09 -03:00
# Create a QR code with some content
echo <content> | curl -F-=\<- qrenco.de
% json
# convert JSON to YAML
cat <json_file> | ruby -ryaml -rjson -e 'puts YAML.dump(JSON.load(ARGF))'
$ json_file: find . -name '*.json'