git clone --recursive http://github.com/ryanmaclean/5-min-belk-stack.git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo touch "/Library/Preferences/VMware Fusion/promiscAuthorized" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /config/dhcpd.leases | grep -E '(lease|client-hostname)' | tr -d { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/usr/local/sbin/mesos-slave --master=10.1.1.1:5050 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
newhostname=nmp | |
echo "$(ipconfig getifaddr en0) $newhostname" | sudo tee -a /etc/hosts | |
sudo scutil --set HostName $newhostname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo rm ~/Library/Caches/CloudKit/CloudKitMetadata*;sudo killall cloudd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Replace '1d' with the offending line number, for example '10d' would be for the 10th line | |
# The line number is the number after ":" in your warning, for example: | |
# "Offending ECDSA key in /home/root/.ssh/known_hosts:10" | |
sed -i '1d' ~/.ssh/known_hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Check to see if Homebrew is installed, and install it if it is not | |
command -v brew >/dev/null 2>&1 || { echo >&2 "Installing Homebrew Now"; \ | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cal -A 3 -B 2 | |
# Result | |
# February 2016 March 2016 April 2016 | |
#Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa | |
# 1 2 3 4 5 6 1 2 3 4 5 1 2 | |
# 7 8 9 10 11 12 13 6 7 8 9 10 11 12 3 4 5 6 7 8 9 | |
#14 15 16 17 18 19 20 13 14 15 16 17 18 19 10 11 12 13 14 15 16 | |
#21 22 23 24 25 26 27 20 21 22 23 24 25 26 17 18 19 20 21 22 23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Turn on job control to do more than one at a time | |
set -m | |
# Check to see if Homebrew is installed, and install it if it is not | |
command -v brew >/dev/null 2>&1 || { echo >&2 "You will need Homebrew to use this tool, installing now"; /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"; } | |
# Check to see if `netcat` is installed, install it if it is not | |
command -v netcat >/dev/null 2>&1 || { echo >&2 "You will also need netcat in order to use this tool, installing it now"; brew install netcat; } |