Skip to content

Instantly share code, notes, and snippets.

View Rezwanul-Haque's full-sized avatar
🎮
Don't limit yourself with someone else's curation.

RezwanulxHaque Rezwanul-Haque

🎮
Don't limit yourself with someone else's curation.
View GitHub Profile
@Rezwanul-Haque
Rezwanul-Haque / gist:68b77739eb122b2f2762e16316dc4877
Created February 7, 2023 17:14
Md. Rezwanul Haque Razib task solution
package main
import (
"fmt"
"reflect"
"math"
)
//PROBLEM 01
//
@Rezwanul-Haque
Rezwanul-Haque / multiple_git_account_setup_(ubuntu_version).md
Last active May 20, 2023 07:38
Multiple Git Account Setup (Ubuntu version)

ssh-add is a command for adding SSH private keys into the SSH authentication agent for implementing a single sign-on with SSH. The agent process is called ssh-agent;

The cool thing about ssh-agent and ssh-add is that they allow the user to use any number of servers, spread across any number of organizations, without having to type in a password whenever moving between servers. This is commonly used by system administrators to move among the machine they administer. It is also widely used in universities and research institutions for accessing computing resources.

A more practical example would be: when anyone shifts to a new organization and gets a new organization email address for the specific organization. He/She might need to create a VCS(version control system) account at GitHub, bitbucket, GitLab, etc. Most Developers already have one personal account on any of those VCS sites. So to set up these two accounts on a single machine sometimes complex. In this post we will learn how to set up two or more V

@Rezwanul-Haque
Rezwanul-Haque / installing_multiple_version_of_go.png
Last active January 18, 2021 11:17
Installing Multiple Version of Golang Using GoEnv
installing_multiple_version_of_go.png

Universal "for" loop in Golang

Every programming language has some kind of loop for repeatedly executing a block of code. Programming languages like C/C++, C#, Python, Nodejs etc have their own way of writing loops. Among different types of loops the most common one is the for loop which almost all programming languages implement.

Example of a "for" loop

type Node struct {
    Next  *Node
    Value interface{}
}