Skip to content

Instantly share code, notes, and snippets.

View ditikrushna's full-sized avatar

Ditikrushna Giri ditikrushna

View GitHub Profile
@ditikrushna
ditikrushna / private_fork.md
Created April 13, 2024 17:21 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@ditikrushna
ditikrushna / express-routes-mapper.md
Last active February 14, 2022 14:45
express-routes-mapper

Build Status Coverage Status

A simple package to map your routes for your expressjs application


IMPORTANT: v1.0.2 fixed a security vulnerability. Every version up to v1.0.1 is not safe for production. Update your current version to v1.0.2 or higher. You can find more information here.

@ditikrushna
ditikrushna / script.sh
Created February 11, 2022 09:52
Clone Existing Repo to AWS EC2
Step : 1
// Navigate to the directory
cd /var/www/html
Step : 2
// Clone the contents of the Repo into this directory using SSH.
@ditikrushna
ditikrushna / script.sh
Created February 11, 2022 08:41
How to Install Redis on EC2 Instance
Step : 1
sudo yum -y install gcc make # install GCC compiler
cd /usr/local/src
sudo wget http://download.redis.io/redis-stable.tar.gz
sudo tar xvzf redis-stable.tar.gz
sudo rm -f redis-stable.tar.gz
cd redis-stable
sudo yum groupinstall "Development Tools"
sudo make distclean
@ditikrushna
ditikrushna / install_redisinsight.sh
Last active September 11, 2021 20:19
install_redisinsight_in_ubuntu.sh
curl -O https://d3fyopse48vfpi.cloudfront.net/latest/redisinsight-linux64
chmod +x redisinsight-linux64
./redisinsight-linux64
@ditikrushna
ditikrushna / file.txt
Last active September 11, 2021 18:45
Here, I will show you how to install MongoDB compass in ubuntu.
step 1 : apt-get update
step 2 : wget https://downloads.mongodb.com/compass/mongodb-compass_1.15.1_amd64.deb
step 3 : sudo dpkg -i mongodb-compass_1.15.1_amd64.deb
step 4 : Now go to applications, select/search for MongoDB compass.
How to uninstall mongodb compass from Ubuntu 18.04
sudo dpkg --remove mongodb-compass
@ditikrushna
ditikrushna / kubectl.txt
Created June 24, 2021 16:09
Installation Instrction for kubectl (MAC)
# Download the Package
mkdir kubectlbinary
cd kubectlbinary
curl -o kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.16.8/2020-04-16/bin/darwin/amd64/kubectl
# Provide execute permissions
chmod +x ./kubectl
# Set the Path by copying to user Home Directory
mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$PATH:$HOME/bin
@ditikrushna
ditikrushna / eksctl CLI Installation Instruction .txt
Last active June 24, 2021 16:10
eksctl Installation Instruction
# Install Homebrew on MacOs
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Install the Weaveworks Homebrew tap.
brew tap weaveworks/tap
# Install the Weaveworks Homebrew tap.
brew install weaveworks/tap/eksctl
# Verify eksctl version
@ditikrushna
ditikrushna / install-redis.md
Created May 19, 2021 19:07 — forked from hackedunit/install-redis.md
Install and configure Redis on Ubuntu 16.04 with systemd
  1. Install pre-requisities

sudo apt-get install build-essential tcl

  1. Install Redis
cd /tmp
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
@ditikrushna
ditikrushna / redis-node.js
Created May 4, 2021 09:01
Caching API with Redis and Node
"use strict"
const express = require("express");
const fetch = require("node-fetch");
const redis = require("redis");
const app = express();
const PORT = process.env.PORT || 4000 ;
const PORT_REDIS = process.env.PORT || 6379 ;