HACK - Not recommended for production !
wget http://archive.zfsonlinux.org/debian/pool/main/z/zfsonlinux/zfsonlinux_8_all.deb
dpkg --unpack zfsonlinux_8_all.deb
vim /var/lib/dpkg/info/zfsonlinux.postinst
| Looking at https://github.com/bup/bup/blob/master/t/test-sparse-files.sh#L46 | |
| restore_size=$(WVPASS du -k -s restore | WVPASS cut -f1) || exit $? | |
| WVPASS [ "$restore_size" -ge "$((data_size / 1024))" ] | |
| For a block size of 4096 bytes: | |
| data_size = block_size * 10 = 40960 | |
| File is created using: | |
| WVPASS dd if=/dev/zero of=src/foo seek="$data_size" bs=1 count=1 |
| #!/usr/bin/env python3 | |
| import sys | |
| import xml.etree.ElementTree as ET | |
| DISTRIBUTER_FIELD = 'Mouser' | |
| component_list = {} | |
| [ | |
| { | |
| "version":"1.9", | |
| "time":"1483127520", | |
| "age":"0", | |
| "latitude":"50.901438", | |
| "longitude":"9.583847", | |
| "altitude":"323.2", | |
| "speed":"68.179", | |
| "cmg":"175.07", |
| >>> print a | |
| [[...]] | |
| >>> a += ["WTF"] | |
| >>> print a | |
| [[...], 'WTF'] | |
| >>> print a[0] | |
| [[...], 'WTF'] | |
| >>> print a[0][0] | |
| [[...], 'WTF'] | |
| >>> print a[0][0][0] |
| fn convert_f32<'a>(input: &'a Vec<f32>) -> Box<Iterator<Item=f32> + 'a> { | |
| Box::new(input.iter().cloned()) | |
| } | |
| fn convert_u32<'a>(input: &'a Vec<u32>) -> Box<Iterator<Item=f32> + 'a> { | |
| Box::new(input.iter().cloned().map(|x| x as f32)) | |
| } | |
| enum InputType { |
| #!/usr/bin/env python2 | |
| import numpy | |
| import scipy.signal | |
| import matplotlib.pyplot as plt | |
| f_samp = 100.0 | |
| f_sine = 40.0 | |
| f_lim = 2.0 |
| #!/bin/bash | |
| channel="#c3kl" | |
| topic="" | |
| odate="$(date '+%A %d.%m.%Y %H:%M')" | |
| function log { | |
| echo "$1" >> ./log.txt | |
| } | |
| function send { |
| <html> | |
| <head> | |
| <style type="text/css"> | |
| .container { | |
| display: flex; /* or inline-flex */ | |
| flex-direction: row; | |
| flex-wrap: wrap; | |
| justify-content: space-around; | |
| align-content: stretch; |
| When shall we shadow The numbers of our poyson'd Challice To our owne lips. Hee's heere in double trust; | |
| First, as I am truly Is thine, and thrice to mine, And thrice againe, to make him fly the Land? Rosse. | |
| You know your owne King. Giue me some Wine, fill full: Enter Ghost. I drinke to th' vtterance. Who's there? | |
| what hoa? Lady. Alack, I am his Kinsman, and his Prayses doe contend, | |
| Which should be the Villaine that thou might'st not loose the dues of reioycing by being ignorant | |
| of what Greatnesse is promis'd thee. Lay it to thy Direction, and Vnspeake mine owne detraction. | |
| Heere abiure The taints, and blames I laide vpon my selfe, For strangers to my Nature. I am sick at hart, | |
| When I shall thinke Macd. Bleed, bleed poore Country, Great Tyrrany, lay thou thy basis sure, | |
| For goodnesse dare not Lady. Infirme of purpose: Giue me your hand: Conduct me to mine Eyes. | |
| Now o're the one halfe World Nature seemes dead, and wicked Dreames abuse The Curtain'd sleepe: |