Skip to content

Instantly share code, notes, and snippets.

@changbowen
changbowen / Get-DellWarranty.ps1
Last active September 2, 2021 08:15
Dell API - Get Warranty Info from Service Tag
Function Get-DellWarranty {
Param(
[Parameter(Mandatory,ValueFromPipeline)]
[String[]] $ServiceTag,
[Parameter(Mandatory)]
[string] $APIKey,
[Parameter(Mandatory)]
[string] $APISecret,
@changbowen
changbowen / Start-Monitoring.ps1
Last active September 11, 2021 07:32 — forked from kiwi-cam/Start-Monitoring.ps1
A simple Powershell script that monitors a remote hosts connection. Loops constantly reporting to the screen when the status changes. Optionally also records to the event log, makes an audible beep, and/or sends emails.
<#
.SYNOPSIS
Tests the connection to the supplied host or IP and reports back on changes to its status.
.DESCRIPTION
This script will check the connection to the supplied hostname or IP address every 5 second's to
monitor its status. If the status changes, a message is recorded, the Eventlog is update (optional), and an email is sent
to a supplied email address (optional).
If a TCPPort parameter is suppied the script will attempt to connect to this port. Otherwise a simple ICMP Ping is used.
@changbowen
changbowen / openwrt-lede-on-wd-mbl.sh
Created January 17, 2022 12:38 — forked from braian87b/openwrt-lede-on-wd-mbl.sh
Install OpenWRT or LEDE on WD MBL Western Digital MyBookLive
# Instructions to Install OpenWRT or LEDE on WD MBL Western Digital MyBookLive (Tested on Single, but it should work on Duo too)
# Recommended to use a Linux / Debian box with wget, dd, gunzip, lsblk
# Using a Debian box (it could be a VM) with the harddrive connected (it could be a minimal net-install Debian)
See ip with:
ip addr show
# connect remotely using:
user@outside:~/# ssh user@10.211.55.6
# We elevate permissions or even better install and config sudo
user@debian8vm:~/# su