Skip to content
View psitem's full-sized avatar

Block or report psitem

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. uptime-kuma-pacman-ghost-light uptime-kuma-pacman-ghost-light Public

    Turn a Pacman Ghost Light into an Uptime Kuma status monitor with CircuitPython.

    Python 4

  2. This is the Plex monitoring script t... This is the Plex monitoring script that wrote and have been using since +/- 2017. I cribbed the list of processes to kill and the idea of checking that the web UI responded without error from other people's scripts but the rest is all me.
    1
    #Start-Transcript -Append -Path .\plex-monitor-transcript.log -IncludeInvocationHeader:$false -Force
    2
     
    3
    <#
    4
     This is my Plex monitoring script. There are many like it, but this one is mine. If 
    5
     you're running Plex as a Windows Service this script is not for you as-written, but 
  3. Backup BitLocker recovery keys to Ac... Backup BitLocker recovery keys to Active Directory
    1
    Get-BitLockerVolume | `
    2
    Where-Object { $_.VolumeStatus -like "FullyEncrypted" } | `
    3
    ForEach-Object { 
    4
     foreach( $Key in $_.KeyProtector ) {
    5
     if( $Key -like "RecoveryPassword" ) {
  4. Output total disk read/write activit... Output total disk read/write activity in MB/s
    1
    Get-Counter -Counter "\LogicalDisk(_Total)\Disk Read Bytes/sec","\LogicalDisk(_Total)\Disk Write Bytes/sec" -Continuous -SampleInterval 1 | ForEach-Object {
    2
     [PSCustomObject]@{
    3
     Time = (get-date $_.Timestamp -Format u).replace("Z", "")
    4
     Read = [math]::round($_.CounterSamples[0].CookedValue /1Mb, 0) 
    5
     Write = [math]::round($_.CounterSamples[1].CookedValue /1Mb, 0) 
  5. Modifies the output of Get-PhysicalD... Modifies the output of Get-PhysicalDisk to have enclosure information. Works On My Machine™ certified with an LSI SAS 9201-16e and Promise SAS enclosures.
    1
    <#
    2
     Wrote this to scratch an itch for tracking where my disks are physically located within and across
    3
     storage enclosures. Before writing this I was using a spreadsheet, which was tedious to maintain. 
    4
     For this script to be useful, you'll need a storage enclosure that Windows recognizes and exposes 
    5
     through WMI, ie: one that provides SCSI Enclosure Services (SES).
  6. Create PTRs from dnsmasq's -dhcp-scr... Create PTRs from dnsmasq's -dhcp-script command. Very quick-n-dirty, Works on My Active Directory™ tested.
    1
    $dnsServer = '10.10.10.10' # Replace with a DNS server accepting insecure updates.
    2
    $dnsDomain = 'home.mydomain.com' # Replace with your domain name.
    3
     
    4
    $dhcpCmd = $args[0]
    5
    $dhcpMac = $args[1]