Friday, 28 November 2014

sudo mount 192.168.1.xxx /mnt/media

requires,

sudo apt-get install nfs-kernel-server

Tuesday, 25 November 2014

Air conditioning

http://www.johnlewis.com/electrolux-exp12hn1wi-portable-air-conditioner-white/p231882244

Monday, 24 November 2014

Guitar stuff

http://ds.mk-guitar.com/effects.htm

Monday, 3 November 2014

Projecting!

BenQ W1070 £500 & Sapphire SWS240WSF-ASR2 106inch £200

Wednesday, 29 October 2014

Impressive pandas python web data code snippet from stack overflow.

import itertools
import datetime as dt

import numpy as np
import pandas as pd
from pandas.io.html import read_html


dfs = read_html('http://www.epexspot.com/en/market-data/auction/auction-table/2006-01-01/DE',
                attrs={'class': 'list hours responsive'},
                skiprows=1)

df = dfs[0]

hours = list(itertools.chain.from_iterable([[x, x] for x in range(1, 25)]))
df[0] = hours

df = df.rename(columns={0: 'a'})
df = df.rename(columns={1: 'b'})
df = df.set_index(['a', 'b'])
#df = df.set_index([0, 1])

today = dt.datetime(2006, 1, 1)
days = pd.date_range(today, periods=len(df.columns), freq='D')

colnames = [day.strftime(format='%Y-%m-%d') for day in days]
df.columns = colnames

Wednesday, 22 October 2014

Disk usage (du) sorted by human readable size:

From https://gist.github.com/xentek/3490293

du -s ./* | sort -n| cut -f 2-| xargs du -sh {}

Monday, 20 October 2014

Great post on ssh and .ssh/config including port forwarding

http://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/