Skip to content

Instantly share code, notes, and snippets.

View corenel's full-sized avatar
💭
I may be slow to respond.

Yusu Pan corenel

💭
I may be slow to respond.
View GitHub Profile
sudo timedatectl set-ntp 0
sudo timedatectl set-time "2017-07-28 09:19:40"
sudo timedatectl set-timezone Asia/Tokyo
@corenel
corenel / README.md
Last active December 4, 2017 16:07
Install MXNet on TX1 with ROS-OpenCV 3.2.0

See this tutorial on TX2.

Tips:

  1. Modify Makefile:
  • specify path of include and library of ros-opencv
export PKG_CONFIG_PATH=/opt/ros/kinetic/lib/pkgconfig:$PKG_CONFIG_PATH
@corenel
corenel / INSTALL.md
Last active January 18, 2018 08:36
Installation of OpenCV 3 in virtualenv on Ubuntu 16.04
  1. download OpenCV 3.3.1 and unzip.
# download opencv 3.3.1
# https://codeload.github.com/opencv/opencv/zip/3.3.1
unzip opencv-3.3.1.zip
cd opencv-3.3.1
mkdir build
cd build
@corenel
corenel / install.sh
Last active January 7, 2018 14:41
chromebrew git checksum fix
#chromebrew directories
OWNER="skycocker"
REPO="chromebrew"
BRANCH="master"
URL="https://raw.githubusercontent.com/$OWNER/$REPO/$BRANCH"
CREW_PREFIX=${CREW_PREFIX:-/usr/local}
CREW_LIB_PATH=$CREW_PREFIX/lib/crew/
CREW_CONFIG_PATH=$CREW_PREFIX/etc/crew/
CREW_BREW_DIR=$CREW_PREFIX/tmp/crew/
CREW_DEST_DIR=$CREW_BREW_DIR/dest
@corenel
corenel / README.md
Last active January 16, 2018 21:29
Install MXNet on macOS High Sierra 10.13.2 with GTX1080Ti, CUDA 9.1 and cuDNN 7
  1. Since CUDA 9.1 doesn't support LLVM 9.0.0, you need to install Xcode 8.3.2 with LLVM 8.1.0 for compiling CUDA programs.
  2. Select Xcode 8.3.2 for Command Line Tools in Xcode. (Or use xcode-select)
  3. Clone MXNet
$ https://github.com/apache/incubator-mxnet.git --recursive
$ cd incubator-mxnet
  1. Configure:
  • use default config for macOS:
@corenel
corenel / README.md
Created January 11, 2018 02:59
Install PyTorch 0.4.0 on macOS High Sierra 10.13.2 with GTX1080Ti, CUDA 9.1 and cuDNN 7
  1. Since CUDA 9.1 doesn't support LLVM 9.0.0, you need to install Command Line Tool 8.3.2 and switch:
$ sudo xcode-select --switch /Library/Developer/CommandLineTools/
$ clang --version
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin17.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
  1. CTL 8.3.2 is supposed for macOS Sierra 10.12, so you also need to create a symbol link for SDK.
@corenel
corenel / INSTALL.md
Created January 3, 2019 02:37
Build TensorFlow 1.12 on an Atom board w/o AVX support
  • build command:
bazel build \
  --config=opt //tensorflow/tools/pip_package:build_pip_package \
  --incompatible_remove_native_http_archive=false \
  --incompatible_package_name_is_a_function=false \
  --local_resources 4096,4.0,4.0 \
  --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" \
  --define=grpc_no_ares=true
@corenel
corenel / README.md
Created January 29, 2019 07:11
Solutions for troubles in Hackintosh

Stuck at IOConsoleUsers: gIOScreenLockState 3 after updating 2019-001 of macOS 10.13.6

  1. Enable -disablegfxfirmware flag temporarily in Clover Opinions
  2. Reboot into system and reinstall Nvidia Web Driver
  3. Reboot and everything works
@corenel
corenel / cloudSettings
Last active April 13, 2019 11:49
VSCode
{"lastUpload":"2019-04-13T11:49:50.646Z","extensionVersion":"v3.2.8"}
@corenel
corenel / README.md
Created April 19, 2019 13:40
Install Torch7 on Ubuntu 16.04

See this tutorial first.

During the installation, two other problems encountered:

Missing libreadline.so.7

luajit: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory