diff --git a/.gitignore b/.gitignore index 4966594..4bab83d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ */tag.txt *.tmp *.csv +*.sha256 \ No newline at end of file diff --git a/Untitled-1.sh b/Untitled-1.sh new file mode 100644 index 0000000..1e4c1ca --- /dev/null +++ b/Untitled-1.sh @@ -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 \ No newline at end of file diff --git a/Windows-Scripts/IM_SO_TIRED_BOSS.ps1 b/Windows-Scripts/IM_SO_TIRED_BOSS.ps1 index ee2b68c..647938e 100644 --- a/Windows-Scripts/IM_SO_TIRED_BOSS.ps1 +++ b/Windows-Scripts/IM_SO_TIRED_BOSS.ps1 @@ -58,4 +58,4 @@ Start-Sleep -Seconds $WaitSeconds # x Force reboot with no warning # Disabled -Force to let apps close gracefully -Restart-Computer # -Force \ No newline at end of file +Stop-Computer # -Force \ No newline at end of file diff --git a/Windows-Scripts/alert.ps1 b/Windows-Scripts/alert.ps1 index 5cb86ea..e64b178 100644 --- a/Windows-Scripts/alert.ps1 +++ b/Windows-Scripts/alert.ps1 @@ -27,5 +27,16 @@ if([string]::IsNullOrEmpty($args[2])) { $Buttons = $args[2] } -Add-Type -AssemblyName PresentationFramework -[System.Windows.MessageBox]::Show($Message, $Message, $Buttons, $Type); \ No newline at end of file +# 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 + + # Send the alert + [System.Windows.MessageBox]::Show($Message, $Message, $Buttons, $Type) +}; \ No newline at end of file diff --git a/Windows-Scripts/sha256sum.ps1 b/Windows-Scripts/sha256sum.ps1 index 71c8012..2616135 100644 --- a/Windows-Scripts/sha256sum.ps1 +++ b/Windows-Scripts/sha256sum.ps1 @@ -1,6 +1,11 @@ -param ( - [Parameter(Mandatory=$true)] - [string]$infile -) +# param ( +# [Parameter(Mandatory=$true)] +# [string]$infile +# ) + +if(!$args[0]) { + Write-Host "Usage: sha256sum " + exit 1 +} Invoke-Expression "$PSScriptRoot\winhash.ps1 $infile SHA256" \ No newline at end of file