Add new cheats (#136)

- [x] json/yaml
- [x] osx wallpaper
This commit is contained in:
Denis Isidoro 2019-10-23 18:11:48 -03:00 committed by GitHub
parent fdf5bf4382
commit 51bc30e963
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View file

@ -15,4 +15,13 @@ curl -s "wttr.in/<location>" \
% qr code
# Create a QR code with some content
echo <content> | curl -F-=\<- qrenco.de
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'

View file

@ -18,3 +18,8 @@ defaults write com.apple.finder CreateDesktop -bool true; \
# Hide items in desktop
defaults write com.apple.finder CreateDesktop -bool false; \
killall Finder
# Set wallpaper
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "<image_path>"'
$ image_path: find $HOME -maxdepth 3 -name "*.jpg" -o -name "*.jpeg" -o -name "*.png"