Skip to content

Instantly share code, notes, and snippets.

@iamsilvio
iamsilvio / zfs_health_check.sh
Created May 9, 2020 10:50 — forked from Rychu-Pawel/zfs_health_check.sh
ZFS Health Check script for monit. For detailed description and usage go to http://pawelrychlicki.pl/Article/Details/58/zfs-health-check-script-for-monit-09
#! /bin/sh
#
## ZFS health check script for monit.
## v0.9.0.2
#
## Should be compatible with FreeBSD and Linux. Tested on Ubuntu.
## If you want to use it on FreeBSD then go to Scrub Expired section
## and comment two Ubuntu date lines and uncomment two FreeBSD lines
#
## Assumed usage in monitrc (where 80 is max capacity in percentages
@iamsilvio
iamsilvio / iis-perfect-fwd-secrecy-tls-1.2.ps1
Last active June 22, 2022 20:48
powershell to configure IIS for PFS and TLS 1.2
# for the Cipher Suites Support documentation go to
# https://docs.microsoft.com/en-us/windows/desktop/SecAuthN/cipher-suites-in-schannel
# Version 1.7
Write-Host 'Configuring IIS with SSL/TLS Deployment Best Practices...'
Write-Host '--------------------------------------------------------------------------------'
# Disable Multi-Protocol Unified Hello
@iamsilvio
iamsilvio / Default (Linux).sublime-keymap
Last active December 19, 2015 08:09 — forked from coldnebo/Default (Linux).sublime-keymap
Changed Tidy xml to work with Sublime Text 3 Beta 3047 Added Some error output to the console
[
{ "keys": ["ctrl+shift+x"], "command": "tidy_xml" },
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" }
]
@iamsilvio
iamsilvio / removecompletedtorrents.sh
Last active December 13, 2015 19:28 — forked from bulljit/removecompletedtorrents.sh
F: Added prowl support
#!/bin/sh
# script to check for complete torrents in transmission folder, then stop and move them
# either hard-code the MOVEDIR variable here…
MOVEDIR=/media/tc/downloads # the folder to move completed downloads to
# …or set MOVEDIR using the first command-line argument
# MOVEDIR=%1
AUTH="PWD"
USER="USER"
# And push a message to PROWL
# Fill in with your own API key here