How to use Pelican on GitHub Pages
Author: Josef Jezek
sudo apt-get install python-setuptools
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Helpers for automating the process of setting up ported Linux/UNIX | |
applications which were designed with expectations like being in $PATH. | |
@note: Basic functionality requires only the Python standard library. | |
Some functions and methods also require the PyWin32 package. | |
@note: A much more verbose "sudo for Windows" implementation (BSD-licensed) |
#!/bin/bash | |
# ================================================================= | |
# Install a full scientific python stack from source, for Ubuntu, with | |
# python 2.7.3 (tested on a totally fresh Ubuntu12.04-amd64). Requires | |
# sudo for apt-getting dependencies like libatlas, Tk, etc | |
# ================================================================= | |
# packages pulled from PyPI are currently | |
# scipy 0.10.1 |
from math import log | |
log2= lambda x:log(x,2) | |
from scipy import histogram, digitize, stats, mean, std | |
from collections import defaultdict | |
def mutual_information(x,y): | |
return entropy(y) - conditional_entropy(x,y) | |
def conditional_entropy(x, y): | |
""" |
## source .bashrc ## | |
alias reload='. .bashrc' | |
## handy shortcuts ## | |
alias h='history' | |
alias h.20='history 20' | |
## create a new set of commands ## | |
alias path='echo -e ${PATH//:/\\n}' | |
alias now='date +"%T"' |
Author: Josef Jezek
sudo apt-get install python-setuptools
Scan for access points (run multiple times for more complete scan):
# connmanctl scan wifi
Scan completed for wifi
[Unit] | |
Description=Gpio daemon | |
[Service] | |
ExecStart=/usr/local/bin/pigpiod | |
Type=forking | |
[Install] | |
WantedBy=multi-user.target |