Skip to content

Instantly share code, notes, and snippets.

@william-gr
william-gr / replace_disk.py
Created May 19, 2022 18:51
Replacing a disk in TrueNAS 13.0-RELEASE
#!/usr/bin/env python3
import argparse
import sys
from middlewared.client import Client
def main():
parser = argparse.ArgumentParser()
parser.add_argument('pool')
### Keybase proof
I hereby claim:
* I am william-gr on github.
* I am williamgr (https://keybase.io/williamgr) on keybase.
* I have a public key ASCwriWyONvsUdNCDl2ESaPSFbST0DYovyNfF0yjfBJ2KAo
To claim this, I am signing this object:
@william-gr
william-gr / example.html
Last active December 18, 2015 07:39 — forked from ojii/example.html
{% load cms_tags sekizai_tags %}
<!doctype html>
<head>
<title>{{ request.current_page.get_title }}</title>
{% render_block "css" %}
</head>
<body>
{% cms_toolbar %}
{% placeholder "main" %}