POSTS
Mac Config
This is a demo.
Install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew cask install google-chrome
brew cask install google-backup-and-sync
brew cask install iterm2
brew cask install sogouinput
brew cask install karabiner-elements
brew cask install bettertouchtool
brew cask install contexts
brew cask install clipy
brew cask install moom
brew cask install atext
brew cask install captin
brew cask install 1password
brew cask install itsycal
brew cask install virtualbox
brew cask install vagrant
brew cask install emacs
brew cask install vlc
brew cask install the-unarchiver
brew tap homebrew/cask-fonts
brew cask install font-source-code-pro
System preferences
General
- Appearance: Dark
- Show scroll bars: When scrolling
- Recent items: None
Dock
- Size: Small
- Position on screen: Left
- Uncheck “Show recent applications in Dock”
Mouse
- Uncheck “Scroll direction: Natural”
Sound
- Check “Show volume in menu bar”
Login Items
- Users & Groups -> Login Items
- Bettertouchtool
- Clipy
- Karabiner
- Contexts
- Moom
- aText
- Captin
- Hazeover
- 1password
- Itsycal
Energy Saver
- Computer sleep: 1h
- Display sleep: 1h
Notifications
- Turn off all
Data & Time
- Clock -> Uncheck “Show date and time in menu bar”
Finder
- Preferences
- General -> New Finer windows show: Destop
- General -> Check “Open folders in tabs instead of new windows”
- Sidebar -> Favorites: AirDrop, Applications, Desktop, Documents, Downloads, weiz, mac-mini
- Sidebar -> Uncheck “Recent Tags”
- Advanced -> Check “Show all filename extensions”
- View
- Show status bar
- Show path bar
- Column view
Contexts
- Load license
- Sidebar -> Show Sidebar on -> No display
- Search -> uncheck “Search with”
- Command-Tab
- Select Option-Tab, uncheck others
- Activate switcher with: Option-Tab
- Move up list with: Option-Shift-Tab
- Show windows from: Visible Spaces
- Show windows of: All apps
- Minimized windows: Do not show
- Hidden windows: Do not show
- Apps without windows: Do not show
- Show: Neither
- Load license
Hazeover
- Load license
- Dim: 50%
Clipy
- General
- Max clipboard history size: 10
- Menu
- Number of items place inline: 10
- Number of items place inside a folder: 10
Captin
- Preferences
- General -> check “Launch Captin at login”
- General -> uncheck “Show preferences on launch”
- Icon -> uncheck “Show dock icon”
aText
- Preferences -> General -> uncheck “Show aText icon in Dock”
- Delete all pre-abbreviation, leave only “Default”
- Load license
Moom
- General
- Run as “menu bar” application
- check “Launch Captin at login”
- uncheck “Show preferences on launch”
- Keyboard
- Trigger keyboard control with hot key: “option+escape”
- Show logo
- Show cheat sheet
- Load license
Itsycal
Appearance
Datetime pattern
MMM d '𝕎'w E h:mm a
Check “Hide icon”
Check “Use larger text”
Sogou input
Install
open xxx.app
Keyboard -> Shortcuts -> Input Sources -> Check “Select previous input source”
偏好设置
- 状态栏提示: uncheck all
- 外观: 简约黑
- 统计: uncheck all
- 按键:禁用快捷键,上下方向键翻页
VLC
- Preferences -> Interface -> Interface style dark
- Preferences -> Audio -> Keep audio level between sessions
- Preferences -> Show All -> Interface
- Main interfaces -> macosx -> uncheck “Keep Recent Items”
- Hotkey settings -> Mouse wheel vertical axis control: Position control reversed
Iterm2
- Appearance
- Theme: Minimal
- Tab bar location: Top
- Status bar location: Bottom
- Profiles
- Text -> Font: Source Code Pro, Regular, 12
- Terminal -> Notifications: check “Silence bell” and “Flash visual bell”
- Session -> check “Status bar enabled”
- Session -> Configure Status Bar: CPU, Memory, Network, Battery (auto rainbow)
- Keys -> Left Option Key: Esc+
- Keys -> Right Option Key: Esc+
Spacemacs
Install
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
Install aspell for spell checking
brew install aspell
Bettertouchtool
- Load license
Google Backup and Sync
- Disable all computer backup
Chrome
- Default browser
- Downloads -> Location: Desktop
- Autofill -> Disable “Passwords, Payment methods, Address and more”
- Search engine
- g: google
- d: youdao
- Privacy and security -> Site Settings -> Notifications -> Block
- Extensions
- Adblock Plus
- Unblock Youku
- 1password
- 有道词典Chrome划词插件
- 指词即译模式(按下Ctrl键指词)
- 仅对英文划译
- 点击发音
- Hyperlink Text Selector
- Surfingkeys
Vagrant
Init
vagrant init ubuntu/bionic64 mkdir workspace
Vagrantfile
config.vm.synced_folder "./workspace", "/home/vagrant/workspace" config.vm.network "forwarded_port", guest: 8000, host: 8000, host_ip: "127.0.0.1" config.vm.network "forwarded_port", guest: 8080, host: 8080, host_ip: "127.0.0.1" config.vm.network "forwarded_port", guest: 1313, host: 1313, host_ip: "127.0.0.1" config.ssh.forward_agent = true sudo apt update sudo apt-get install tree -y sudo apt-get install zsh -y curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh| zsh
SSH agent on host
ssh-keygen # And add public key to SSH eval "$(ssh-agent -s)" cat <<EOF > ~/.ssh/config Host * AddKeysToAgent yes UseKeychain yes IdentityFile ~/.ssh/id_rsa EOF ssh-add -K ~/.ssh/id_rsa
Trinity
sudo apt install zsh cd workspace git clone git@github.com:vitmy0000/trinity.git # vim-plug & zplug curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh| zsh ln -s workspace/trinity/tmux.conf ~/.tmux.conf ln -s workspace/trinity/gitconfig ~/.gitconfig ln -s workspace/trinity/vimrc ~/.vimrc ln -s workspace/trinity/zshrc ~/.zshrc echo 'export SHELL=$(which zsh)' >> ~/.bashrc echo '[ -z "$ZSH_VERSION" ] && exec "$SHELL" -l' >> ~/.bashrc tmux new -s Main
TensorFlow
Bash Miniconda3-latest-Linux-x86_64.sh conda create -n tf tensorflow conda activate tf pip install pandas pip install sklearn pip install plotly pip install jupyter pip install jupyter_http_over_ws jupyter serverextension enable --py jupyter_http_over_ws jupyter notebook \ --NotebookApp.allow_origin='https://colab.research.google.com' \ --port=8000 \ --ip=0.0.0.0 \ --NotebookApp.port_retries=0 \ --no-browser
Hugo
sudo snap install hugo hugo version mkdir hugo cd hugo hugo new site quickstart cd quickstart git init git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke echo 'theme = "ananke"' >> config.toml hugo new posts/my-first-post.md hugo server --bind "0.0.0.0" http://localhost:1313/
Oat++
sudo snap install cmake --classic sudo apt install build-essential # oat++ mkdir oatpp cd oatpp git clone https://github.com/oatpp/oatpp.git cd oatpp/ mkdir build && cd build cmake .. make install # oat app git clone https://github.com/oatpp/oatpp-starter.git cd oatapp-starter mkdir build && cd build cmake .. make ./my-project-test ./my-project-exe # - run application.
Vue
sudo apt install npm sudo npm install -g npm sudo npm install -g @vue/cli vue --version mkdir vue cd vue vue create vue-demo cd vue-demo npm run serve vue ui -H 0.0.0.0 --headless
Dr racket
Haskell
Issues
- VLC window size
- Surfingkeys not working on Chrome reserved pages
- Night shift fullscreen