Skip to content

Instantly share code, notes, and snippets.

View sharathchandramg's full-sized avatar

Sharath Chandra sharathchandramg

View GitHub Profile
@sharathchandramg
sharathchandramg / install-redis.md
Last active January 18, 2019 05:26
Steps to install redis

Start off by updating all of the apt-get packages:

sudo apt-get update

Once the process finishes, download a compiler with build essential which will help us install Redis from source:

sudo apt-get install build-essential

Download tcl

Steps to create ssh-key pai required when creating the VM's in GCP/AWS

ssh-keygen -t rsa ~/.ssh/staging.mobileoffize.com -C <user_name>

This will generate public key and private key pairs in the location sepcified above

Copy the ssh-keys in to cloud instances

If we are creating new instance

Common SCP commands

Copy from host to remote

Copy directory

scp -i <identity_file> -r <local_path> user_name@<remote_address>:/<remote_directory>

scp -i ~/.ssh/myrandomkey.com /Users/sharath/Downloads/xyz.zip ideas@ideas.comingalong.com:/tmp

@sharathchandramg
sharathchandramg / install-comodo-ssl-cert-for-nginx.md
Last active August 17, 2023 13:17
Steps to install a Comodo Wildcard certificate with Nginx.

The steps below show how to install comodo certificate on centos7.

I have used bigrock.in for the domain registration and procuring the certificates

Create a certificate request

  1. Create a folder to put all our ssl certificates

     mkdir /etc/nginx/ssl/c2r_com
    

cd /etc/nginx/ssl/c2r_com