Skip to content

Instantly share code, notes, and snippets.

@gaza3g
gaza3g / mac-setup.md
Last active November 22, 2018 07:45 — forked from orlando/mac-setup.md
Fresh Mac OS Setup

1. Run Software Update

Make sure everything is up to date in the App Store

2. Install Homebrew and Homebrew-Cask

  1. Open a terminal window and execute the Homebrew install script:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@gaza3g
gaza3g / hack.sh
Last active April 29, 2018 02:28 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
echo "Always show scrollbars"
defaults write NSGlobalDomain AppleShowScrollBars -string "Always"
echo "Show all filename extensions in Finder"
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
echo "Remove slow animations when holding shift"
defaults write NSGlobalDomain FXEnableSlowAnimation -bool false
@gaza3g
gaza3g / ssh-retry.sh
Created March 10, 2016 09:08 — forked from 9point6/ssh-retry.sh
Keep retrying SSH connection until success (Useful for waiting for VMs to boot)
#!/usr/bin/env bash
# Check we've got command line arguments
if [ -z "$*" ] ; then
echo "Need to specify ssh options"
exit 1
fi
# Start trying and retrying
((count = 100))
@gaza3g
gaza3g / osx_install.sh
Last active September 2, 2017 05:42 — forked from t-io/osx_install.sh
#!/bin/sh
#install xcode from appstore
# bash <(curl -s https://gist.githubusercontent.com/gaza3g/b606ca427911147946e9/raw/a6e457fb194a6cbc278760b05e6c08fed85c32e1/osx_install.sh)
echo Install XCode cmd tools
xcode-select --install
echo Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@gaza3g
gaza3g / .gitignore
Created April 12, 2012 01:58 — forked from ErikEvenson/.gitignore
Xcode 4 .gitignore file
.DS_Store
*.swp
*~.nib
build/
*.pbxuser
*.perspective
*.perspectivev3
@gaza3g
gaza3g / hack.sh
Created March 31, 2012 18:16 — forked from erikh/hack.sh
OSX For Hackers, Gazza Version
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2267306/hack.sh | sh
#