mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 03:23:05 +00:00
parent
fdf5bf4382
commit
51bc30e963
2 changed files with 15 additions and 1 deletions
|
@ -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'
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue