Today I found a really helpful and intuitive resource that you can use to understand crontab syntax. This site clearly tells you when a particular command set in cron will be executed. https://crontab.guru/ Really handy! Isn’t it! Caio!Read more "Crontab – Understand cron syntax with this Interactive resource"
# Install go/golang with homebrew brew install go –cross-compile-common # Set following env variables in ~/.bashrc or ~/.zshrc export GOPATH=$HOME/golang export GOROOT=/usr/local/opt/go/libexec export GOBIN=$GOPATH/bin export PATH=$PATH:$GOPATH export PATH=$PATH:$GOROOT/binRead more "Mac OS – Install Golang with Homebrew"
It is not very often but I do try out PHP and static html sites on my mac. But every time I try running apache server with applications under Sites folder, one or more issues pop up. So I thought I would write down the steps to get it working as it might help me or […]Read more "Set up Apache, PHP and Sites folder on Mac"
Recently I created a Rails 4 application and deployed it to an Ubuntu system using Capistrano. As I had to make few tweaks and try couple of options, I thought I should document the process here so I could refer to it later when needed. This post is for providing pointers on deploying Rails 4 […]Read more "Deploying Rails 4 app with Passenger and Apache using Capistrano, Rbenv"
To help keep your Mac OSX desktop tidy, you may want to move your screenshots to a custom folder. Create a folder called Screenshots (or any name you like) in your desired location. For this article I am going to create Screenshots folder on the Desktop. Fire up a Terminal window and enter the following […]Read more "MacOSX – Change Default Save Location of Screenshots"
Sometimes while working on rails applications and running them on different ports, I end up getting ‘Address already in use’ error when starting a new application. Usually you can look for the processes with ps and grep the ones you are looking for. But if you are unable to find the process with ps or […]Read more "Address already in use errors – Find and kill process"
Lets say you want to check if port 1234 is open, run the following command in the terminal. nmap is not available on mac osx by default.You can install it with Homebrew, my preferred package manager for mac osx. Visit homebrew site for instructions on Homebrew installation. nmap -p 1234 localhost This will output the status […]Read more "Mac OSX – How to open a port"