This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# %% | |
# Importing necessary libraries | |
import cv2 | |
from skimage.metrics import structural_similarity as ssim | |
import numpy as np | |
import os | |
from pptx import Presentation | |
from pptx.util import Inches | |
# %% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem ".\" -Filter *.pdf | | |
Foreach-Object { | |
$output = $_.BaseName + ".png" | |
if (Test-Path $output) { | |
Remove-Item $output | |
} | |
convert -density 300 $_.FullName -bordercolor white -border 1x1 -trim +repage -quality 100 -border 50x50 $output | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
convert oauth.png -define icon:auto-resize=256,128,64,48,32,16 oauth.ico |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Function to find and kill processes using the specified drive | |
function Kill-ProcessUsingDrive { | |
param ( | |
[string]$DriveLetter | |
) | |
# Get the list of processes | |
$processes = Get-CimInstance -ClassName Win32_Process | |
# Filter processes that have a handle open on the specified drive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net stop MySQL80 | |
net stop MSSQLSERVER | |
taskkill.exe /IM sqlbrowser.exe /F | |
taskkill.exe /IM sqlceip.exe /F | |
taskkill.exe /IM sqlservr.exe /F | |
taskkill.exe /IM sqlwriter.exe /F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start /MAX "" "C:\Program Files\Google\Chrome\Application\chrome.exe" --user-data-dir="C:\Users\NisimHurst\Utilities\mini-chrome" "https://mail.google.com/mail/u/0/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
convert oauth.png -define icon:auto-resize=256,128,64,48,32,16 oauth.ico |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python totp.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start /MAX "" "C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-windows10-custom-titlebar --user-data-dir="C:\Users\NisimHurst\Utilities\mini-chrome" --app=https://web.whatsapp.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start /MAX "" "C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-windows10-custom-titlebar --user-data-dir="C:\Users\NisimHurst\Utilities\nds-chrome" --app=https://mail.google.com/chat/u/0/ |
NewerOlder