Skip to content

Instantly share code, notes, and snippets.

@sio2boss
sio2boss / Makefile
Last active December 20, 2015 22:59
Makefile for cmake
all:
mkdir -p build
cd build && cmake ../src && make
clean:
rm -rf build
@sio2boss
sio2boss / Fetch.sublime-settings
Created August 17, 2013 19:56
Sublime Gist Manage
{
"files":
{
"jquery": "http://code.jquery.com/jquery.min.js"
},
"packages":
{
"CppAppSeed": "https://github.com/sio2boss/CppAppSeed/archive/master.zip",
"NodeAppSeed": "https://github.com/sio2boss/NodeAppSeed/archive/master.zip",
"ProtoBufSeed": "https://github.com/sio2boss/ProtoBufSeed/archive/master.zip",
@sio2boss
sio2boss / client-socket-reconnect.js
Created August 25, 2013 14:19
Node.js Re-connecting Socket
//
// Simple example of using net.Socket but here we capture the
// right events and attempt to re-establish the connection when
// is is closed either because of an error establishing a
// connection or when the server closes the connection.
//
// Requires
var net = require('net');
@sio2boss
sio2boss / README.md
Created October 10, 2013 00:00
Zentyal 2.2 to 3.2 User Restore Script
@sio2boss
sio2boss / gist:410b9cb508b3136e4454
Last active August 29, 2015 14:04
ToDo after fresh Ubuntu Install
#! /bin/sh
# 1: Tweak Tools:
sudo apt-get -y install unity-tweak-tool gnome-tweak-tool
# 2: Enable one-click to minimize feature:
sudo apt-get -y install compizconfig-settings-manager
# 3: LightDM Tweaks
echo allow-guest=false | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
#! /bin/sh
sudo apt-get install -y -qq git zsh
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
if [ -e ~/.zshrc ]; then
cp ~/.zshrc ~/.zshrc.orig
fi
@sio2boss
sio2boss / gist:1966fac2f66122e24d2e
Last active April 19, 2016 10:10
Torch7 And Caffe
#! /bin/sh
# Need to install CUDA first
# Need to update with cuDNN procedure
# Dependencies
sudo apt-get install -y libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler cmake git curl clang python-pip python-dev build-essential
sudo pip install --upgrade pip
# Install Torch
@sio2boss
sio2boss / gist:f6aa21e65eea7c4cdcb8
Last active August 29, 2015 14:10
Setting Up Jetson TK1
#! /bin/sh
## USB Stuff
sudo bash -c "echo -1 > /sys/module/usbcore/parameters/autosuspend"
## CPU
sudo apt-get install -y cpufrequtils
sudo vi /etc/default/cpufrequtils
#ENABLE="true"
#GOVERNOR="performance"
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3cb7d58..dc70e8d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,6 +4,7 @@ project( Caffe )
### Build Options ##########################################################################
option(CPU_ONLY "Build Caffe without GPU support" OFF)
+option(CUDNN "Build with cuDNN support" ON)
option(BUILD_PYTHON "Build Python wrapper" OFF)
@sio2boss
sio2boss / java8
Last active August 29, 2015 14:10
Install Oracle Java 8 on Ubuntu
#! /bin/sh
# From http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install -y oracle-java8-installer
java -version