mirror of
https://github.com/denisidoro/navi
synced 2024-11-26 21:40:25 +00:00
51bc30e963
- [x] json/yaml - [x] osx wallpaper
27 lines
481 B
Text
27 lines
481 B
Text
% 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
|
|
|
|
# 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'
|