Skip to content

Instantly share code, notes, and snippets.

View mitmul's full-sized avatar

Shunta Saito mitmul

View GitHub Profile
sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline6-dev libssl-dev libdb-dev
cd
git clone git://github.com/yyuu/pyenv.git .pyenv
echo 'export PYENV_ROOT=$HOME/.pyenv' >> ~/.profile
echo 'export PATH=$PYENV_ROOT/bin:$PATH' >> ~/.profile
echo 'eval "$(pyenv init -)"' >> ~/.profile
. ~/.profile
pyenv install 2.7.6
pyenv global 2.7.6
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
require 'formula'
class OpencvAna Formula
homepage 'http://opencv.org/'
url 'https://github.com/Itseez/opencv/archive/2.4.9.tar.gz'
sha1 'd16ced627db17f9864c681545f18f030c7a4cc0b'
head 'https://github.com/Itseez/opencv.git'
option "32-bit"
option "with-java", "Build with Java support"
require "formula"
# Documentation: https://github.com/Homebrew/homebrew/wiki/Formula-Cookbook
# /usr/local/Library/Contributions/example-formula.rb
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Tinyobjloader < Formula
homepage "https://github.com/syoyo/tinyobjloader"
url "https://github.com/syoyo/tinyobjloader.git"
sha1 ""
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#! /bin/bash
CUDA_VERSION="6.5"
cd
sudo yum update -y
sudo yum groupinstall -y "Development Tools"
# add repositories
sudo yum install -y http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
sudo touch /etc/yum.repos.d/CentOS-Base.repo
sudo sh -c "echo '[base]' >> /etc/yum.repos.d/CentOS-Base.repo"
@mitmul
mitmul / caffe_prepare.sh
Last active August 29, 2015 14:06
prepare libraries for caffe(http://caffe.berkeleyvision.org) using homebrew on OSX
#! /bin/bash
cd /usr/local
git reset --hard
brew untap homebrew/science
rm -rf /usr/local/Library/Formula/opencv.rb
brew tap homebrew/science
brew update
brew install gnu-sed hdf5
function add_line() {
@mitmul
mitmul / launch_ubuntu.sh
Last active August 29, 2015 14:06
Launch CUDA and Python (Anaconda) installed Ubuntu 14.04 instance
#! /bin/bash
pip install awscli
AMI="ami-25dcff24"
INSTANCE_TYPE="g2.2xlarge"
PRICE="0.05"
KEYPAIR=""
REGION="ap-northeast-1"
SECURITY_GROUPS="default"