Skip to content

Instantly share code, notes, and snippets.

View abdulnine7's full-sized avatar

Abdul Noushad Sheikh abdulnine7

View GitHub Profile
@abdulnine7
abdulnine7 / GitHubMarkdownToPDF.js
Created October 8, 2023 20:38
Transform any GitHub Markdown (MD) file into a print-friendly format by removing extraneous UI elements. Ideal for converting READMEs or other documentation to PDF using your browser's print feature. Simply navigate to your desired MD file on GitHub, paste the script into your browser's console, and print.
// Removes the header which contains the main GitHub navigation and search bar.
document.querySelector('header').remove();
// Removes the main container that surrounds the entire page content, which may contain additional UI elements.
document.querySelector('.container').remove();
// Removes the sticky header which displays when scrolling, typically showing repository name and star/fork/watch actions.
document.querySelector('#repos-sticky-header').remove();
// Removes a box element. Note that the class `.Box-sc-g0xbh4-0.kLxXov` seems auto-generated and may change over time.
@abdulnine7
abdulnine7 / macChange.sh
Created September 29, 2019 10:33
MAC Address Changer Script
#!/bin/bash
echo
echo "========================================================"
echo "Script : MAC Address Changer Script"
echo
echo "Author : Abdul Noushad Sheikh"
echo
date
echo
echo "Note : To check device interface name try command => ifconfig"
@abdulnine7
abdulnine7 / pendrive.sh
Last active October 25, 2023 20:35
Auto copy files from USB to Linux Machine
#!/bin/bash
##################################################################################################
#
#
# Automatic copy files from USB to computer on connect!
#
#
# Author: Abdul Noushad Sheikh ('abdulnine7' on GitHub)
#