Skip to content

Instantly share code, notes, and snippets.

View kirk86's full-sized avatar

kirk86

View GitHub Profile
@kirk86
kirk86 / python-on-ubuntu.sh
Created October 25, 2015 17:36 — forked from neuroticnerd/python-on-ubuntu.sh
Python 2.7.9 on Ubuntu 14.04.2 (without overwriting original version)
#! /usr/bin/env bash
# http://smirnov-am.blogspot.com/2015/04/installation-of-python-279-in-ubuntu.html
# http://davebehnke.com/python-pyenv-ubuntu.html
# https://renoirboulanger.com/blog/2015/04/upgrade-python-2-7-9-ubuntu-14-04-lts-making-deb-package/
# install dependencies
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
@kirk86
kirk86 / ipython-notebook.conf
Created October 24, 2015 00:43 — forked from tinkerbotfoo/ipython-notebook.conf
ipython upstart script - Ubuntu 12.04 Precise. Put this file in the /etc/init folder to start ipython upon system booting
# IPython Notebook Launcher
# Adopted from the Rstudio upstart script
#
#
# upstart docs: http://upstart.ubuntu.com/getting-started.html
# http://manpages.ubuntu.com/manpages/karmic/man5/init.5.html
#
# (note that embedding a script and pre-start and post-start actions are supported)
#
@kirk86
kirk86 / ipython-notebook.conf
Created October 24, 2015 00:41
ipython notebook upstart script for ubuntu
# to be put to "/etc/init/"
description "ipython"
start on runlevel [2345]
stop on runlevel [016]
respawn limit 10 5
script
exec sudo -u randy ipython notebook --profile=nbserver --ipython-dir=/home/randy/.ipython/
end script