Skip to content

Instantly share code, notes, and snippets.

View ryujaehun's full-sized avatar
🎯
Focusing

Jaehun Ryu ryujaehun

🎯
Focusing
View GitHub Profile
@ryujaehun
ryujaehun / opencv.sh
Last active June 20, 2018 15:26
opencv download
# /bin/bash
mkdir opencv && cd opencv
wget -O opencv.zip https://github.com/Itseez/opencv/archive/3.4.1.zip && unzip opencv.zip
wget -O opencv_contrib.zip https://github.com/Itseez/opencv_contrib/archive/3.4.1.zip&&unzip opencv_contrib.zip
rm -rf opencv.zip opencv_contrib.zip
cd opencv-3.4.1
mkdir build && cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D WITH_TBB=OFF \
@ryujaehun
ryujaehun / pip.sh
Created June 20, 2018 16:16
pip package install
#! /bin/bash
sudo python3 -m pip install --upgrade pip&&
sudo python3 -m pip install -U numpy &&
sudo python3 -m pip install -U matplotlib&&
sudo python3 -m pip install -U pandas&&
sudo python3 -m pip install -U scipy&&
sudo python3 -m pip install -U scikit-learn&&
sudo python3 -m pip install -U jupyter&&
sudo python3 -m pip install -U jupyterthemes&&
sudo python3 -m pip install -U gym&&
@ryujaehun
ryujaehun / cmake.sh
Created June 20, 2018 17:15
cmake upgrade
#! /bin/bash
sudo apt purge cmake -y
wget https://cmake.org/files/v3.11/cmake-3.11.3-Linux-x86_64.tar.gz -O $HOME/cmake-3.11.3-Linux-x86_64.tar.gz
tar -xvf cmake-3.11.3-Linux-x86_64.tar.gz -C $HOME/
cd $HOME/cmake-3.11.3-Linux-x86_64
sudo cp -r bin /usr/
sudo cp -r share /usr/
sudo cp -r doc /usr/share/
sudo cp -r man /usr/share/
cd .. && rm -rf $HOME/cmake-3.11.3-Linux-x86_64
@ryujaehun
ryujaehun / protobuf.sh
Last active July 11, 2018 00:08
Protocol Buffers install
#! /bin/bash
wget https://github.com/google/protobuf/releases/download/v3.6.0/protobuf-all-3.6.0.tar.gz
tar -zxvf protobuf-all-3.6.0.tar.gz
cd protobuf-all-3.6.0
sudo ./configure
sudo make -j12
sudo make check -j12
sudo make install
sudo ldconfig
protoc --version
@ryujaehun
ryujaehun / cudnninstall.sh
Last active August 14, 2018 06:10
cudnn 7.1.4 install
#!/bin/bash
tar xzvf cudnn-9.2-linux-x64-v7.*.tgz
sudo cp cuda/lib64/* /usr/local/cuda-9.2/lib64/
sudo cp cuda/include/* /usr/local/cuda-9.2/include/
sudo chmod a+r /usr/local/cuda-9.2/lib64/libcudnn*
sudo chmod a+r /usr/local/cuda-9.2/include/cudnn.h
" vim-bootstrap b990cad
"*****************************************************************************
"" Vim-PLug core
"*****************************************************************************
if has('vim_starting')
set nocompatible " Be iMproved
endif
let vimplug_exists=expand('~/.vim/autoload/plug.vim')
# use UTF8
#set -g utf8
#set-window-option -g utf8 on
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
# set scrollback history to 10000 (10k)
set -g history-limit 100000
#usage list-dh-tags <repo>
#example: docker-tag node
function docker-tag(){
wget -q https://registry.hub.docker.com/v1/repositories/$1/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}'
}
@ryujaehun
ryujaehun / libinput-gestures.conf
Created August 17, 2018 04:23
elementary touch pad gestures config
gesture swipe up 4 xdotool key super+Up
gesture swipe down 4 xdotool key super+Down
gesture swipe left 4 xdotool key super+Right
gesture swipe right 4 xdotool key super+Left
gesture swipe left 3 xdotool key alt+Left
gesture swipe right 3 xdotool key alt+Right
gesture swipe up 3 xdotool key ctrl+Page_Down
gesture swipe down 3 xdotool key ctrl+Page_Up
@ryujaehun
ryujaehun / validation.sh
Created September 18, 2018 03:05
validation data and move images to subfolders
This file has been truncated, but you can view the full file.
mkdir -p n01440764
mkdir -p n01443537
mkdir -p n01484850
mkdir -p n01491361
mkdir -p n01494475
mkdir -p n01496331
mkdir -p n01498041
mkdir -p n01514668
mkdir -p n01514859
mkdir -p n01518878