Skip to content

Instantly share code, notes, and snippets.

View node-red-example-device_tracker.see-flow
[
{
"id": "3195e36b.99fe1c",
"type": "tab",
"label": "Example",
"disabled": false,
"info": ""
},
{
"id": "e898cdb8.33c14",
View snmp.yml
kemp_loadmaster:
version: 2
auth:
community: public
walk:
- 1.3.6.1.4.1.12196.13.1
- 1.3.6.1.4.1.12196.13.2
metrics:
- name: vSidx
oid: 1.3.6.1.4.1.12196.13.1.1.1
View Hyper-V-VM-Storage-Optimization.ps1
function Start-VMStorageOptimization {
<#
.SYNOPSIS
Function to optimize storage usage on CSV volumes by using Hyper-V Live Storage Migration.
.DESCRIPTION
If you use dynamic virtual disks with VMs, you may need to monitor free space on your CSV volumes.
View csv-to-prom.ps1
# variables
$promLocation = "C:\Program Files\wmi_exporter\textfile_inputs\csv.prom"
Import-Module FailoverClusters
$clustername = Get-Cluster
$objs = @()
$CurrentFree = @{}
View Office 365 - Enable calendar processing.ps1
# The following script enables the calendar processing feature for a shared mailbox
$UserCredential = Get-Credential
$Identity = Read-Host -Prompt "Please enter the identity for which you want to enable calendar processing"
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
get-mailbox $Identity | set-mailbox -type room
Set-CalendarProcessing -Identity $Identity -AutomateProcessing AutoAccept -AllBookInPolicy $true Optional -AllowConflicts $true
get-mailbox $Identity | set-mailbox -type shared
Remove-PSSession $Session
View gist:f416d9d69b4d1887caec
### Keybase proof
I hereby claim:
* I am smaroovers on github.
* I am smaroovers (https://keybase.io/smaroovers) on keybase.
* I have a public key whose fingerprint is 72E0 9616 90C2 A4D7 E269 6A5E FD06 4793 1C4C 9818
To claim this, I am signing this object: