Create password protected Zip file on Mac
To create a password protected Zip file from the command line on a Mac Create a folder for the source files, Move the source files into the folder, Open a terminal in the parent folder, Execute the command: Zip will ask for the password.
Install and configure iTerm2
iTerm2 configuration Install Oh My Zsh Oh My Zsh is an open source, community-driven framework for managing your zsh configuration. More info at https://github.com/ohmyzsh/ohmyzsh Use .bashrc for configuration When you start iTerm, it reads its…
extra characters at the end of n command
When you use sed to insert a template file into another file with the command and get the error message extra characters at the end of n command Make sure the template file supplied in $1 does not have an empty line at the top.
Map the host drive in a VMware Fusion Windows virtual machine
Every time I start a PowerShell terminal on my Windows VMware Fusion virtual machine I have to map the host drive of my MacBook Pro. I execute this command in PowerShell:
Remove byte-order mark from the beginning of the file
When a file is saved with BOM (byte-order mark) on a Mac or Linux machine Windows PowerShell cannot execute the script. Unfortunately the “cat” command by default does not show the byte-order mark at the beginning of the file. As Oriol stated…
Docker in Windows 10 via VMware Fusion on a MacBook Pro
To run Windows Docker containers on your Macintosh computer, use the following setup. This will introduce a performance hit, because you run virtualization in virtualization. Besides the usual setup process, you need to enable hypervisor applications to…
Install Git on Macintosh
Navigate to https://git-scm.com/download/mac to download Git for the Macintosh. The page automatically downloads the installer for the operating system you use. This app is not trusted by Apple, so to install it Control-click (right-click) the…
Set up an application to auto-start on macOS
To set up an application to automatically start when the Macintosh computer starts Open Settings Select Users & Groups On the Login Items tab click the lock to enable changes Enter your credentials to unlock the function Click the + sign to add an…
Using tmux terminal multiplexer
The tmux terminal multiplexer allows us to open multiple terminal windows in the same SSH session and continue the command execution even when we log out of the SSH session. This way we can execute long-running copy commands overnight without keeping the…
Send Alt-Control-Delete to a Windows server via Remote Desktop
When you log into a Windows server via the Remote Desktop Protocol (RDP) in some cases you need to send the Alt-Control-Delete ( in other notations Alt-Ctrl-Del, Control-Alt-Delete, Ctrl-Alt-Del ) key combination to the remote server. From a Macintosh…