IT notes

removing the ^M character

In vim, to remove the ^M character you could do: :e ++ff=dos The :e ++ff=dos command tells Vim to read the file again, forcing dos file format. Vim will remove CRLF and LF-only line endings, leaving only the text of each line in the buffer. Then set filetype to unix: :set ff=unix And save the file: :x

Find Windows Product Key

To retrive the windows product key you can run this within a windows power shell: PS C:\Users\Monkey> (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey xxxxx-xxxxx-xxxxx-xxxxx-xxxxx