Posts

Shell Commands

October 18, 2019
Software
Tech, Shell

General # switch user su some-user-name execute previous command !! List file system mounts findmnt Filter results awk '/search_pattern/ {print $2 $1}' $1 refers to column 1 & $2 refers to column 2, starting from index 0 Search # Find File find path_to_search -name "*.txt" -not to inverse results -maxdepth some_int to limit depth of search -size +1M find files larger than 1 MB -type f|d find files or directories `-exec grep -n -i “foo” Grep grep -i "string_to_be_searched" path_to_search ...

Stock Options

April 15, 2018
Finance
Tech, Canada

I was working at the Canadian branch of a US tech company and part of my compensation was in the form of stock options so I was curious in understanding how they were taxed. Taxes on stock options are calculated based on the delta between Excercise Price and Strike Price. 50 % of the delta is taxed as income Stock Option Deduction. So, they are taxed at the same rate as capital gains. ...