Skip to content

Instantly share code, notes, and snippets.

View bijoy26's full-sized avatar
🎯
Focusing

Anjum Rashid bijoy26

🎯
Focusing
View GitHub Profile
@bijoy26
bijoy26 / Pair_Lister.README.md
Last active September 29, 2022 17:41
A text formatter script that generates a list of command-comment pairs based on line numbers

Pair_lister.sh Overview

pair_lister.sh is a mini bash script that generates a list of command-comment pairs based on line numbers.

Background

Generally, a cheat-sheet contains a set of notes for quick reference mostly consisting of command-comment pairs with some additional descriptions.

  • Sometimes you may prefer creating your own cheat-sheets while learning a specific technology from online sources such as PDFs, blogs or contents.

  • Catch is, the text becomes really messy when the markup data is copied from a browser page and pasted on a notepad. It requires a bit of text processing to make it look nice.

@bijoy26
bijoy26 / spawn_user.sh
Last active June 7, 2021 07:47
Create a new Debian based non-root user with specified group
#!/bin/bash
#####################################
# File: spawn_user.sh
# Description: Create a new Debian based non-root user with specified group
# Created: Thursday, 2nd June 2021
# Author: Anjum Rashid
# -----
# Last Modified: Tuesday, Thursday, 3rd June 2021
# -----
@bijoy26
bijoy26 / yt_grabber.sh
Last active May 18, 2021 16:19
Extract YouTube thumbnail images of standard and max resolutions
#!/bin/bash
#####################################
# File: yt_grabber.sh
# Description: Extract YouTube thumbnail images of multiple resolutions
# Created: Monday, 17th May 2021
# Author: Anjum Rashid
# -----
# Last Modified: Tuesday, 18th May 2021
# -----
@bijoy26
bijoy26 / README.md
Last active May 18, 2021 16:38
Automation script to setup the tmux environment for connecting with TryHackMe platform

TryHackMe Auto Connector

Tmux + OpenVPN + THM = 💖

While practising CTF / Pentesting on platforms like TryHackMe / HackTheBox etc., some necessary steps need to be performed every single time such as-

  1. Spawn a new tmux session
  2. Use OpenVPN to connect with their private VPN server
  3. Authenticate with sudo (if non-root user)
  4. Create a new clean terminal (tmux window)

These usual jobs can be automated to increase productivity and save time-

@bijoy26
bijoy26 / robots.txt
Last active May 20, 2021 09:32
A sample robots.txt file for example purpose
# Applicable for googlebot
User-agent: googlebot
# Disallow following directories
Disallow: /img
Disalow: /data/classified/
#Only a png image file is allowed
Allow: /img/favicon/android-chrome-512x512.png
@bijoy26
bijoy26 / metaTagsDemo.html
Last active May 20, 2021 09:33
Meta Tags of microsoft.com
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="twitter:url" content="https://www.microsoft.com/en-us" />
<meta property="og:url" content="https://www.microsoft.com/en-us" />