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
| #!/usr/bin/env -S uv run --script | |
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [ | |
| # "jsonschema>=4.26.0", | |
| # "ollama>=0.6.2", | |
| # ] | |
| # /// | |
| """Ollama JSON Schema & Date Retry Demo |
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
| <# | |
| .SYNOPSIS | |
| Uninstalls Visual Studio Code and removes leftover configuration/extension folders. | |
| .DESCRIPTION | |
| This script attempts to uninstall Visual Studio Code using winget first. If winget | |
| is unavailable or the uninstall fails (e.g. VS Code wasn't installed via winget), | |
| it falls back to locating the uninstaller via the Windows registry (checking both | |
| per-user and machine-wide uninstall keys, including the 32-bit WOW6432Node hive). |
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
| uv run --with pypdf python -c "import os; from pypdf import PdfWriter; writer = PdfWriter(); [writer.append(f) for f in sorted(os.listdir('.')) if f.lower().endswith('.pdf') and f != 'Merged_Document.pdf']; writer.write('Merged_Document.pdf')" |
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
| #Requires -Version 5.1 | |
| <# | |
| .SYNOPSIS | |
| Convert every *.docx in the current directory to Markdown using Pandoc. | |
| .DESCRIPTION | |
| - Non-recursive: only the working directory (Get-Location), not subfolders. | |
| - Output: <BaseName>.md if that file does not exist; otherwise <BaseName>-1.md, | |
| <BaseName>-2.md, ... until an unused name is found. | |
| - Embedded images and media are extracted to <Stem>_media next to the .md file, |
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 the location where the script is currently running | |
| $currentDir = $PSScriptRoot | |
| if ([string]::IsNullOrEmpty($currentDir)) { $currentDir = Get-Location } | |
| $processedPath = Join-Path $currentDir "Processed" | |
| # Counters | |
| $extractedCount = 0 | |
| $duplicateCount = 0 | |
| $verifiedZips = @() |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Image Pixelation Slider</title> | |
| <style> | |
| :root { | |
| --bg: #101319; | |
| --panel: #181c25; | |
| --accent: #5b8aff; |
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
| /** | |
| * CONFIGURATION & STYLING | |
| */ | |
| const CONFIG = { | |
| MENU_NAME: "🎲 SLIDE APP", | |
| TAGS: { | |
| BTN: "nav_btn_v7", | |
| PHRASE: "phrase_txt_v7", | |
| FOCUS: "focus_txt_v7" | |
| }, |
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
| [CmdletBinding()] | |
| param( | |
| [string]$KeysFile = (Join-Path $PSScriptRoot 'keys.md'), | |
| [string]$Distro = '' # e.g. 'Ubuntu' or leave empty for default | |
| ) | |
| function Get-SuggestedEnvName { | |
| param( | |
| [Parameter(Mandatory = $true)] | |
| [string]$Label |
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
| /** | |
| * CONFIGURATION & STYLING | |
| */ | |
| const CONFIG = { | |
| MENU_NAME: "🎲 SLIDE APP", | |
| TAGS: { | |
| WORD: "word_txt_v6", | |
| HEADER: "header_txt_v6", | |
| BACK: "back_btn_v6" | |
| }, |
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
| <# | |
| .SYNOPSIS | |
| Finds video files, replaces spaces in filenames with hyphens, and compresses them. | |
| .DESCRIPTION | |
| This script iterates through common video file types in the current directory (and all subdirectories), | |
| renames them by converting whitespace to hyphens, and then uses FFmpeg to | |
| re-encode the video so the output size is between 17 MB and 19 MB. | |
| The script uses ffprobe to get the video duration and calculates the required |
NewerOlder