Skip to content

Instantly share code, notes, and snippets.

@felipemeamaral
Forked from sbehrends/MacOS Catalina Dev Setup
Created January 22, 2017 04:32
Show Gist options
  • Select an option

  • Save felipemeamaral/03fce7a4bd5ae4a0b84b8dba52e2d09c to your computer and use it in GitHub Desktop.

Select an option

Save felipemeamaral/03fce7a4bd5ae4a0b84b8dba52e2d09c to your computer and use it in GitHub Desktop.

Revisions

  1. @sbehrends sbehrends revised this gist Aug 18, 2016. 1 changed file with 19 additions and 1 deletion.
    20 changes: 19 additions & 1 deletion MacOS Sierra Dev Setup
    Original file line number Diff line number Diff line change
    @@ -53,4 +53,22 @@ os.system('npm install -g yo bower gulp-cli grunt-cli node-gyp nvm')
    os.system('brew cask install iterm2 spectacle the-unarchiver')
    os.system('brew cask install google-chrome firefox sourcetree sublime-text dropbox skype spotify slack vlc macdown')

    s.system('brew cask install sequel-pro cyberduck docker ngrok')
    os.system('brew cask install sequel-pro cyberduck docker ngrok')

    # Finder: allow text selection in Quick Look
    os.system('defaults write com.apple.finder QLEnableTextSelection -bool true')
    # Check for software updates daily
    os.system('defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1')
    # Disable auto-correct
    #os.system('defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false')
    # Require password immediately after sleep or screen saver begins
    os.system('defaults write com.apple.screensaver askForPassword -int 1')
    os.system('defaults write com.apple.screensaver askForPasswordDelay -int 0')
    # Show the ~/Library folder
    os.system('chflags nohidden ~/Library')
    # Don’t automatically rearrange Spaces based on most recent use
    os.system('defaults write com.apple.dock mru-spaces -bool false')
    # Prevent Time Machine from prompting to use new hard drives as backup volume
    os.system('defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true')
    # Mute startup sound
    os.system('sudo nvram SystemAudioVolume=", "')
  2. @sbehrends sbehrends revised this gist Aug 18, 2016. 1 changed file with 48 additions and 3 deletions.
    51 changes: 48 additions & 3 deletions MacOS Sierra Dev Setup
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,56 @@
    #!/Library/Frameworks/Python.framework/Versions/2.7/bin/python
    # Frok from https://github.com/Aerolab/setup/blob/master/setup.py
    # -*- coding: utf-8 -*-

    import os
    import json
    import urllib2

    print "Welcome... TO THE WORLD OF TOMORROW"

    name = ''
    email = ''
    email = ''

    # Basic Info
    while name == '':
    name = raw_input("What's your name?\n").strip()

    while email == '' or '@' not in email:
    email = raw_input("What's your email?\n").strip()

    print "Hi %s!" % name
    print "You'll be asked for your password at a few points in the process"
    print "*************************************"
    print "Setting up your Mac..."
    print "*************************************"


    # Create a Private Key
    if not os.path.isfile(os.path.expanduser("~") + '/.ssh/id_rsa.pub'):
    print "Creating your Private Key"
    os.system('ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -N "" -C "%s"' % email)

    # Check if Xcode Command Line Tools are installed
    if os.system('xcode-select -p') != 0:
    print "Installing XCode Tools"
    os.system('xcode-select --install')
    print "*************************************"
    print "Restart your Mac to continue"
    print "*************************************"
    exit()

    # Install Brew & Brew Cask
    print "Installing Brew & Brew Cask"
    os.system('/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"')
    os.system('brew tap caskroom/cask')
    os.system('brew tap homebrew/services')
    os.system('brew update && brew upgrade && brew cleanup && brew cask cleanup')
    os.system('brew install git node python python3 ruby')
    os.system('brew link --overwrite git node python python3 ruby')
    os.system('brew install git-flow')

    os.system('brew install graphicsmagick curl wget libpng libxml2 openssl')
    os.system('npm install -g yo bower gulp-cli grunt-cli node-gyp nvm')

    os.system('brew cask install iterm2 spectacle the-unarchiver')
    os.system('brew cask install google-chrome firefox sourcetree sublime-text dropbox skype spotify slack vlc macdown')

    s.system('brew cask install sequel-pro cyberduck docker ngrok')
  3. @sbehrends sbehrends created this gist Aug 18, 2016.
    11 changes: 11 additions & 0 deletions MacOS Sierra Dev Setup
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/Library/Frameworks/Python.framework/Versions/2.7/bin/python
    # -*- coding: utf-8 -*-

    import os
    import json
    import urllib2

    print "Welcome... TO THE WORLD OF TOMORROW"

    name = ''
    email = ''