Skip to content

Instantly share code, notes, and snippets.

@vaibhaw
vaibhaw / backup.md
Last active September 20, 2016 02:40
Preparing a backup before fresh Ubuntu install
@vaibhaw
vaibhaw / install-opencv-3.1.0.md
Last active August 10, 2018 09:40
Install OpenCV 3.1.0 on Ubuntu 12.04
@vaibhaw
vaibhaw / py-faster-rcnn_run.md
Created July 14, 2016 15:22
Running demo, training & testing of Faster-RCNN

Faster-RCNN Demo and Training

Demo

# Download pre-computed Faster R-CNN detectors
cd py-faster-rcnn
./data/scripts/fetch_faster_rcnn_models.sh

# To run the demo
@vaibhaw
vaibhaw / py-faster-rcnn_setup.md
Last active October 4, 2017 18:42
Installation instructions for py-Faster-RCNN

Install CUDA and Caffe dependencies

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install -y opencl-headers build-essential protobuf-compiler \
    libprotoc-dev libboost-all-dev libleveldb-dev hdf5-tools libhdf5-serial-dev \
    libopencv-dev libopenblas-dev liblapack-dev libsnappy-dev libsnappy1 \
    cmake libstdc++6-4.8-dbg libgoogle-glog0 libgoogle-glog-dev \
    libgflags-dev liblmdb-dev git python-pip gfortran
@vaibhaw
vaibhaw / aws_setup.md
Last active February 8, 2017 18:40
AWS Instance setup for py-faster-rcnn

AWS Instance Setup

OS

Ubuntu 14.04 Server HMV

Instance

gpu2.2xlarge or gpu2.8xlarge

Storage

sudo apt-get update -y
sudo apt-get install -y git wget linux-image-generic build-essential unzip
cd /tmp
# cuda downloads - http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb
sudo apt-get update && sudo apt-get install cuda-toolkit-7-0
echo -e "\nexport CUDA_HOME=/usr/local/cuda" >> ~/.bashrc
Filter all emails which have a userlabel and are in inbox:
-(label:later-reply OR label:later:read) has:userlabels in:inbox
-label:taga -label:tagb -label:tagc
or
-label:{taga tagb tagc}
@vaibhaw
vaibhaw / android_utils.sh
Last active December 26, 2023 08:19
android_utils
adb shell ls /foo/bar | tr -d '\015' | while read file
do
folder="/foo/bar/$file"
adb pull $folder download
done
adb shell ls /sdcard/ | tr -d '\015' | while read file
do
echo "copying >>>>>>>> /sdcard/$file to >>>>>>>>> OnePlusOne_Backup"
/usr/lib/adb-sync --reverse "/sdcard/$file" "OnePlusOne_Backup"
@vaibhaw
vaibhaw / ml_resources.md
Last active September 14, 2023 20:57
Machine Learning Resources

Courses

@vaibhaw
vaibhaw / install_tools.sh
Last active December 14, 2015 21:27
Installation Tools
## dynamic links to .so files
ldd libopenblas.so
## install gxx-4.8 and/or gxx-4.9 on Ubuntu 12.04 or Ubuntu 14.04
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
sudo apt-get install g++-4.9