Skip to content

Instantly share code, notes, and snippets.

View gionn's full-sized avatar
⚔️

Giovanni Toraldo gionn

⚔️
View GitHub Profile
@gionn
gionn / docker.rb
Last active August 29, 2015 14:25 — forked from anonymous/docker.rb
Install aufs module on Ubuntu when needed via chef
#
# Recipe:: docker
#
aufs_exists = `lsmod | grep aufs | wc -l`.strip
if aufs_exists.to_i == 0
kernel_version = node["kernel"]["release"]
package "linux-image-extra-#{kernel_version}" do
node_modules
@gionn
gionn / zfs-snapshot.sh
Last active December 10, 2015 16:58 — forked from ertug/zfs-snapshot.sh
zfs-snapshot script, tested under FreeBSD 9.1
#!/usr/local/bin/bash
##
# original code: http://andyleonard.com/2010/04/07/automatic-zfs-snapshot-rotation-on-freebsd/
# 07/17/2011 - ertug: made it compatible with zfs-fuse which doesn't have .zfs directories
##
# Path to ZFS executable:
ZFS=/sbin/zfs
#
# Jekyll migrator for Drupal 7+
# adrianmejia.com
#
require 'rubygems'
require 'sequel'
require 'fileutils'
require 'yaml'