Skip to content

Instantly share code, notes, and snippets.

@Guymer

Guymer/.pylintrc

Last active Mar 7, 2021
Embed
What would you like to do?
[MESSAGES CONTROL]
disable=bad-continuation,bad-whitespace,c-extension-no-member,import-outside-toplevel,invalid-name,line-too-long,missing-docstring,too-many-arguments,too-many-branches,too-many-locals,too-many-nested-blocks,too-many-statements
[TYPECHECK]
ignored-classes=boto3,cartopy,ephem,exifread,lxml,magic,matplotlib,matplotlib.cm,numpy,scipy,shapely,sysctl
ignored-modules=boto3,cartopy,ephem,exifread,lxml,magic,matplotlib,matplotlib.cm,numpy,scipy,shapely,sysctl
source=/Users/guymer/.bashrc
# Remove partition table from the disk
gpart destroy -F /dev/ada1
gpart destroy -F /dev/ada2
gpart destroy -F /dev/ada3
gpart destroy -F /dev/ada4
gpart destroy -F /dev/ada5
# Clean the disks
dd if=/dev/zero of=/dev/ada1 bs=1m count=10
dd if=/dev/zero of=/dev/ada2 bs=1m count=10
dd if=/dev/zero of=/dev/ada3 bs=1m count=10
dd if=/dev/zero of=/dev/ada4 bs=1m count=10
dd if=/dev/zero of=/dev/ada5 bs=1m count=10
# Create the ZFS pool
zpool create pool1 raidz /dev/ada1 /dev/ada2 /dev/ada3 /dev/ada4 /dev/ada5
# Enable auto-expansion of the ZFS pool
zpool set autoexpand=on pool1
# Enable transparent compression
zfs set compression=lz4 pool1
# Create partitions
zfs create -p pool1/home
zfs create -p pool1/mnt/data
zfs create -p pool1/mnt/timecapsule
zfs create -p pool1/usr/local/share/doc
zfs create -p pool1/usr/local/www/thomasguymer.co.uk
zfs create -p pool1/usr/ports
zfs create -p pool1/usr/src
zfs create -p pool1/var/db
zfs create -p pool1/var/log
zfs create -p pool1/var/mail
# Mark them for snapshots
zfs set com.sun:auto-snapshot=true pool1/home
zfs set com.sun:auto-snapshot=true pool1/mnt/data
zfs set com.sun:auto-snapshot=true pool1/usr/local/share/doc
zfs set com.sun:auto-snapshot=true pool1/usr/local/www/thomasguymer.co.uk
zfs set com.sun:auto-snapshot=true pool1/usr/ports
zfs set com.sun:auto-snapshot=true pool1/usr/src
zfs set com.sun:auto-snapshot=true pool1/var/db
zfs set com.sun:auto-snapshot=true pool1/var/log
zfs set com.sun:auto-snapshot=true pool1/var/mail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment