This repo contains a large collection of random scripts that I have written over the years for automating repetitive things. I have the habit of scripting any tasks even if there is a slight chance that I may have to repeat the same task. While some are specific to my needs that can be customized for anyone, majority of them are parameterized so they work as is for anyone as a general handy tool. More than 90% of these are bash shell scripts but it also has some with perl, python and even PHP. While all of these run natively on Linux or MacOS, some require additional binaries installed on your OS with package managers like brew (on macOS) or apt/yum/other (on Linux). I usually mention at the top a script if it requires such binary packages that may or may not be part of the basic OS. I do use a lot of these on a day to day basis and some are old/obsolete etc. Follow the setup section below on how to set them up and use them.
While many of these can run standalone, I started requiring common functions located in util/logger.sh & util/functions.sh as includes. So the best way to install them is to clone the entire repository (it is pretty small i.e. < 5Mb) instead of cherry picking one or more scripts. You can choose one of the following methods (homebrew, or installer script or manual) to install. Enjoy!
If you are a homebrew user, you can use brew to install which is the easiest of all. Keep in mind you have to add the environment variable to your ~/.bashrc manually as brew does not recomend modifying users settings. With that said, do the following to install via brew.
brew tap aselvan/formulas
brew install aselvan-scripts
curl -s https://raw.githubusercontent.com/aselvan/scripts/master/install.sh | bash -s
mkdir -p $HOME/src
[ create if $HOME/src directory did not exist ]git clone https://github.com/aselvan/scripts.git $HOME/src/scripts.github
Andrioid adb scripts, busybox setup, cron, phone status/settings & misl scripts
Wrapper script to call tesla API to do various things like lock/unlock door, honk, location, enable keyless drive, etc.
Lot of useful/generic wrapper scripts here for file/directory/media manipulation etc.
MacOS only scripts to manupilate things under MacOS like cache cleanup, free wifi, network, launchctl cleanup etc.
Various tools/scripts/howtos to build a image for RaspberryPI to be used as IoT device or pentest device
PF (packet filter) based firewall script to tighten your macOS (works on Yosemite onwards) with your own firewall. Very simple to setup by editing the /etc/pf.conf file (read the pf_rules_simple.conf)
Simple script to call Kasa (TPlink) IoT bulb to turn on/off commandline. The kasa phone app is terrible and often looses connection to bulb and this script is very handy and reliable.
Script to import the blood glucose data exported from freestyle-libre reader, libreview export file as well as the liapp (android application). The data is stored in local sqlite DB and allows you to calcuate daily, weekly and monthly A1C from historical data.
Scripts for Google Apps Scripting platform
My google home automation scripts.
Run your own Jitsi (opensource equivelent of google meet, zoom etc) audio/video conf with dockerized images.
Misl. shell scripts to manipulate (clean, prune, tune, list, docker containers).
Linux related scripts
Misl scripts
Misl notes and worarounds scripts for ASUS GT-AX11000 router.
Security, password, encryption related random scripts
Random scripts for various things
Scripts for wifi enabled SD cards