Skip to content

Instantly share code, notes, and snippets.

View riturajborpujari's full-sized avatar
🎯
Solving Business needs

Rituraj Borpujari riturajborpujari

🎯
Solving Business needs
View GitHub Profile
@riturajborpujari
riturajborpujari / dmks.sh
Created April 28, 2024 08:02
directory bookmarks in shell
# save the present working directory into bookmarks file
alias dmk="pwd >> ~/.dmks"
# cd into a bookmarked directory by fzf selection
alias cdmk="cd \$(cat ~/.dmks | fzf)"
@riturajborpujari
riturajborpujari / booting_from_grub_cli.md
Last active January 22, 2021 10:06
Booting from Grub CLI

GRUB CLI usage for boot

Boot into recovery mode using Grub cli

Entering Grub cli

After the initial BIOS splash screen, press Shift to open GRUB menu. Then press c to enter CLI mode.

You will see a terminal like following

grub> 
@riturajborpujari
riturajborpujari / ssh_tunnelling.md
Last active December 14, 2022 16:50
SSH tunnelling

SSH Tunnelling

Connect local port to server port

Introduction

An SSH tunnel creates a connection between a port on your local machine and a address + port on the server, and tunnels the data to the server over SSH on port 22 to the server address + port.

This is done so that it doesn't get blocked by any firewalls or security groups (assuming only SSH connections are allowed to the server). After the data reaches the SSH server it gets forwarded to the address + port you specified when you created the SSH tunnel.

An important detail here is that the destination address + port are accessed from the context of the server, so localhost or 127.0.0.1 refer to the server machine on the destination side of the tunnel, not your local machine.

@riturajborpujari
riturajborpujari / mongosql_as_service.md
Last active January 22, 2021 10:00
MongoSQL as a service

MongoSQL as service

Run mongosql as a service with auto start on server restart

Download MongoSQL

  1. Download the BI Connector from the MongoDB Download Center

  2. Install the MongoDB Connector for BI.

    Extract the .tar archive you downloaded.