Currently, I am working for a company where they create a Github account using the company’s email id and all the repository access would be given to that Github account.
But I have a personal Github account as well and I am quite active in that too.
Now the problem is, How to manage the SSH keys for both the GitHub accounts. Git by default takes the ~/.ssh/id_rsa(.pub) keys and we can’t add the same ssh key in both the GitHub account.
We can manage multiple Github accounts using the ssh config file.
Generate a new ssh key pair using…
If you haven’t heard about Dokku, then this would be a quick intro to it.
Dokku is yet another platform as a service and its based on core principles of Heroku. It uses Docker and containers to achieve the herokuish experience. It is much easier to get started (like Heroku) and its Opensource.
In this guide, we will deploy a Ruby on Rails application to Dokku and perform some common activities such as checking the logs, using Rails console for the application, connecting to Postgres, and scale the service.
As the title mentions, I will show you how to create a website and serve the static contents using AWS S3 in a much simpler way. For this, the prerequisites are,
For the past few weeks, we were facing issue with the digital ocean machine hitting more than 90 % CPU limit for 5 mins continuously (We have set up monit to trigger a notification to our Telegram channel for it) and it is really annoying to see these many messages in telegram,
One of my favorite features of Golang is its inbuilt concurrency support and the simplicity in using it. Let’s see how simple it is, using the Yet Another Producer-Consumer Solution (YAPCS)
Full source is available in Github repo and you can use the go playground url given along with the source image.
To start with, take a look at the bare bone skeleton code
Vim is a very powerful and addictive editor. If you want to know about vim check here.
In this article, I will show the workflow of how we can edit the configurations for vim and apply it in a much easier way.
To illustrate the pain point, I will change the configuration for displaying the relative number (which is much useful in jumping between lines) in gutter. All the vim configurations are saved in the file $HOME/.vimrc
It has been well established fact that we should not store the sensitive information such as AWS Access keys, Credentials and SSH Private keys in the repository even if it is a private repository.
Said that there are lot of convenience for smaller projects to store the credentials along with the source code. Many things would become much simpler like Project Setup, Avoiding additional services like Hashicorp Vault, Ansible Vault, AWS Parameter store etc to manage secrets.
Postgres provides us a way to write queries which are recursive in nature and fetches the data till the termination condition is met. This can be achieved using Common Table Expressions (CTE).
Using WITH clause, we can create Temporary table scope of which is bound to that query itself. If we can combine this with RECURSIVE clause, we can write some pretty cool stuff like Finding the top most parent, Travelling salesman problem or as simple as Printing the numbers recursively as shown below,
Before jumping headfirst into FactoryBot, we will see the need for such a library. If you want to test your application thoroughly, its mandatory to setup the system at right state and run the unit tests against that state. At times, setting up the test data is not that trivial for many reasons,