Skip to content

Instantly share code, notes, and snippets.

@mwpher
mwpher / sysrc.py
Last active August 29, 2015 14:16
sysrc ansible module
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# NOTE: I don't have any significant experience with programming, so don't be
# surprised if I've screwed up. I'll remove this note once it's been
# looked at by smarter people.
# -- Matt (hybrid120 at gmail)
import os
import stat
@mwpher
mwpher / zfs-rollback.sh
Last active April 21, 2023 17:14
ZFS Recursive Rollback
#!/bin/sh
# Originally by: Dr. Martin Menzel www.dr-menzel-it.de
# Modified by Matthew Pherigo
#
# Use at your own risk. No warranty. No fee.
#
# parameter list:
# (1) the filesystem to be used to start decendant recursion
# example: apool/zones/webzone
# (2) the snapshot to which the filesystems should be rolled back
#!/bin/sh
# **Requires**: *Bash, Git, Tmux, Zsh, Vim*
cd;
git clone --recursive git@github.com:mwpher/dotfiles;
git config --global user.name "Matthew Pherigo";
git config --global user.email hybrid120@gmail.com;
git config --global push.default simple;
ln -s dotfiles/zshrc .zshrc;
ln -s dotfiles/tmux.conf .tmux.conf;
ln -s dotfiles/dotvim/ .vim;