Skip to content

Instantly share code, notes, and snippets.

View jatinkrmalik's full-sized avatar
👨‍💻
munching code

Jatin K Malik jatinkrmalik

👨‍💻
munching code
View GitHub Profile
@jatinkrmalik
jatinkrmalik / data.md
Last active January 20, 2025 06:23
RSS Feed/Blogs from @0xGlitchbyte
@jatinkrmalik
jatinkrmalik / christmas_tree.py
Last active December 25, 2024 20:14
Colorful Christmas Tree Generator in Python
"""
Christmas Tree Terminal Program
This program prints a festive Christmas tree in your terminal based on the height of your terminal or a specified height.
It also displays a large "Merry Christmas!" greeting below the tree.
### How to Run:
1. Install dependencies:
pip install colorama pyfiglet
2. Run the script:
@jatinkrmalik
jatinkrmalik / excel_to_csv.py
Created October 15, 2024 19:44
excel_to_csv.py
# pip install pandas openpyxl
import sys
import pandas as pd
def excel_to_csv(excel_file_path, sheet_name=0, csv_file_path=None):
# Read the Excel file
try:
df = pd.read_excel(excel_file_path, sheet_name=sheet_name)
except Exception as e:
@jatinkrmalik
jatinkrmalik / dom3d.js
Created October 7, 2024 20:39 — forked from OrionReed/dom3d.js
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@jatinkrmalik
jatinkrmalik / dom3d.js
Created October 7, 2024 20:39 — forked from OrionReed/dom3d.js
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@jatinkrmalik
jatinkrmalik / dork_it.md
Created September 24, 2024 15:03
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.


@jatinkrmalik
jatinkrmalik / gpt_cli.py
Last active July 25, 2023 07:05
ChatGPT CLI [Python App]
"""
Author: @jatinkrmalik
This script creates a chat interface between the user and OpenAI's GPT model.
Instructions to run the program:
1. Set your OpenAI API key as an environment variable in your terminal session. You can do this by running the following command:
export OPENAI_API_KEY='your-api-key-here'
Remember to replace 'your-api-key-here' with your actual OpenAI API key.
2. After setting the API key, you can run the script with the following command:
python gpt_cli.py
3. Once the script is running, you can start typing your messages into the terminal. The model's responses will be printed out. You can keep the conversation going for as long as you like.
@jatinkrmalik
jatinkrmalik / addAllConnections.js
Last active December 25, 2024 07:00
Bulk add everyone on "My Network" tab on LinkedIn
/*#### Bulk add everyone on "My Network" tab on LinkedIn with cooldown ####*/
// ---==== Steps to use ====---
// 1. Go to https://www.linkedin.com/mynetwork/invitation-manager/
// 2. Open Dev Console in your browser. Google "how to open dev console in <your-browser-name> for instructions".
// 3. Type `allow pasting` in the console and press Enter to enable script pasting in Chrome (required as Chrome blocks pasting scripts by default).
// 4. Go to Console tab.
// 5. Paste the script below into the console window and press enter.
// 6. Configure coolDownTime as desired.
// 7. ????
@jatinkrmalik
jatinkrmalik / archive.js
Last active September 25, 2021 16:31
Bulk archive old facebook posts
// Bulk archive old facebook posts
// Writen by: @jatinkrmalik
// # Usage guide:
// 1. Open https://www.facebook.com/<your_user_id>/allactivity/
// 2. Click on "Manage activity" in the left panel.
// 3. Make sure "Your posts" is selected.
// 4. Execute the script in dev console.
// 5. ???
// 6. PROFIT!
@jatinkrmalik
jatinkrmalik / tally_backup.py
Created October 30, 2019 16:00
This auto backups the zip and folder for tally data
#!/usr/bin/env python3
"""tally_backup.py: this auto backups the zip and folder for tally data."""
__author__ = "Jatin Kumar Malik (@jatinkmalik)"
import os
import zipfile
import shutil