Skip to content

Instantly share code, notes, and snippets.

@vjo
Last active February 17, 2016 10:57
Show Gist options
  • Save vjo/6529d3c99370a090d3ea to your computer and use it in GitHub Desktop.
Save vjo/6529d3c99370a090d3ea to your computer and use it in GitHub Desktop.
Install software and code sample on macs for a coding course.
#!/bin/sh
echo "Move on Desktop";
cd ~/Desktop;
echo "Install Brew";
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)";
echo "Install Brew Cask";
brew install cask;
echo "Install Chrome";
brew cask install --appdir="~/Desktop" google-chrome;
echo "Install Atom";
brew cask install --appdir="~/Desktop" atom;
echo "Download code.zip";
curl -Lk https://db.tt/gfJeppiT --output code.zip;
echo "Open code.zip";
open code.zip;
sleep 2;
echo "Remove code.zip";
rm -rf code.zip;
echo "Disable natural scrolling"
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false;
echo "Hide Dock";
defaults write com.apple.Dock tilesize -int 1;
defaults write com.apple.Dock autohide-delay -float 0;
defaults write com.apple.Dock autohide -bool true;
killall Dock;
echo "Create Deposit shortcut"
echo "<meta http-equiv=\"refresh\" content=\"0;URL='https://www.dropbox.com/request/KMy3A9r8oloIocNuwUNn'\" />" >> Deposit.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment