Skip to content

Instantly share code, notes, and snippets.

View sithtoast's full-sized avatar

William Holt sithtoast

View GitHub Profile
@sithtoast
sithtoast / gethotfixes.ps1
Last active March 14, 2021 05:28
Get hotfixes installed on domain joined devices
# Grabs all installed hotfixes from domain computers and dumps that into a CSV file.
# Put your domain\user here
$admin = "domain\support_user"
# This will prompt for the password when you run the script.
$PW = Read-Host "Enter Password" -AsSecureString
# Caches the script.
$cred = New-Object System.Management.Automation.PSCredential -ArgumentList $admin, $PW
# List of all HotFixes containing the patch
$hotfixes = "KB4499151", "KB4499165", "KB4494440", "KB4493470", "KB4493446"
$ComputerList = Get-Content "servers.txt"
foreach($computer in $ComputerList) {
if(-not(Test-Connection $computer -Count 1 -quiet)) {
Write-Warning "$computer is offline"
continue
}
@sithtoast
sithtoast / keybase.md
Created February 9, 2017 18:46
keybase

Keybase proof

I hereby claim:

  • I am sithtoast on github.
  • I am sithtoast (https://keybase.io/sithtoast) on keybase.
  • I have a public key ASCss1edC1lm6LoLJ4MmYm62HsQMWB7lw7VrXZrgttQVUgo

To claim this, I am signing this object:

@sithtoast
sithtoast / ev8upgrade.bat
Last active August 30, 2016 15:37
Evault upgrader
"C:\Shared\_Evault installation files\InfoStageDirector-8-00-7402d.exe" /s /f1C:\backup\silent8up.iss [KeepBackup] [NoRegSat]
exit
@sithtoast
sithtoast / wsftpimport
Last active November 13, 2017 20:38
CSV to WS_FTP
#CSV to FTP: The Script
#By: William Holt
#For: CSI
#Date: 06/24/15
#FTP accounts are here in a CSV file. Commas seperate the username and password.
$ftpaccounts = Import-csv c:\scripts\bankftp.csv
#Counts lines for progress bar.
$LinesInFile = 0
@sithtoast
sithtoast / deadpidwalking.sh
Last active November 13, 2017 20:38
deadpidwalking.sh
#!/bin/bash
# Dead PIDs Walkin'
# William Holt (wholt1@murraystate.edu)
# 08.26.14
#export PATH=$PATH:/u01/app/oracle/middleware/FRHome_1/bin/
#sqlplusloc=/u01/app/oracle/middleware/FRHome_1/bin/
NOW=$(date +"%m-%d-%y %H:%M")
@sithtoast
sithtoast / piglatin.rb
Created May 20, 2014 03:03
Pig Latin o' Matic
# Pig latin o' Matic - By: William Holt
def translate str
alpha = ('a'..'z').to_a
vowels = %w[a e i o u]
consonants = alpha - vowels
# oh god regex, so nice, yet so complicated looking
# this finds punctuation!
str.gsub(/(\A|\s)[\w'’]+/) do |str|
# Hunts down words that begin with vowels