Giter Club home page Giter Club logo

setup's Introduction

Setup

Useful perhaps only to me, but I encourage poking around and forking.

Quick-start Development Environment

NOTE: The following should only be done on machines that don't already have an owner who is a developer. As an administrator, you'll potentially be screwing with their setup.

1. Create a User

  1. Log into the machine as an administrator and make a new user in the Users & Groups preference panel:

    Full Name: Matthew McVickar Account Name: (automatic, probably 'matthewmcvickar') Password: ಠ_ಠ

  2. Make that user an administrator. This is necessary.

  3. Log in as that user for the first time. Click through dialogs. OS X starts.

2. Run Initialization Script

  1. Go here. github.com/matthewmcvickar/setup

  2. Open Terminal.

  3. Copy, paste, and run the initialization script.

    curl -s https://raw.githubusercontent.com/matthewmcvickar/setup/master/init.sh | bash

    This does the following:

    • Removes all icons from the Dock.
    • Sets up ~/Sites directory structure.
    • Unhides ~/Library.
    • Installs Homebrew and packages.
    • Configures Git username and email address.
    • Installs Homebrew Cask and desktop apps:
    • Sets up Sublime Text command line tool.
    • Fixes permissions on /usr/local/ and ~/.npm to avoid problems with sudo and Node.
    • Installs Grunt, Bower, Node libsass and the SASS Gem.

    If something goes wrong during this process, use the following to uninstall HomeBrew:

    $ curl -s https://gist.githubusercontent.com/mxcl/1173223/raw/a833ba44e7be8428d877e58640720ff43c59dbad/uninstall_homebrew.sh | bash

    Then open another window and delete the folders that Homebrew and Homebrew Cask created:

    $ sudo rm -rf /usr/local/ /opt/homebrew-cask

3. Configure Finder and Desktop Apps

  1. Open Keyboard preferences. Check 'Use all F1, F2, etc. keys as standard function keys.'

  2. Open 1 Password. It will automatically sync to iCloud.

  3. Quit Safari. Open Chrome. Get Google password from 1 Password and log in to Chrome.

  4. Navigate here to resume following instructions. github.com/matthewmcvickar/setup

  5. Get Alfred license key from 1 Password. Open Alfred. Enter license key.

  6. In Alfred preferences, set sync to ~/Library/Mobile Documents/. Close Alfred preferences.

  7. Link Homebrew Cask to Alfred:

    $ brew cask alfred link
  8. Open a Finder window. Open Finder preferences.

    • General
      • New Finder windows show: Desktop
    • Sidebar
      • Hide All My Files.
      • Hide AirDrop.
      • Show home folder.
      • Hide all under Shared.
      • Hide Tags.
    • Advanced
      • Show all filename extensions.
  9. Go to ~/Applications. Drag the following applications to the Dock:

    • Chrome
    • iTerm
    • Sublime Text
  10. Launch everything in ~/Applications.

  11. Quit Terminal. Open iTerm. Update it. Relaunch.

  12. Open iTerm preferences and set sync to ~/Library/Mobile Documents/.

  13. Open TextExpander. Give it Accessibility access.

  14. Relaunch TextExpander. Enter license key from 1 Password.

  15. Symlink TextExpander preferences to iCloud version:

    $ cd ~/Library/Application\ Support/TextExpander/
    $ rm Settings.textexpander
    $ ln -s ~/Library/Mobile\ Documents/Settings.textexpander

4. Install Mac App Store Apps

Unfortunately, there is no way to automate this.

  1. Launch the App Store, sign in, and go the Purchases tab to find these apps.

    • Divvy
    • xScope
    • LiveReload
    • Patterns
  2. Give Divvy accessibility access in System Preferences → Security & Privacy → Accessibility.

  3. Launch Divvy. Quit Divvy.

  4. Symlink Divvy preferences to iCloud version:

    $ cd ~/Library/Preferences
    $ rm com.mizage.Divvy.plist
    $ killall cfprefsd
    $ ln -s ~/Library/Mobile\ Documents/com.mizage.Divvy.plist

    If this doesn't work, you can export and import Divvy's shortcuts.

    As of 2019-02-10, here is my shortcuts block:

    divvy://import/YnBsaXN0MDDUAQIDBAUGvL1YJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoK8QHgcIGjEyOUNETk9aW2Rlb3B5eoOEjI2Vlp+gqqu2t1UkbnVsbNIJCgsZWk5TLm9iamVjdHNWJGNsYXNzrQwNDg8QERITFBUWFxiAAoAFgAeACYALgA2AD4ARgBOAFYAXgBmAG4Ad3RscHR4fCiAhIiMkJSYnKCkqKywoKycuLykwWHNpemVSb3dzXxAPc2VsZWN0aW9uRW5kUm93XxARc2VsZWN0aW9uU3RhcnRSb3dac3ViZGl2aWRlZFZnbG9iYWxfEBJzZWxlY3Rpb25FbmRDb2x1bW5XZW5hYmxlZFtzaXplQ29sdW1uc1duYW1lS2V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mxlQXJyYXmjuLq7V05TQXJyYXlYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRvr9Ucm9vdIABAAgAEQAaACMALQAyADcAWABeAGMAbgB1AIMAhQCHAIkAiwCNAI8AkQCTAJUAlwCZAJsAnQCfALoAwwDVAOkA9AD7ARABGAEkASwBOQFQAV4BYAFiAWQBZQFmAWgBaQFrAW0BcgF+AYMBjgGXAaABowGsAbUB0AHRAdIB1AHWAdcB2QHbAd0B4gHvAgoCCwIMAg4CEAIRAhMCFQIXAhwCIwI+AkACQQJCAkQCRgJHAkkCSwJNAlICXAJ3AngCeQJ7AnwCfgKAAoIChwKPAqoCrAKtAq4CsAKyArMCtQK3ArwC2ALzAvQC9QL3AvkC+gL8Av4DAwMPAyoDKwMsAy4DMAMxAzMDNQM6A0QDXwNgA2EDYwNkA2YDaANtA3gDkwOUA5UDlwOYA5oDnAOhA6gDwwPFA8YDxwPJA8oDzAPOA9MD3gP5A/sD/AP9A/8EAAQCBAQEBgQLBBgEMwQ1BDYENwQ5BDsEPAQ+BEAEQgRHBFMEWARnBGsEcwR8BI4EkQSWAAAAAAAAAgEAAAAAAAAAwAAAAAAAAAAAAAAAAAAABJg=
    

    And the General and Appearance settings:

5. Set Up SSH Key, Dotfiles, and Sublime Text Preferences

  1. Create a new SSH key.

    $ ssh-keygen -t rsa -C "[email protected]"
    $ eval "$(ssh-agent -s)"
    $ ssh-add ~/.ssh/id_rsa
    $ pbcopy < ~/.ssh/id_rsa.pub
  2. Add SSH key to GitHub settings.

  3. Get dotfiles.

    $ cd ~/Sites/matthewmcvickar
    $ git clone https://github.com/matthewmcvickar/dotfiles.git
    $ cd dotfiles
    $ bash ~/Sites/matthewmcvickar/dotfiles/build_dotfiles.sh --force
    $ source ~/.bash_profile
  4. Launch Sublime Text. Then quit Sublime Text.

  5. Get Sublime Text preferences.

    $ cd ~/Sites/matthewmcvickar/
    $ git clone [email protected]:matthewmcvickar/sublime-text-preferences.git
    $ cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
    $ rm -r User
    $ ln -s ~/Sites/matthewmcvickar/sublime-text-preferences/ User
  6. Fix SASS syntax highlighting in Sublime Text:

    sed -i '' '/<string>sass<\/string>/d' ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Rails/Ruby\ Haml.tmLanguage
  7. Launch Sublime Text.

Set OS X defaults

  1. (su)Do it!

    $ cd ~/Sites/matthewmcvickar/dotfiles
    $ ./.osx
  2. Restart!

Configure Development Environment Even More

  • If you need to install Ruby:

    $ brew install rbenv ruby-build
    $ rbenv install 1.9.3-p484
    $ rbenv global 1.9.3-p484
    $ gem update --system

Full Setup

When you are doing more than just working on the machine.

NOTE: This section is very much incomplete. See the [OS X Defaults](OS X Defaults.md) document for more notes.

Install Apps from Mac App Store

There is no way to automate this.

  • Fantastical
  • Byword
  • Day One
  • Joystick Mapper
  • Melo
  • MsgFiler

Home Folder

Copy to new home folder:

  • Desktop
  • Documents
  • Downloads
  • Dropbox
  • Movies
  • Music
  • Pictures
  • Public
  • Scripts

Photos.app

  • Launch Photos.app while holding ⌥. Select Photos.app library on ‘Portable’ disk.

MS Office

Adobe Creative Cloud

setup's People

Contributors

matthewmcvickar avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.