This file contains 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
#!/usr/bin/python3 | |
import os | |
import subprocess | |
MAIN = 'main' | |
GLOBAL = 'global' | |
STATES = [MAIN, GLOBAL] | |
RUN = 'run' |
This file contains 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
alias v='vim ' | |
alias sudo='sudo ' | |
alias p='python3.5 ' | |
alias gsq='gnome-session-quit' | |
alias :q='exit' | |
psg() { | |
ps -ef | grep $1 | |
} |
This file contains 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
# All commands start with C-a | |
set -g prefix C-a | |
# Use mouse | |
setw -g mode-mouse on | |
set -g mouse-select-window on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-utf on |
This file contains 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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Basic setting | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Syntax highlighting | |
if has ("syntax") | |
syntax on | |
endif | |
" Indentation | |
set autoindent |
This file contains 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
#!/bin/bash | |
# Install | |
brew install llvm | |
brew install libomp | |
# Compile | |
# clang++ test.cpp -o test -Xpreprocessor -fopenmp -lomp |
This file contains 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
#!/bin/bash | |
cd ~/Downloads | |
# Remove CUDA | |
# sudo apt-get --purge remove 'cuda*' | |
# sudo apt-get autoremove --purge 'cuda*' | |
# sudo rm -rf /usr/local/cuda* | |
# Install CUDA 9.0 |