sudo zpool create -o ashift=12 backup /dev/disk/by-id/XXXX
Take a snapshot of the zpool you wish to backup
#!/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. |