Skip to content

Latest commit

 

History

History
81 lines (53 loc) · 1.7 KB

Macos.md

File metadata and controls

81 lines (53 loc) · 1.7 KB

MacOs

Generate "Read Receipts" in Mail

$ defaults read com.apple.mail UserHeaders
$ defaults write com.apple.mail UserHeaders \
'{"Disposition-Notification-To" = "user@domain"; }'

Source: macworld

Show/Hide files

To show hidden files:

defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder

To hide files:

defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder

Change crontab editor

By default crontab editor is vim, to change:

export EDITOR=/usr/bin/nano
export VISUAL=nano

This is valid for unix systems too

Command equivalent at tree in MacOs

Easy response, install tree with brew

brew install tree

Send email with console

The follow command send a email in text format. (Valid for linux too)

echo "Hello World!!!" | mail -s "Mail Subject Here" "[email protected]"

And the follow examples send a email in format HTML.

cat confirmation.html | mail -s "$(echo -e "This is the subjecto of Sigeva\nContent-Type: text/html")" "[email protected]"
echo "<b>HTML Message goes here</b>" | mail -s "$(echo -e "This is the subject\nContent-Type: text/html")" [email protected]

 Combination of keys Meta-Z

Sometimes when I installed minicom and I need change parameter don't remember the combintaion keys of Meta-Z.
The magic combination of Meta-Z is: Esc + z

Get hardware model in terminal

sysctl hw.model

Try too:

sysctl -a

Coded In Barcelona