Skip to content

Instantly share code, notes, and snippets.

@mtngld
mtngld / install_opencv.sh
Last active August 29, 2015 14:24
OpenCV 3.0.0 Installation on Ubuntu
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove
sudo apt-get install checkinstall
# build developer tools. Some of these are probably non-pertinent
sudo apt-get install -y git-core curl zlib1g-dev build-essential \
libssl-dev libreadline-dev libyaml-dev libsqlite3-dev \
libxml2-dev libxslt1-dev libcurl4-openssl-dev \
python-software-properties
@mtngld
mtngld / upgrade_openssh.sh
Last active January 3, 2017 10:47
Upgrade openssh on ubuntu
wget https://launchpad.net/openssh/main/6.9p1/+download/openssh-6.9p1.tar.gz
tar -xvf openssh-6.9p1.tar.gz
cd openssh-6.9p1/
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords --with-privsep-path=/var/lib/sshd
sudo make install
sshd -V
@mtngld
mtngld / save_tabs.sh
Created August 27, 2015 07:13
Terminal tabs saving and restoring
#!/usr/bin/env bash
##########
# This file should be run in cron, such as:
# 0 * * * * bash ~/save_tabs.sh
##########
STATE_FILE = $HOME/saved_tabs
gnome-terminal --save-config=$STATE_FILE
@mtngld
mtngld / Multilabel - Public
Created November 21, 2015 22:11
Multilabel - Public
a
@mtngld
mtngld / install_cuda.sh
Created March 22, 2016 21:18
Install CUDA 7.5 on AWS
# based on https://devtalk.nvidia.com/default/topic/880246/cuda-setup-and-installation/cuda-7-5-unstable-on-ec2-/post/4830634/#4830634
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update -q -y
sudo apt-get -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install linux-generic
wget http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda-repo-ubuntu1404-7-5-local_7.5-18_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404-7-5-local_7.5-18_amd64.deb
sudo apt-get update -q -y
sudo apt-get install cuda -q -y
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.