Random bits of bash. Might be useful, might be not. No refunds.