Skip to content

Instantly share code, notes, and snippets.

View matias-pizarro's full-sized avatar

Matías Pizarro matias-pizarro

View GitHub Profile
# Usage
chmod a+x barenaked_repos.sh
./barenaked_repos.sh
# To be able to interact with the created structure you can import the aliases and paths your bash session:
source ./environment.sh
# to clean up and start again
rm -rf ${HOME}/test_bare/shared_volume
@matias-pizarro
matias-pizarro / Advents Gist
Last active December 6, 2021 12:21
Advents Gist
To appear magically
@matias-pizarro
matias-pizarro / mount_be.md
Created October 29, 2016 20:01
Mount a BE filesystem temporarily

find out which are the BE filesystems:

$ zfs list
NAME                                        USED  AVAIL  REFER  MOUNTPOINT
tank                                       59.2G   840G    88K  none
tank/ROOT                                  16.5G   840G    88K  none
tank/ROOT/11.0-RC3                            8K   840G  3.66G  /
tank/ROOT/12.0-CURRENT-up-20161003_121021  60.6M   840G  7.08G  /
tank/ROOT/12.0-CURRENT-up-20161006_054232  12.0G   840G  9.97G  /
tank/ROOT/12.0-CURRENT-up-20161017_004530  4.43G   840G  9.04G  /
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@matias-pizarro
matias-pizarro / local.conf
Last active August 29, 2015 14:02
I have a repo set up at /mnt/usbdrive/packages. Going from pkg 1.2.5 (default on 10.0-RELEASE) to 1.2.7_2, the following set up stops working (pkg: unable to find catalog)
# /usr/local/etc/pkg/repos/local.conf
local: {
url: "pkg+file:///mnt/usbdrive/packages",
mirror_type: "srv",
enabled : yes
}