--------------------------------------------------------------------------------
Quick Information
--------------------------------------------------------------------------------
p.s. Mac OS is BSD. All GNU packages will be missing
cure: https://brew.sh/   "brew install"


--------------------------------------------------------------------------------
I. Look up ascii table
--------------------------------------------------------------------------------
$ man ascii

--------------------------------------------------------------------------------
II Spelling (not sophisticated)
   Dictionary (quite good)
--------------------------------------------------------------------------------

$ look persi 	#looking for persnickety  
$ dict hello    

--------------------------------------------------------------------------------
III. Time in Tokyo (but persnickety) 
--------------------------------------------------------------------------------

$ zdump Asia/Tokyo
$ zdump Asia/Kolkata #but not Mumbai!
$ zdump Israel
$ zdump Europe/Amsterdam

--------------------------------------------------------------------------------
IV. Time to leave
--------------------------------------------------------------------------------
$ leave +0100  #leave in one hour from now
$ leave 2100   #leave at 9 pm

leave ceases when you log off. However, if you still want to stay (or wish
to use "leave" as an alarm clock) then you need to kill "leave"

$  kill -KILL $(ps | grep leave | grep -v grep | awk '{print $1}')
              A 1    2            3              4
	#1 ps produces a list of PIDs
	#2 grep for "leave"
	#3 grep itself produces a new PID! filter it out using "-v"
	#4 PID number is the first entry
	#A pass the resulting PID to "kill -KILL"

what if you have more than one "leave"?

$ ps | grep leave | grep -v grep | awk '{print "kill -KILL", $1}' | sh -x

Of course you can be lazy and use

$ pkill leave

--------------------------------------------------------------------------------
V. Check spelling in vi
--------------------------------------------------------------------------------
Turn on spell feature in vi
:set spell
- ':set spell' activates vim spellchecker. Use ']s' and '[s' to move between
  mistakes, 'zg' adds to the dictionary, 'z=' suggests correctly spelled words
- check my .vimrc https://github.com/cfenollosa/dotfiles/blob/master/.vimrc

--------------------------------------------------------------------------------
Text to Voice
--------------------------------------------------------------------------------

$ say "hello kitty"
$ say -f filename   #to read a file (pretty good)

--------------------------------------------------------------------------------
VI. Procrastinate 
--------------------------------------------------------------------------------
$ rev		#good for wasting say 20 seconds
$ fortune    	#procrastiante for a few minutes
	#believe it or not, fortune has 10 options!
$ sl 
$ while 1; do sl; done   #cntrl z, ps, kill -KILL jobid

$ telnet towel.blinkenlights.nl   	 #procrastinate even longer


check out
http://1stoldsite.to.infn.it/groups/group4/mirror/www/webomatic/unix.toolkit/timesink.html

--------------------------------------------------------------------------------
VII. Keyboard shortcuts
--------------------------------------------------------------------------------
alt+backspace delete previous word
alt+F skip  to next space
alt+B skip to previous space
ctrl+U cuts all text up to the cursor
ctrl+K cuts all text after the cursor to end of line
ctrl+A moves cursor to start of line
ctrl+E moves cursor to end of line


Check out "ranger" (now installed on my computer)


Interesting website
http://www.tuxradar.com/content/more-linux-tips-every-geek-should-know