1784413672

This commit is contained in:
2026-07-18 16:27:51 -06:00
parent e6cbe71c5b
commit 79ad72ff11
5 changed files with 31 additions and 7 deletions
+1
View File
@@ -2,3 +2,4 @@
*/tag.txt
*.tmp
*.csv
*.sha256
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
default_files_name="`printf '%s\n' \"${PWD##*/}\"`_checksums_`date +%Y-%m-%d-%H%M-%Z`.sha256" # add da timedate stamp to it
echo $default_files_name
exit 0
find $PWD -type f -exec sha256sum {} | tee -a files.sha256
+1 -1
View File
@@ -58,4 +58,4 @@ Start-Sleep -Seconds $WaitSeconds
# x Force reboot with no warning
# Disabled -Force to let apps close gracefully
Restart-Computer # -Force
Stop-Computer # -Force
+12 -1
View File
@@ -27,5 +27,16 @@ if([string]::IsNullOrEmpty($args[2])) {
$Buttons = $args[2]
}
# doin inide start-job method so alert box doesnt block
Start-Job -ScriptBlock {
# get back my fuckin vars inside this script block
$Message = $using:Message
$Buttons = $using:Buttons
$Type = $using:Type
# Add the PresentationFramework
Add-Type -AssemblyName PresentationFramework
[System.Windows.MessageBox]::Show($Message, $Message, $Buttons, $Type);
# Send the alert
[System.Windows.MessageBox]::Show($Message, $Message, $Buttons, $Type)
};
+9 -4
View File
@@ -1,6 +1,11 @@
param (
[Parameter(Mandatory=$true)]
[string]$infile
)
# param (
# [Parameter(Mandatory=$true)]
# [string]$infile
# )
if(!$args[0]) {
Write-Host "Usage: sha256sum <file path>"
exit 1
}
Invoke-Expression "$PSScriptRoot\winhash.ps1 $infile SHA256"