Use two GitHub accounts on the same computer
Many developers have multiple GitHub accounts. One for personal projects, and another one for their work or business. There is a way to access multiple accounts simultaneously from the same computer. Only one account at a time can be configured using the…
Change the AWS account to launch instances with Chef Test Kitchen
The Chef SDK contains Test Kitchen, that can launch server instances to test your Chef cookbooks. Test Kitchen uses the “chef_zero” provisioner to use your workstation as the virtual Chef server. To switch Test Kitchen to launch instances in…
Copy files between Linux machines
The rsync command allows you to copy files using SSH connection, between your workstation and another Linux machine. You have to be logged into one of the machines, this command cannot copy files between two remote machines. To copy a file from your…
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…
Add SSH key access to a GitHub repository
Generate an SSH key pair In a terminal execute ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key : /Users/MY_USERNAME/Git/_Keys/MY_PROJECT/MY_PROJECT_rsa_ci Enter passphrase (empty for no passphrase): Enter same…
Creating CentOS server images with Packer
The CentOS images are not available on the AWS Quick Start tab. CentOS publishes official images on the AWS Marketplace, but you need to subscribe to the image to be able to launch it with an automation software, like Terraform. Find the latest available…
Using Terraform
To generate graphs with Terraform Open a terminal window in the Terraform script directory Execute the command terraform graph | dot -Tsvg > graph.svg
SocketError: Error connecting to … Name or service not known
In an enterprise environment, the company usually operates its own DNS servers. When a Linux instance launches in AWS, the DNS settings only contain the AWS DNS server. If the company DNS server settings are applied with Chef, during the first Chef…
The specified version of the NuGet package is not found in Artifactory
The “chocolatey_package” Chef resource can install NuGet packages from Artifactory. Artifactory is inconsistent in case sensitivity when an application is searching for a NuGet package. When we specify the package ID only, the…
Scale inserted videos with the correct aspect ratio in Adobe Premiere CC
When we insert a video clip into our timeline that has the same height, but different width than our project, Adobe Premiere CC distorts the inserted clip. My project is 1920 x 1080, the inserted clip is 1440 x 1080. When I insert the narrower clip into…