This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %config InteractiveShell.ast_node_interactivity='last_expr_or_assign' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| df = DataFrame(g=[1,2,3,1,2,1], e=[10,20,30,11,21,12]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -g mouse on | |
| set -g status on | |
| set-window-option -g mode-keys vi | |
| set-option -g default-command "/usr/bin/bash" | |
| bind-key -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" | |
| bind-key -n WheelDownPane select-pane -t= \; send-keys -M | |
| unbind C-b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew cask install google-cloud-sdk | |
| gcloud components install datalab | |
| gcloud init | |
| gcloud auth login | |
| export PATH=/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin:$PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # git config --global core.excludesfile ~/.gitignore | |
| .DS_Store | |
| # Ignore bundler config. | |
| **/.bundle | |
| # Ignore all logfiles and tempfiles. | |
| **/log/* | |
| **/tmp/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Stop everything maybe using GPU | |
| sudo systemctl stop gdm.service | |
| microk8s.disable gpu | |
| sudo killall nvidia-persistenced | |
| # Remove all nvidia-*, cuda, libcudnn | |
| sudo apt-get purge docker-ce nvidia-* libnvidia-* cuda libcudnn7 | |
| sudo apt autoremove | |
| # Download latest NVIDIA driver from https://www.geforce.com/drivers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Env | |
| def self.method_missing(name, *default) | |
| ENV[name.to_s] || | |
| default.first || | |
| Rails.application.credentials.send(name) || | |
| super | |
| end | |
| def self.respond_to_missing?(*) | |
| true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tap "homebrew/bundle" | |
| tap "homebrew/cask" | |
| tap "homebrew/cask-versions" | |
| tap "homebrew/core" | |
| tap "homebrew/services" | |
| brew "docker" | |
| brew "docker-compose" | |
| brew "gist" | |
| brew "git" | |
| brew "hub" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git clone -b release --recurse-submodules \ | |
| https://github.com/LeelaChessZero/lc0.git | |
| $ cd lc0 | |
| $ brew install python3 meson ninja | |
| $ ./build.sh # ビルド | |
| $ ./build/release/lc0 # 軽く動作確認 | |
| v0.19.0-rc4 built Nov 14 2018 | |
| Ctr^C で終了 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir -p ~/tmp; cd ~/tmp | |
| curl -s \ | |
| https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
| sh ~/tmp/Miniconda3-latest-Linux-x86_64.sh -b -p ~/miniconda3/ | |
| echo 'export PATH="~/miniconda3/bin:$PATH"' >> ~/.bashrc | |
| export PATH="~/miniconda3/bin:$PATH" | |
| conda create -n bitmex python=3 |
NewerOlder