Skip to content

Instantly share code, notes, and snippets.

@qikaigu
Last active September 7, 2021 07:08
Show Gist options
  • Select an option

  • Save qikaigu/4f4f9f8d4160f0ffb71a66d1aa6590fe to your computer and use it in GitHub Desktop.

Select an option

Save qikaigu/4f4f9f8d4160f0ffb71a66d1aa6590fe to your computer and use it in GitHub Desktop.

Revisions

  1. qikaigu revised this gist Sep 7, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -55,6 +55,7 @@ brew install --cask \
    keka \
    malwarebytes \
    miniconda \
    notion \
    obs \
    pdf-expert \
    postman \
  2. qikaigu revised this gist Sep 6, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -25,13 +25,13 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/too
    # plugins TODO

    brew install zsh-syntax-highlighting
    echo 'source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc
    echo 'source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc

    brew install zsh-autosuggestions
    echo 'source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
    echo 'source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc

    brew install romkatv/powerlevel10k/powerlevel10k
    echo 'source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
    echo 'source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc

    # LANG_ALL

  3. qikaigu revised this gist Feb 24, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -83,6 +83,7 @@ brew install --cask \
    # Mac App Store apps, must sign-in before installation
    mas install 937984704 # Amphetamine
    mas install 441258766 # Magnet
    mas install 497799835 # Xcode


    ###############################################################################
  4. qikaigu revised this gist Feb 9, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -38,13 +38,15 @@ echo 'source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
    # software
    brew install --cask \
    1password \
    5kplayer \
    alfred \
    alt-tab \
    appcleaner \
    bartender \
    betterzip \
    cheatsheet \
    docker \
    evernote \
    go2shell \
    google-chrome \
    istat-menus \
  5. qikaigu revised this gist Jan 30, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # Make sure to sign in to Mac App Store before running the script

    xcode-select --install

    # brew
    @@ -76,9 +78,7 @@ brew install --cask \
    zoom \
    zotero

    # Mac App Store
    # mas signin --dialog [email protected]

    # Mac App Store apps, must sign-in before installation
    mas install 937984704 # Amphetamine
    mas install 441258766 # Magnet

  6. qikaigu revised this gist Jan 30, 2021. No changes.
  7. qikaigu revised this gist Jan 30, 2021. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,6 @@ brew install --cask \
    bartender \
    betterzip \
    cheatsheet \
    copyclip \
    docker \
    go2shell \
    google-chrome \
  8. qikaigu revised this gist Jan 30, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -74,7 +74,7 @@ brew install --cask \
    wechat \
    whatsapp \
    youdaodict \
    zoomus \
    zoom \
    zotero

    # Mac App Store
  9. qikaigu revised this gist Jan 30, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@ brew install \
    awscli \
    docker-completion \
    jq \
    mas \
    tldr \
    thefuck \
    tmux \
    @@ -50,7 +51,6 @@ brew install --cask \
    jetbrains-toolbox \
    keka \
    malwarebytes \
    mas \
    miniconda \
    obs \
    pdf-expert \
  10. qikaigu revised this gist Jan 30, 2021. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -15,6 +15,8 @@ brew install \
    wget \
    z

    echo 'eval $(thefuck --alias)' >> ~/.zshrc

    # Oh my zsh
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    # plugins TODO
    @@ -87,7 +89,7 @@ mas install 441258766 # Magnet
    ###############################################################################

    # personal Alfred workflows
    git clone git@github.com:QikaiGu/alfred.git ~/.alfred
    git clone https://github.com/qikaigu/alfred.git ~/.alfred

    ###############################################################################
    # Finder #
  11. qikaigu revised this gist Jan 30, 2021. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -43,7 +43,6 @@ brew install --cask \
    docker \
    go2shell \
    google-chrome \
    google-hangouts \
    istat-menus \
    iterm2 \
    jetbrains-toolbox \
  12. qikaigu revised this gist Jan 30, 2021. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    sudo xcode-select --install
    xcode-select --install

    # brew
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    @@ -8,7 +8,6 @@ brew install \
    awscli \
    docker-completion \
    jq \
    [email protected] \
    tldr \
    thefuck \
    tmux \
  13. qikaigu revised this gist Jan 30, 2021. 1 changed file with 50 additions and 41 deletions.
    91 changes: 50 additions & 41 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -1,26 +1,20 @@
    sudo xcode-select --install

    # brew
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    brew install wget
    brew install z
    brew install ack
    brew install tmux
    brew install tree
    brew install docker-completion

    brew install pyenv
    echo 'eval "$(pyenv init -)"' >> ~/.zshrc
    source ~/.zshrc
    pyenv install 3.6.9
    pyenv global 3.6.9
    pyenv rehash

    curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
    sudo python get-pip.py
    pip install virtualenv
    pip install 'ipython[qtconsole,notebook,test]'
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

    brew install \
    ack \
    awscli \
    docker-completion \
    jq \
    [email protected] \
    tldr \
    thefuck \
    tmux \
    tree \
    wget \
    z

    # Oh my zsh
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    @@ -38,42 +32,57 @@ echo 'source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
    # LANG_ALL

    # software
    brew cask install \
    qlcolorcode \
    qlstephen \
    qlmarkdown \
    quicklook-json \
    qlprettypatch \
    quicklook-csv \
    webpquicklook
    brew cask install \
    brew install --cask \
    1password \
    alfred \
    alt-tab \
    appcleaner \
    bartender \
    betterzip \
    appcleaner \
    caffeine \
    cheatsheet \
    copyclip \
    docker \
    go2shell \
    google-chrome \
    google-hangouts \
    istat-menus \
    iterm2 \
    jetbrains-toolbox \
    keka \
    malwarebytes \
    mas \
    miniconda \
    obs \
    pdf-expert \
    postman \
    qlcolorcode \
    qlstephen \
    qlmarkdown \
    qlprettypatch \
    quicklook-csv \
    quicklook-json \
    slack \
    sublime-text \
    virtualbox \
    suspicious-package \
    teamviewer \
    vagrant \
    vagrant-manager \
    suspicious-package \
    virtualbox \
    visual-studio-code \
    vlc \
    teamviewer \
    zoomus
    webpquicklook \
    wechat \
    whatsapp \
    youdaodict \
    zoomus \
    zotero

    # apps to be installed from AppStore
    # 1password
    # wechat
    # whatsapp
    # the-unarchiver
    # youdaodict
    # Mac App Store
    # mas signin --dialog [email protected]

    mas install 937984704 # Amphetamine
    mas install 441258766 # Magnet


    ###############################################################################
    # apps settings #
  14. qikaigu revised this gist Apr 25, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -107,7 +107,7 @@ defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
    # tmux config TODO

    # Enable TouchID for iTerm2
    sudo echo 'auth sufficient pam_tid.so' >> /etc/pam.d/sudo
    sudo sh -c "echo 'auth sufficient pam_tid.so' >> /etc/pam.d/sudo"
    # You have to go into Preferences -> Advanced and deactivate Allow sessions to survive logging out and back in


  15. qikaigu revised this gist Apr 25, 2020. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -75,6 +75,13 @@ brew cask install \
    # the-unarchiver
    # youdaodict

    ###############################################################################
    # apps settings #
    ###############################################################################

    # personal Alfred workflows
    git clone [email protected]:QikaiGu/alfred.git ~/.alfred

    ###############################################################################
    # Finder #
    ###############################################################################
  16. qikaigu revised this gist Apr 24, 2020. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -32,6 +32,9 @@ echo 'source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zs
    brew install zsh-autosuggestions
    echo 'source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc

    brew install romkatv/powerlevel10k/powerlevel10k
    echo 'source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc

    # LANG_ALL

    # software
  17. qikaigu revised this gist Dec 16, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -58,6 +58,8 @@ brew cask install \
    malwarebytes \
    sublime-text \
    virtualbox \
    vagrant \
    vagrant-manager \
    suspicious-package \
    vlc \
    teamviewer \
  18. qikaigu revised this gist Nov 28, 2019. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -96,4 +96,7 @@ defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

    # Enable TouchID for iTerm2
    sudo echo 'auth sufficient pam_tid.so' >> /etc/pam.d/sudo
    # You have to go into Preferences -> Advanced and deactivate Allow sessions to survive logging out and back in



  19. qikaigu revised this gist Nov 28, 2019. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -94,3 +94,6 @@ defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

    # tmux config TODO

    # Enable TouchID for iTerm2
    sudo echo 'auth sufficient pam_tid.so' >> /etc/pam.d/sudo

  20. qikaigu revised this gist Nov 28, 2019. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ pip install 'ipython[qtconsole,notebook,test]'

    # Oh my zsh
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    # plugins
    # plugins TODO

    brew install zsh-syntax-highlighting
    echo 'source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc
    @@ -88,3 +88,9 @@ defaults write com.apple.finder QLEnableTextSelection -bool true

    # Disable the warning when changing a file extension
    defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false


    # Vim config TODO

    # tmux config TODO

  21. qikaigu revised this gist Nov 28, 2019. 1 changed file with 22 additions and 3 deletions.
    25 changes: 22 additions & 3 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -42,12 +42,11 @@ brew cask install \
    quicklook-json \
    qlprettypatch \
    quicklook-csv \
    betterzip \
    webpquicklook \
    suspicious-package
    webpquicklook
    brew cask install \
    alfred \
    bartender \
    betterzip \
    appcleaner \
    caffeine \
    cheatsheet \
    @@ -59,6 +58,7 @@ brew cask install \
    malwarebytes \
    sublime-text \
    virtualbox \
    suspicious-package \
    vlc \
    teamviewer \
    zoomus
    @@ -69,3 +69,22 @@ brew cask install \
    # whatsapp
    # the-unarchiver
    # youdaodict

    ###############################################################################
    # Finder #
    ###############################################################################

    # Finder: show hidden files by default
    defaults write com.apple.finder AppleShowAllFiles -bool true

    # Finder: show all filename extensions
    defaults write NSGlobalDomain AppleShowAllExtensions -bool true

    # Finder: show status bar
    defaults write com.apple.finder ShowStatusBar -bool true

    # Finder: allow text selection in Quick Look
    defaults write com.apple.finder QLEnableTextSelection -bool true

    # Disable the warning when changing a file extension
    defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
  22. qikaigu revised this gist Nov 28, 2019. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -8,8 +8,6 @@ brew install z
    brew install ack
    brew install tmux
    brew install tree
    brew install django-completion
    brew install zsh-completions
    brew install docker-completion

    brew install pyenv
  23. qikaigu revised this gist Nov 28, 2019. 1 changed file with 11 additions and 13 deletions.
    24 changes: 11 additions & 13 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -49,27 +49,25 @@ brew cask install \
    suspicious-package
    brew cask install \
    alfred \
    # android-file-transfer \
    bartender \
    appcleaner \
    caffeine \
    cheatsheet \
    docker \
    # doubletwist \
    # dropbox \
    google-chrome \
    google-hangouts \
    istat-menus \
    iterm2 \
    1password \
    malwarebytes \
    sublime-text \
    the-unarchiver \
    virtualbox \
    vlc
    #brew cask install 1password
    #brew cask install iterm2
    #brew cask install virtualbox
    #brew cask install google-chrome
    #brew cask install istat-menus
    #brew cask install the-unarchiver
    #brew cask install vlc
    vlc \
    teamviewer \
    zoomus

    # apps to be installed from AppStore
    # 1password
    # wechat
    # whatsapp
    # the-unarchiver
    # youdaodict
  24. qikaigu revised this gist Nov 28, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -61,6 +61,7 @@ brew cask install \
    istat-menus \
    iterm2 \
    1password \
    malwarebytes \
    sublime-text \
    the-unarchiver \
    virtualbox \
  25. qikaigu created this gist Nov 27, 2019.
    74 changes: 74 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,74 @@
    sudo xcode-select --install

    # brew
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    brew install wget
    brew install z
    brew install ack
    brew install tmux
    brew install tree
    brew install django-completion
    brew install zsh-completions
    brew install docker-completion

    brew install pyenv
    echo 'eval "$(pyenv init -)"' >> ~/.zshrc
    source ~/.zshrc
    pyenv install 3.6.9
    pyenv global 3.6.9
    pyenv rehash

    curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
    sudo python get-pip.py
    pip install virtualenv
    pip install 'ipython[qtconsole,notebook,test]'

    # Oh my zsh
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    # plugins

    brew install zsh-syntax-highlighting
    echo 'source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc

    brew install zsh-autosuggestions
    echo 'source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc

    # LANG_ALL

    # software
    brew cask install \
    qlcolorcode \
    qlstephen \
    qlmarkdown \
    quicklook-json \
    qlprettypatch \
    quicklook-csv \
    betterzip \
    webpquicklook \
    suspicious-package
    brew cask install \
    alfred \
    # android-file-transfer \
    appcleaner \
    caffeine \
    cheatsheet \
    docker \
    # doubletwist \
    # dropbox \
    google-chrome \
    google-hangouts \
    istat-menus \
    iterm2 \
    1password \
    sublime-text \
    the-unarchiver \
    virtualbox \
    vlc
    #brew cask install 1password
    #brew cask install iterm2
    #brew cask install virtualbox
    #brew cask install google-chrome
    #brew cask install istat-menus
    #brew cask install the-unarchiver
    #brew cask install vlc