Github Connect with your SSH Public Key

If you are using git for your projects, you need to run some git commands such as clone, pull or push. So, let's say that you want to clone one git project and if it is asking your username and password, you can create a SSH Public Key for your pc, after that you can paste it your github account so that you will never need to specify username and password.

You can follow below screenshot to create a SSH Public Key. After you create it, copy created SSH Public Key from terminal and paste it to GitHub SSH Keygen window like below.

Follow below screenshots to add your SSH Public Key in your GitHub account.

C# Pipeline Handler & Logger

I have created a demo project for log handler and TryCatch wrapper (https://kenanhancer.com/2018/06/26/c-trycatchwrapper-and-logging/_.

I need a logger which can write to console and file at the same time. So, I created this demo which creates logger pipeline dynamicly. When code runs, it will write message in console and FileLog.log file at the same time.

Docker VirtualBox with Vagrant

If you have installed Vagrant CLI (https://kenanhancer.com/2019/09/22/creating-starting-stopping-packaging-and-publishing-a-vagrant-box/), just run the following command to create docker installed virtual box.

The following command will download Vagrant box from Vagrant Cloud.

vagrant init kenanhancer/DockerMachine

This command will up and run the virtual machine in your VirtualBox. So you need to install VirtualBox as well 🙂

vagrant up

If you want to check status of virtual machine, run the following command.

vagrant status

If you want to see ports of virtual machine, run the following command.

vagrant port

to connect created virtual machine, run the following command in the Vagrantfile directory.

vagrant ssh

if you want to see details of Vagrantfile, check it as below.

Creating a Vagrant Package file

vagrant package --output dockermachine.box --vagrantfile Vagrantfile

Pushing Created Vagrant Package to Vagrant Cloud

After you create a Vagrant Package, run the following command in the package file location.

vagrant push