Your friendly shell companion that supercharges developer productivity with carefully crafted aliases and functions! π
curl -o ~/shelpers https://raw.githubusercontent.com/mukeshjc/shellmate/main/shelpers && echo "source ~/shelpers" >> ~/.$(basename $SHELL)rc && source ~/.$(basename $SHELL)rc
Converts CSV data to JSON format
echo "name,age\njohn,25" | csvtojson
# Output: [{"name":"john","age":"25"}]
Find common lines between two files
files-intersection <(sort users1.txt) <(sort users2.txt)
# Output: Lines that exist in both files
Find lines that are in first file but not in second
files-difference <(sort users1.txt) <(sort users2.txt)
# Output: Lines unique to users1.txt
Securely copy files (recursively if the source is a directory) from your EC2 dev machine to local
scpfrom /remote/path/file.txt /local/path/
# Copies file.txt from EC2 to local path
Securely copy files (recursively if the source is a directory) from local to your EC2 dev machine
scpto /local/path/file.txt /remote/path/
# Copies file.txt from local to EC2
One-time directory sync between local and EC2 using rsync
sync /local/project/dir /remote/project/dir
# Syncs local directory to EC2
Continuous background sync of development directories to EC2 (runs every 5 seconds)
contsync &
# Starts background sync process
- Run
contsync &
when you want to work locally but keep your EC2 environment in sync - The sync interval can be adjusted by modifying the
sleep
value in thecontsync
function - Make sure your EC2_DEV_MACHINE_IP environment variable is set before using the sync functions
- SSH key at
~/cloud-dev-server.pem
EC2_DEV_MACHINE_IP
environment variable setjq
installed for csvtojson aliasrsync
installed for sync functions
Feel free to add your own productivity boosters! PRs welcome! π