ZackMFleischman / scripts

Toolkit Utility Scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scripts

TONS of utility scripts I've written over the years.

Notable scripts I use all the time:

Git Related

  • b: Short for "branches". Dump the last 10 git branches I used with a number next to it. Run it again with that number to switch to that branch.
  • cr: Short "Checkout Remote". This will fetch all remote branches, then checkout a new branch against the remote branch that already exists.

Utility Scripts

  • ff: Short for "Find File". This will take a search term and recursively search from the current directory for any files containing the search term in the name. It will list them with a number next to it. Running the script again with that number will open that file in vim.
  • internet: I run this when the internet is down. It will wait until the internet is back up, then send me an email, a text, and pop a notification on my desktop that the internet is back up. (See also pingup, which does the same thing for an arbitrary website or server.)
  • email: This will send an email through my gmail account. It takes CLI args for to, cc, bcc, subject, and body. It will also read the body in from standard in so you can pipe program output into an email.
  • text: Sends me a text message with whatever string is passed.
  • dump: Dumps the content of the script passed as a parameter. This will work anywhere for any script as long as the script is on the PATH.
  • change: Opens a script up in vim regardless of where your current working directory is as long as the script is on the PATH.
  • ip: Dumps your public facing IP address to the console.

About

Toolkit Utility Scripts


Languages

Language:Shell 52.1%Language:Perl 25.5%Language:Python 22.4%