Skip to content

Instantly share code, notes, and snippets.

View lordlabuckdas's full-sized avatar
💤
:wq

krishna lordlabuckdas

💤
:wq
View GitHub Profile
@lordlabuckdas
lordlabuckdas / requirements.txt
Created May 25, 2021 10:25
a handy python script to retrieve "This Week in History" from onthisday.com and save it to `hlights.txt`
beautifulsoup4==4.9.1
certifi==2020.6.20
chardet==3.0.4
idna==2.10
requests==2.24.0
soupsieve==2.0.1
urllib3==1.25.10
@lordlabuckdas
lordlabuckdas / cronjob.example
Last active May 25, 2021 10:19
a rudimentary bash script w/ cronjobs to check for MITM attacks through gateway MAC comparison from ARP tables
# run `crontab -e` to edit cronjobs for the current user and add the contents of this file
# create initial ARP table immediately after boot
@reboot arp -e | grep : | cut -d ' ' -f 1,21 > /tmp/init_arptab.txt
# run the MITM checker script every 2nd minute
# 2 minutes is an arbitrary value, feel free to change the interval to your liking
*/2 * * * * bash $HOME/mitm_checker.sh
@lordlabuckdas
lordlabuckdas / z
Last active May 27, 2021 07:04
a zathura wrapper script for displaying markdown and pdf files using pandoc
#!/bin/bash
# add this to `$HOME/.local/bin` or somewhere in your $PATH
# TODO: implement hash-based caching system to prevent unnecessary pandoc conversion calls
print_usage() {
echo "Zathura wrapper for displaying md and pdf files"
echo -e "Usage:\n\tz FILENAME"
}