/Oh-My-Scripts

Scripts to improve your workflow! Bash and AppleScript magic. 🎩

Primary LanguageShell

Oh My Scripts!

A collection of random scripts I've created to speed up my workflow. Feel free to use!

count-commits.sh

Counting the number of Git commits for a user or get an overview of the number of commits for all users.

database-dump.sh

Dump and copy a remote database (e.g. AWS RDS instance) to your local machine.

dev-to-prod.sh

Move a dev dependency to product dependencies.

duet.sh

Script to set the arrangement of a second monitor. In my case, I vertically align my iPad, which is running Duet.

iterm-panes.applescript

Open up an iTerm with multiples panes and run commands. Useful for running full-stack projects quickly.

airpodsconnect.applescript

Connect your airpods to your MacBook without touching the mouse!

prod-to-dev.sh

Move a dependency to dev dependencies.

push-branch.sh

Before pushing a branch, checks if latest changes have been pulled, if console.logs are present, and shows a gif diff of changes. Lots of cool emojis and colors, too!

readscript.sh

Simple script showing the read input function (demo for a colleague).

tasks.json

Assuming you use VSCode, place this tasks.json file inside your /.vscode folder (you may have to create it). Now when opening up your workspace each time, vscode will automatically pull for upstream changes, install any new modules, and then start the development client inside the integrated terminal. Super cool!! Note: You many need to manually run the tasks once to get VSCode to run them automatically. Use the command pallette and write "Run Task" and run, say, Git Pull. VSCode should the ask if you want to give permission to automatically run tasks.json

wifi-connect.applescript

Connect your wifi without touching the mouse!