This file contains hidden or 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
REGEDIT4 | |
[HKEY_CLASSES_ROOT\Directory\shell\Adjust Timestamp] | |
[HKEY_CLASSES_ROOT\Directory\shell\Adjust Timestamp\command] | |
;@="\"c:\\Program Files\\AutoHotkey\\AutoHotkey.exe\" \"x:\\AutoHotkey\\SetFolderTimestampToNewestFile.ahk\" \"%1\"" | |
;If the script is compiled: | |
@="\"C:\\Users\\NisimHurst\\Utilities\\Autohotkey\\SetFolderTimestampToNewestFile\\SetFolderTimestampToNewestFile.exe\" \"%1\"" |
This file contains hidden or 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
; SetFolderTimestampToNewestFile.ahk | |
; by SanskritFritz | |
; Set a folder's 'modified' date to the timestamp of the newest file it contains. | |
; The folder name should be given as parameter. | |
#NoTrayIcon | |
if 0 <> 1 | |
{ | |
MsgBox The parameter 'folder name' is missing! |
This file contains hidden or 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
db.getCollection('intents').aggregate([{ $addFields: { _id_date: { $toDate: "$_id" } } }, { $sort: { _id_date:-1 } }]) |
This file contains hidden or 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
@echo off | |
REM Ensure PlantUML jar file path is correct | |
set PLANTUML_JAR=C:\Bin\plantuml.jar | |
REM Loop through all .puml files in the current directory | |
for %%f in (*.puml) do ( | |
echo Converting %%f to PNG... | |
java -jar "%PLANTUML_JAR%" %%f | |
) |
This file contains hidden or 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
@echo off | |
call .\venv\Scripts\activate.bat | |
pip install -r requirements.txt |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |