Skip to content

Instantly share code, notes, and snippets.

@2510
2510 / iscsi-zfs
Last active May 11, 2023 22:30
FreeBSD rc.script for activating ZFS pool over iSCSI
#!/bin/sh
# PROVIDE: iscsi-zfs
# REQUIRE: iscsid iscsictl mountcritlocal var
. /etc/rc.subr
name="iscsi_zfs"
start_cmd="iscsi_zfs_start"
stop_cmd="iscsi_zfs_stop"
@2510
2510 / Windows 10 Disable Services.bat
Last active May 7, 2024 09:41
Disable unused services (for me) on Windows 10
REM Windows Search
sc config WSearch start=disabled
REM SSDP Discovery
sc config SSDPSRV start=disabled
REM Geolocation Service
sc config lfsvc start=disabled
REM ActiveX Installer
sc config AXInstSV start=disabled
REM AllJoyn Router Service
sc config AJRouter start=disabled
@2510
2510 / ucarp-nfs-test.py
Created January 11, 2016 07:42
Test Script for ucarp+nfs
#!/usr/local/bin/python2.7
import os
import subprocess
import sys
import time
path = '/glusterfs/test.dat'
addresses = [ '10.0.0.1', '10.0.0.2', '10.0.0.127' ]