THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| # Put this function to your .bashrc file. | |
| # Usage: mv oldfilename | |
| # If you call mv without the second parameter it will prompt you to edit the filename on command line. | |
| # Original mv is called when it's called with more than one argument. | |
| # It's useful when you want to change just a few letters in a long name. | |
| # | |
| # Also see: | |
| # - imv from renameutils | |
| # - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste) |
| #!/bin/sh | |
| RESET=`tput sgr0` | |
| RED=`tput setaf 1` | |
| GREEN=`tput setaf 2` | |
| if [ "$1" ]; then | |
| if ! [ -e "$1" ] | |
| then |
| #!/bin/bash | |
| # 1. Install this as `/usr/local/etc/rc.d/rc.netdata` | |
| # 2. Create the directory `/volume1/netdata` | |
| # 3. Symlink `/opt/netdata` to `/volume1/netdata` | |
| # 4. Create a triggered task with Task Scheduler to call `/usr/local/etc/rc.d/rc.netdata start` at boot. | |
| # - (You may have to turn on Advanced Mode in the Control Panel to see Task Scheduler) | |
| # 5. Either reboot or run `sudo /usr/local/etc/rc.d/rc.netdata start` | |
| # If you get an error about "Connection Failed," then you've already run Netdata and filled `/`. |
| <div>Execution ${execution.id} was <b>${execution.status}</b></div> | |
| <ul> | |
| <li><a href="${execution.href}">Execution result</a></li> | |
| <li><a href="${job.href}">Job</a></li> | |
| <li><a href="${execution.projectHref}">Project: ${execution.project}</a></li> | |
| <li><a href="${rundeck.href}">Rundeck</a></li> | |
| </ul> | |
| <p> | |
| </p> |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| #!/bin/sh | |
| echo Install all AppStore Apps at first! | |
| # no solution to automate AppStore installs | |
| read -p "Press any key to continue... " -n1 -s | |
| echo '\n' | |
| echo Install and Set San Francisco as System Font | |
| ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
| echo Install Homebrew, Postgres, wget and cask | |
| ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
Problem: When linking to the raw version of a gist, the link changes with each revision.
Solution:
To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/
To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]