Code Monkey home page Code Monkey logo

setup.guide's Introduction

前端程序员的 macOS 搭建指南

Phodal HUANG's macOS setup guide.

  1. Install Xcode
  2. Download Apps (WeChat, JetBrains Toolbox, Adobe Creative Cloud)
  3. Install HomeBrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Install brew Casks
brew cask install google-chrome
brew cask install iterm2 sourcetree alfred

JDK

brew tap caskroom/versions
brew cask install java8

some tools

brew install wget nvm gradle git-extras scrcpy coreutils gnu-sed  —with-default-names

Daily

brew cask install neteasemusic sketch thunder firefox qq baiducloud
brew cask install virtualbox shadowsocksx charles

NVM

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash

config

export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

ZSH

change shell

brew install zsh
chsh -s /bin/zsh

Oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Zsh AutoSuggestions

1.clone

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions

2.source

source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh

Emacs

install

brew install emacs --HEAD  --with-gnutls --with-cocoa --with-mailutils  --with-librsvg --with-ctags --without-libxml2 --with-modules --with-imagemagick@6

config

git clone https://github.com/purcell/emacs.d.git ~/.emacs.d

iOS

brew install libimobiledevice carthage --HEAD 

Tools

brew cask install cheatsheet

Android

export ANDROID_HOME=/Users/fdhuang/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

add in local.properties

sdk.dir=/Users/fdhuang/Library/Android/sdk

Markdown

  1. Download MacTex
brew install pandoc make

Git Config

git config --global user.email "[email protected]"
git config --global user.name "Phodal HUANG"

keychain

git config --global credential.helper osxkeychain

Keychain Access for TWO-Factor

Get Token: Personal access tokens

GPG

  1. install tools
brew install gnupg pinentry-mac
  1. create key
gpg --gen-key
gpg --list-secret-keys --keyid-format LONG 

results

sec   rsa2048/5C3D8793775E8537 2019-01-19 [SC] [expires: 2021-01-18]
      5BF2EA24922B8C14460552855C3D8793775E8537
uid                 [ultimate] Phodal HUANG <[email protected]>
ssb   rsa2048/4E30E78BB8B2E2E8 2019-01-19 [E] [expires: 2021-01-18]
  1. config
git config --global user.signingkey 5C3D8793775E8537
git config --global commit.gpgsign true

tools

open ~/.gnupg/gpg-agent.conf with:

pinentry-program /usr/local/bin/pinentry-mac
  1. export

copy key:

gpg --armor --export 5C3D8793775E8537 | pbcopy

input:

GPG Keys

Image

图片转换

brew install imagemagick gs

矢量

brew install potrace

常用

brew cask install xquartz inkscape gimp blender

Docker

brew install kitematic

Quicklook

Plugins

brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlimagesize webpquicklook suspicious-package quicklookase qlvideo

Cisco Scripts

brew install oath-toolkit

Python

brew install python3

pip

sudo easy_install pip

virtualenv

sudo pip install virtualenv

Sublime-text 3 Setup

brew cask install sublime-text 

install package control, input ctrl + `

import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

packages:

  • SublimeLinter
  • Formatter
  • Bracket Highlighter
  • Clipboard History
  • Emmet
  • Alignment
  • CSScomb
  • Sublime CodeIntel
  • EditorConfig

VS Code

brew cask install visual-studio-code

Search

brew install elasticsearch

ffmpeg

brew install ffmpeg --with-faac --with-libssh --with-libvorbis --with-libvpx --with-openssl --with-opus --with-theora --with-webp --with-x265

postman

brew install postman

setup.guide's People

Contributors

phodal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

setup.guide's Issues

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.