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 | |
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 |
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 | |
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 \ |
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 | |
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 |
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 | |
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&& |
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 | |
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 |
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
" vim-bootstrap b990cad | |
"***************************************************************************** | |
"" Vim-PLug core | |
"***************************************************************************** | |
if has('vim_starting') | |
set nocompatible " Be iMproved | |
endif | |
let vimplug_exists=expand('~/.vim/autoload/plug.vim') |
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
# 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 |
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
#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}' | |
} |
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
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 |
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
"xte 'keydown Control_L' 'keydown Alt_L' 'key Down' 'keyup Alt_L' 'keyup Control_L'" | |
m:0x10 + b:6 | |
"xte 'keydown Control_L' 'keydown Alt_L' 'key Up' 'keyup Alt_L' 'keyup Control_L'" | |
m:0x10 + b:7 | |
"xte 'keydown Control_L' 'key W' 'keyup Control_L'" | |
m:0x10 + b:2 | |
"xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'" | |
m:0x10 + b:9 | |
"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'" | |
m:0x10 + b:8 |
OlderNewer