Skip to content

Instantly share code, notes, and snippets.

View MynaITLabs's full-sized avatar
🤣
Grinning

Myna IT Labs MynaITLabs

🤣
Grinning
View GitHub Profile
@MynaITLabs
MynaITLabs / zed.service
Created August 7, 2024 18:46 — forked from wrouesnel/zed.service
systemd unit files for ZFS
[Unit]
Description=ZFS Event Daemon (zed)
Documentation=man:zed(8)
After=zfs-import-cache.service
After=zfs-import-scan.service
[Service]
Type=forking
ExecStart=/sbin/zed
PIDFile=/run/zed.pid
@MynaITLabs
MynaITLabs / conncheck.sh
Created August 20, 2024 18:04 — forked from perfecto25/conncheck.sh
checks netcat and ssh connectivity to all hosts in /etc/hosts file, outputs Errors
#!/bin/bash
# Run as root
# /home/sshuttle/conncheck.sh
## replace 'sshuttle' user with any user that has global SSH access to servers
file=${1:-"/etc/hosts"}
ncat_port=22
RED='\033[1;31m'
GREEN='\033[1;32m'
NC='\033[0m' # no color