Skip to content

Instantly share code, notes, and snippets.

View naviocean's full-sized avatar
🌴
On vacation

Duong Le naviocean

🌴
On vacation
View GitHub Profile
@naviocean
naviocean / install_tf2.md
Last active June 26, 2020 08:39
Install Tensorflow 2 on Tinker Board (ARM)

Install Tensorflow 2 on Tinker Board

Following step by steps:

  1. Scipy:
sudo apt-get install python3-scipy python-scipy
  1. H5py:
@naviocean
naviocean / setup.md
Last active June 25, 2020 05:02
Setup Tinker Board S (Asus) - Linaro Debian

CMake

You'll use CMake on the Raspberry Pi to create Python modules that can be called from the tutorial code. To install CMake on your Pi, connect to the network, open a terminal window, and type the following.

sudo apt-get update
sudo apt-get install -y cmake

OpenBLAS

This is a library for fast linear algebra operations, which can significantly increase the speed of your models. It is optional, but highly recommended. To install OpenBLAS, type the following.

@naviocean
naviocean / arm_opencv_install.sh
Last active May 14, 2020 11:58 — forked from kochie/install.sh
A updated installation of OpenCV on Ubuntu 17.04. Also provides command line argument to compile ARM binaries aimed at Raspberry Pi
#!/bin/bash
VERSION=3.3.0
PYTHON=/usr/bin/python3
if [ $1 == "arm" ]; then
echo "Compiling for ARM (Raspberry Pi)"
sudo apt-get install gcc-arm-linux-gnueabi
sudo apt-get install gcc-arm-linux-gnueabihf
@naviocean
naviocean / install.sh
Created March 3, 2020 09:32
Re install or update cuda 10.1 on ubuntu16.04
# Uninstall current drive and cuda
sudo apt purge nvidia-* -y
sudo apt autoremove -y
sudo apt autoclean
# Add NVIDIA package repositories
# Add HTTPS support for apt-key
sudo apt-get install gnupg-curl
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_10.1.243-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1604_10.1.243-1_amd64.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
@naviocean
naviocean / install_go.sh
Created December 3, 2019 13:11
Install Go on Ubuntu
#!/bin/bash
sudo apt-get update
wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz
sudo tar -xvf go1.13.3.linux-amd64.tar.gz
sudo mv go /usr/local
echo 'export GOROOT=/usr/local/go' >> $HOME/.bashrc
echo 'export GOPATH=$HOME/Projects/Proj1' >> $HOME/.bashrc
echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> $HOME/.bashrc
export GOROOT=/usr/local/go
export GOPATH=$HOME/Projects/Proj1
@naviocean
naviocean / virtual_disk.md
Created September 18, 2019 07:10
Virtual Disk For User

Create Virtual Disk For User on Ubuntu 16.04

1. Bash script

Create make_disk.sh

#!/bin/bash

V_DISK=/mnt/hdd10tb/virtual_disks
@naviocean
naviocean / multiple_ssh_setting.md
Created September 3, 2019 04:50 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@naviocean
naviocean / tmux_scroll.md
Created April 24, 2019 03:27
Tmux Scroll

Edit or create new file:

nano ~/.tmux.conf

Inserte a line:

set -g mouse on #For tmux version 2.1 and up

Run to activate

var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@naviocean
naviocean / pytorch_setup.sh
Last active May 28, 2019 03:23 — forked from kylemcdonald/pytorch_setup.sh
Install CUDA 9.2, cuDNN 7.2.1, Anaconda and PyTorch on Ubuntu 16.04.
# tested on AWS p2.xlarge August 29, 2018
# install CUDA
sudo apt-get update && sudo apt-get install wget -y --no-install-recommends
CUDA_URL="https://developer.nvidia.com/compute/cuda/9.2/Prod2/local_installers/cuda-repo-ubuntu1604-9-2-local_9.2.148-1_amd64"
wget -c ${CUDA_URL} -O cuda.deb
sudo dpkg --install cuda.deb
sudo apt-key add /var/cuda-repo-9-2-local/7fa2af80.pub
sudo apt-get update
sudo apt-get install -y cuda