Skip to content

Instantly share code, notes, and snippets.

View karthikmurugesan2's full-sized avatar

karthikmurugesan2

View GitHub Profile

If you dont have a keypair, Create the RSA Key Pair using ssh-keygen tool

The first step is to create the key pair on the client machine (there is a good chance that this will just be your computer):

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

This creates a new ssh key, using the provided email as a label. The entire key generation process looks like this:

Generating public/private rsa key pair.
Enter file in which to save the key (/home/demo/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 

If you are behind a corporate proxy, use the following configuration to access different tools/frameworks over Corporate Proxy.

If you are behind the windows proxy, you can run cntlm to change the NTLM authentication to normal HTTP Proxy.

Supposing your proxy is defined with:

  • username
  • password
  • host

Disable SSL Check for different tools

When running tools over a custom proxy like cntlm, we need to typically disable the ssl certificate verification for packages/pages through https. Below guidelines can used to disable ssl certification check.

wget

wget --no-check-certificate <url>

or you can permanently disable wget security check using this command

echo "check_certificate = off" &gt;&gt; ~/.wgetrc
@karthikmurugesan2
karthikmurugesan2 / .screenrc
Last active September 13, 2020 15:15 — forked from joaopizani/.screenrc
My GNU Screen Config
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off
@karthikmurugesan2
karthikmurugesan2 / .zshrc
Last active September 13, 2020 15:25
My ZSH Environment on CentOS 7
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
@karthikmurugesan2
karthikmurugesan2 / .bashrc
Last active February 27, 2021 08:30
WSL + git + beyond compare
alias gitdiff='git difftool -y --no-symlinks &'
export VISUAL=vim
export EDITOR="$VISUAL"