Enable Debug For Shell Scripts

terminal

Debugging shell scripts comes handy, especially when unexpected things happen. Trust me, they do. I use two different approaches, based on what’s needed: debug while running it or when ran in the background, maybe by […]

M1 Mac F4 -> Launchpad

apple

On M1 Mac’s F4 was mapped to Finder. I wonder why since you can easily start Finder with Cmd ⌘ + Space. To remap F4 you can run the following one line command from Terminal: Credit […]

Easily Combine Images On a Mac

apple

Install imagemagick (from MacPorts or Homebrew): port install imagemagick or brew install imagemagick convert +append source_image1.jpg source_image2.jpg source_image2.jpg combined.jpg Voilà! You can combine multiple images not just three. You can also do convert +append * […]

Failed To Create Java Virtual Machine – macOS

If you are using macOS and Apache Directory studio there is a chance you’ve met this error message: Below fix should work in most cases. Find out where is your jdk directory then update Info.plist […]

Comparing Ansible and CFEngine

Once in awhile I hear (since the pandemic mostly see on chat) people comparing Ansible and CFengine: this is better, that is better. etc. I use both and like both, I think both have their […]

Linux: Keep That Process Running

For whatever reasons a process can crash. The best is always to find out why and fix it. However, sometimes you can have higher priority tasks and you want that process to be running. With […]

NGINX Headers For Docker

In case you run docker behind nginx some of your container might need specific headers otherwise a browser trying to access them might want to connect to a local or private address, something like https://127.0.0.1:8080. […]