navi/cheats/misc.cheat
Denis Isidoro 51bc30e963
Add new cheats (#136)
- [x] json/yaml
- [x] osx wallpaper
2019-10-23 18:11:48 -03:00

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'