Skip to content

Instantly share code, notes, and snippets.

View rohit1kumar's full-sized avatar
🎯
Focusing

Rohit Kumar rohit1kumar

🎯
Focusing
View GitHub Profile
@rohit1kumar
rohit1kumar / node_nginx_ssl.md
Created June 6, 2023 17:39 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@rohit1kumar
rohit1kumar / work-with-multiple-github-accounts.md
Created August 27, 2023 18:28 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@rohit1kumar
rohit1kumar / cloud.md
Last active May 12, 2024 09:10
cheapest vm pricing
name cpu memory storage bandwidth price misc
B1ls 1 0.5GB 4GB 5GB ₹340/month ₹229/month if paid for 1 year
B1s 1 1GB 4GB 5GB ₹681/month ₹460/month if paid for 1 year

| name | cpu | memory | storage | bandwidth | price | misc |

@rohit1kumar
rohit1kumar / compress_pdf.md
Last active September 12, 2024 05:55
Compress PDF with GhostScript
  1. Install GhostScript
    sudo apt install ghostscript #ubuntu
  1. Run
    gs -sDEVICE=pdfwrite \
       -dCompatibilityLevel=1.4 \
 -dPDFSETTINGS=/ebook \
@rohit1kumar
rohit1kumar / dork_it.md
Created September 25, 2024 06:05 — forked from jatinkrmalik/dork_it.md
Google Dorking

Google Dorking

Advanced Searching

Google Dorking describes the process of using advanced search filters that allow to retrieve more efficient results. It is a technique often used by cybersecurity professionals in order to find valuable information about a target.

Note: While Google Dorking itself is legal (in most countries), it might quickly lead to actions that aren't, such as visiting a site with illegal content in it.


@rohit1kumar
rohit1kumar / hls.sh
Created November 8, 2024 17:23 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then