sudo zpool create -o ashift=12 backup /dev/disk/by-id/XXXXTake a snapshot of the zpool you wish to backup
| #!/bin/env bash | |
| set -o errexit -o pipefail -o noclobber -o nounset | |
| # set -x | |
| sudo apt install fish powerline | |
| sudo chsh --shell $(which fish) | |
| FISH_CONFIG_FILE=~/.config/fish/config.fish |
| Alice in Wonderland Quotes | |
| Alice Quotes | |
| But that's just the trouble with me. I give myself very good advice, but I very seldom follow it. | |
| I wonder which way I ought to go. | |
| Oh, dear. I do wish I hadn't cried so much. | |
| It would be so nice if something made sense for a change. | |
| Curiouser and curiouser! | |
| Well, I've had enough nonsense. I'm going home! |
| #!/system/bin/sh | |
| # source: https://android.stackexchange.com/questions/215124/how-to-organize-photos-from-camera-folder-in-to-folders-sorted-by-month-names | |
| set -e | |
| DIR='/sdcard/DCIM/100ANDRO' | |
| find $DIR -maxdepth 1 -type f -iname '*.jp*g' -o -iname '*.png' | | |
| while read -r photo |
| // ==UserScript== | |
| // @name Gitlab Merge Request Changes file filtering | |
| // @namespace https://github.com/josecanciani | |
| // @include https://gitlab.com/*/-/merge_requests/* | |
| // @include https://*gitlab*/-/merge_requests/* | |
| // @version 9 | |
| // @updateURL https://gist.githubusercontent.com/josecanciani/2e6d1d0b9ce9889eb5ac480219f21e19/raw/gitlab-merge-request-diff-file-filter.user.js | |
| // @author Jose Luis Canciani | |
| // @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html | |
| // @description This script will provide a filter box to add Regexp filters for files in the list |
| /** | |
| * indented prettyPrint caller function | |
| */ | |
| function fcallerName() { | |
| var err = new Error(); | |
| var stack = err.stack.split("\n"); | |
| var lft = " ".substr(0, stack.length-3); | |
| return [ | |
| "%c" + lft + "FUNCTION " + fcallerName.caller.caller.name + "()", | |
| "background: #222; color: #bada55;", |
| #!/bin/bash | |
| DEPLOY_DIR=$(basename `pwd`) | |
| BUNDLES=$(php7.1 app/console debug:config|egrep -i '\| ([a-z]+) +\|'| cut -f 2 -d ' ') | |
| for ENV in dev test preprod; do | |
| # prod stage no funca | |
| file=/var/www/web/debug-config/$DEPLOY_DIR/$ENV | |
| echo $file | |
| mkdir -p $(dirname $file) |
| For headless setup, | |
| SSH can be enabled by placing a file named 'ssh', | |
| without any extension, | |
| onto the boot partition of the SD card. |