Skip to content

Instantly share code, notes, and snippets.

View vochicong's full-sized avatar
🐒
NLP/ML/AI

Cong vochicong

🐒
NLP/ML/AI
View GitHub Profile
@vochicong
vochicong / README.md
Created June 16, 2026 04:22
Qiita figures: WSL Terminal JP/VI/EN font comparison

WSL Terminal JP/VI/EN font comparison figures

Images for a Qiita article.

@vochicong
vochicong / last_expr_or_assign.py
Last active June 5, 2024 07:09
Make Jupyter displays last expr or assign
%config InteractiveShell.ast_node_interactivity='last_expr_or_assign'
@vochicong
vochicong / create-dataframe.jl
Created August 20, 2021 02:47
groupby-dataframes.jl
df = DataFrame(g=[1,2,3,1,2,1], e=[10,20,30,11,21,12])
@vochicong
vochicong / .tmux.conf
Last active July 8, 2022 23:47
code-shell, tmux settings for VSCode's terminals
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
@vochicong
vochicong / datalab-install-for-mac.sh
Created July 2, 2019 04:26
Install Datalab/gcloud SDK for Mac using brew
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
@vochicong
vochicong / .gitignore
Last active April 8, 2019 15:17
.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 June 14, 2019 06:25
Reset/reinstall nvidia driver, CUDA, nvidia docker for Ubuntu
# 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 January 25, 2019 15:29
Rails credentials.yml.encと環境変数の併用 ref: https://qiita.com/vochicong/items/d384824f2952c46064ac
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 November 20, 2019 07:05
.Brewfile
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"