Skip to content

Instantly share code, notes, and snippets.

View jasonbunk's full-sized avatar

Jason Bunk jasonbunk

  • Santa Barbara, CA
View GitHub Profile
@jasonbunk
jasonbunk / my_desktop_x86_setup.sh
Last active November 13, 2019 22:37
setup bashrc, python virtual environment, cuda (for ubuntu 18.04 x86 desktops)
#!/bin/bash
set -ex
THISPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# apt installs
sudo bash -c "
apt update && \
apt install -y \
git nano build-essential g++ python3 python3-pip \
autoconf automake \
@jasonbunk
jasonbunk / facebook_watchman_install_for_atom_nuclide.sh
Last active February 4, 2019 20:45
Build Facebook's Watchman on Ubuntu 16.04, for the Nuclide plugin for Atom (nuclide.io)
#!/bin/bash
set -ex
# for Ubuntu 16.04
sudo apt-get install -y autoconf automake build-essential git libtool python-dev libssl-dev curl
# watchman installation
if [ -d watchman ]; then echo "existing folder \"watchman\" found; skipping. to rebuild, delete it";
else
@jasonbunk
jasonbunk / build_caffe2_locally.sh
Last active September 9, 2018 21:30
Build caffe2 locally (not in /usr/lib) for compatibility with Python virtual environments (including Python 3)
#!/bin/bash
set -ex
THISSCRIPTPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd $THISSCRIPTPATH
echo "This script is for building Caffe2 locally (not in /usr/lib) on Ubuntu 16.04"
echo "Can be used for Python virtual environments"
echo "This assumes OpenCV is already installed: https://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/"
my_python_version=$(python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))")