As of October 2016, Raspbian does not yet include the latest Python release, Python 3.5. This means we will have to build it ourselves, and here is how to do it.
- Install the required build-tools (some might already be installed on your system).
#!/bin/sh | |
# | |
# Setup a work space called `work` with two windows | |
# first window has 3 panes. | |
# The first pane set at 65%, split horizontally, set to api root and running vim | |
# pane 2 is split at 25% and running redis-server | |
# pane 3 is set to api root and bash prompt. | |
# note: `api` aliased to `cd ~/path/to/work` | |
# | |
session="work" |
# curl https://gist.githubusercontent.com/hakanu/7a8a14f60bdc8478d194/raw/3c02c7c3f0c30cee4348016ceb6a6d528a6e86ac/setup_dev.sh | bash | |
# Base stuff. | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get -y install build-essential | |
sudo apt-get -y install git | |
sudo apt-get -y install screen | |
sudo apt-get -y install ruby |
# LVDB - LLOOGG Memory DB | |
# Copyriht (C) 2009 Salvatore Sanfilippo <antirez@gmail.com> | |
# All Rights Reserved | |
# TODO | |
# - cron with cleanup of timedout clients, automatic dump | |
# - the dump should use array startsearch to write it line by line | |
# and may just use gets to read element by element and load the whole state. | |
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands. | |
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump! |