Skip to content

Instantly share code, notes, and snippets.

View wences-dc-uba-ar's full-sized avatar
:octocat:

Wenceslao A. Zuloaga wences-dc-uba-ar

:octocat:
  • Barcelona, España
  • 06:55 (UTC +01:00)
View GitHub Profile
@wences-dc-uba-ar
wences-dc-uba-ar / zfs_backup_restore.md
Created October 21, 2024 07:00 — forked from kylhill/zfs_backup_restore.md
Backup & Restore ZFS to External USB Drive

Initial Backup

1. Create zpool on external drive

sudo zpool create -o ashift=12 backup /dev/disk/by-id/XXXX

2. Take a snapshot

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
@wences-dc-uba-ar
wences-dc-uba-ar / laughing-man.svg
Created September 14, 2020 01:25 — forked from johan/laughing-man.svg
The Laughing Man (Ghost in the Shell), 1000 byte SVG :-)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/**
* 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.