Skip to content

Instantly share code, notes, and snippets.

🐒
Learning Machine Learning

Cong vochicong

🐒
Learning Machine Learning
Block or report user

Report or block vochicong

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vochicong
vochicong / datalab-install-for-mac.sh
Created Jul 2, 2019
Install Datalab/gcloud SDK for Mac using brew
View datalab-install-for-mac.sh
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
View .gitignore
# git config --global core.excludesfile ~/.gitignore
.DS_Store
# Ignore bundler config.
**/.bundle
# Ignore all logfiles and tempfiles.
**/log/*
**/tmp/*
@vochicong
vochicong / nvidia-reset-ubuntu.sh
Last active Jun 14, 2019
Reset/reinstall nvidia driver, CUDA, nvidia docker for Ubuntu
View nvidia-reset-ubuntu.sh
# 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
@vochicong
vochicong / Env.rb
Last active Jan 25, 2019
Rails credentials.yml.encと環境変数の併用 ref: https://qiita.com/vochicong/items/d384824f2952c46064ac
View Env.rb
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
@vochicong
vochicong / .Brewfile
Last active Sep 11, 2019
.Brewfile
View .Brewfile
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"
brew "bash"
brew "bash-completion@2"
brew "bash-git-prompt"
brew "docker", link: true
brew "docker-compose", link: true
@vochicong
vochicong / file0.txt
Last active Nov 14, 2018
MacでAlpha ZeroライクのLeela Chess を動かし、lichessでネット対戦 ref: https://qiita.com/vochicong/items/b6a3ca57a2fd11461f46
View file0.txt
$ 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 で終了
@vochicong
vochicong / file0.txt
Last active Jun 18, 2018
GCP ConsoleでBitMEXマーケット・メーキングテストボットを動かす手順 ref: https://qiita.com/vochicong/items/3013b2b00fc062cdb545
View file0.txt
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
View pmp-acp-training.md
View pmp-acp-cost.md
費用 PMI会員 一般
PMI会員年会費 $129 ---
PMP資格試験 $405 $555
PMP資格更新 $60 $150
ACP資格試験 $435 $495
ACP資格更新 $60 $150
View git-tips.sh
# Oh My Zshでstatusを表示しない
git config --add oh-my-zsh.hide-status 1
# Oh My Zshでstatusを表示する
git config --add oh-my-zsh.hide-status 0
You can’t perform that action at this time.