How to move a window on the Macintosh if the header is not visible

There are times when a window opens on your Mac and the header is out of the screen or hiding behind the Macintosh Toolbar. To show the toolbar Option 1. Click the window to select it, Press Command 1 to switch the window to full-screen mode, Press Command 1 again to exit full-screen mode, The toolbar …

Custom Git Status and Git Pull commands to work with all of your repositories

If you work with many Git repositories it is easy to miss a repository when you commit your changes, and very time consuming to pull from all repositories. It is easy to automate both processes. In this example, we will place all files in the ~/Git/devops-scripts folder. If you want to place your files at another …

Useful Bash commands

Most of these commands work in all Linux, MacOSX, and Unix shells, but some of them only work in selected shells. Find files recursively by file name pattern find . -name ‘*.MY_EXTENSION’ Find files, but exclude a directory from the search. (The -print is needed at the end of the line) find . -path ./tmp/windows …

How to verify or generate file checksums

You can verify the checksum of a file with the built-in features of the operating systems On Macintosh and Linux Open the terminal window and execute the commands SHA-256 shasum -a 256 FILE_NAME On Windows CRC32, CRC64, SHA256, SHA1, BLAKE2sp Right-click the file in Windows Explorer and select CRC SHA > * (star) The popup window will …

Bluetooth: Not Available in Sierra on the Macintosh

After software update in Sierra on my Macintosh, my Bluetooth mouse usually stops working. The toolbar displays the Bluetooth not available icon:  When I click it, the “Bluetooth: Not Available” message is displayed. There are two recommended actions we can take to bring Bluetooth back to life. If the first one does not help, try to execute …

Recommended utilities for your workstation

Graphics Snagit Snagit is a great utility to capture screens and annotate them for documentation. The program is available for Mac and Windows. Download the latest version at https://www.techsmith.com/ Get older versions at https://www.techsmith.com/download/oldversions Terminal emulator PuTTY Install PuTTY On Macintosh Open a terminal window Install PuTTY with Homebrew. For the Homebrew installation see the Homebrew section …

Keep multiple versions of applications on Macintosh

Most of the DevOps tools are still in beta versions, many times the new version is not compatible with your existing scripts or have an error that stops your scripts working. To be able to keep multiple versions of the applications and easily switch between them, create symbolic links and point to the version you …

Disable the Caps Lock key on the Macintosh

I am not sure who uses the Caps Lock button anymore. It was important in the age of typewriters to be able to type all uppercase titles without holding the shift key, but these days I don’t remember the last time I needed it. In fact I frequently press it accidentally and prevents me to …

How to copy files to the clipboard

When you work in the graphical user interface (GUI) of your operating system, and want to copy the contents of a file to the clipboard, you can use the following commands: On OS X run: cat FILE_NAME | pbcopy On Linux run: cat FILE_NAME | xclip On Windows (via Cygwin/Git Bash) run: cat FILE_NAME | clip

Git configuration

If you use 2-factor authentication in GitHub,  generate a 40 character Personal Access Token that you can use as a password to access GitHub repositories. Create a Personal Access Token to use it as password in the Git client Log into GitHub and in the pull down at the upper right select Settings, On the left …