Skip to content

Instantly share code, notes, and snippets.

@spicycode
spicycode / tmux.conf
Created September 20, 2011 16:43
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000

Environment

  • VMWare Fusion 10
  • Ubuntu 16.04 LTS

VMWare setup

  • Enable host key bindings of OS X (so it can use Exposes of OS X)
  • Do not map Cmd-C to Ctrl-C, etc.
  • In Display, enable "Use Full Resolution" for retina display.
@ctchuang
ctchuang / Shrink VMWare Disk.md
Last active May 6, 2018 14:57
Shrink VMWare Disk

Guest OS

  • Windows

    Download sdelete from Microsoft Technet

    sdelete -c -z c:\
  • Linux
@alvaro893
alvaro893 / install-and-compile-cv2.sh
Created February 16, 2017 21:47
Compile opencv 3.1.0 for ubuntu with virtualenv
#!/bin/bash
# from http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/
sudo apt-get install build-essential cmake pkg-config libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libgtk-3-dev libatlas-base-dev gfortran python2.7-dev python3.5-dev -y
wget -O opencv.zip https://github.com/Itseez/opencv/archive/3.1.0.zip
unzip opencv.zip
#contribut packages
wget -O opencv_contrib.zip https://github.com/Itseez/opencv_contrib/archive/3.1.0.zip
unzip opencv_contrib.zip
@wngr
wngr / Dockerfile
Last active November 20, 2020 06:08
Compile PyTorch on Raspberry Pi 3
# if you want to cross compile, look into qemu
FROM resin/armv7hf-debian
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y git
# get v0.3.1 release
RUN git clone -b v0.3.1 --recursive https://github.com/pytorch/pytorch ./pytorch
WORKDIR /usr/src/app/pytorch
# https://github.com/pytorch/pytorch/issues/4472
RUN git config user.email foo@foo && git config user.name foo && git cherry-pick af8b64aadca379397ff27c135eccb1cfaee5f524