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 | |
| $Model = "granite3-dense:2b" | |
| $OllamaExe = "ollama" | |
| # Define Prompts of varying lengths to test memory ranges | |
| $TestPrompts = [ordered]@{ | |
| "Short" = "What is the capital of France?" | |
| "Medium" = "Explain the theory of relativity in simple terms." | |
| "Long" = "Summarize the following text: " + ("The quick brown fox jumps over the lazy dog. " * 300) | |
| } |
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 | |
| Enumerates Vulkan physical devices directly via the Vulkan API. | |
| .DESCRIPTION | |
| This script uses P/Invoke to load 'vulkan-1.dll' (part of standard display drivers) | |
| and query the Vulkan loader for available physical devices (GPUs/CPUs). | |
| It returns a list of devices with their corresponding API index, name, and hardware type. | |
| This is useful for determining the correct device index for environment variables | |
| without relying on external tools like 'vulkaninfo' or the Vulkan SDK. |
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
| param([switch]$Upload, [switch]$Clean) | |
| $ErrorActionPreference = "Stop" | |
| $src = ".\src" | |
| $dest = ".\mirror" | |
| $port = "COM5" | |
| # --- CLEAN STEP (Delete .mpy files from device) --- | |
| if ($Clean) { |
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
| -- filter.lua | |
| local skip_titles = {["SEE ALSO"] = true, ["COMPATIBILITY"] = true} | |
| local skipping = false | |
| function Header(el) | |
| local header_text = pandoc.utils.stringify(el.content) | |
| if skip_titles[header_text] then | |
| skipping = true | |
| return {} |
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 fn_doCollide | |
| * | |
| * @param {Id.Instance}. | |
| * @param {Id.Asset.GMLObject} [collider=obj_collider]. | |
| * | |
| * @returns {undefined} | |
| */ | |
| function fn_doCollide(subject, collider = obj_collider.object_index){ | |
| if (subject.vspeed != 0) { |
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
| Clear-Host | |
| function Chunk-Objects { | |
| param( | |
| [Parameter(Mandatory = $true, ValueFromPipeline = $true)] | |
| [psobject]$InputObject, | |
| [ValidateRange(1, 100000)] | |
| [int]$ChunkSize = 255 | |
| ) |
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 Chunk-Objects { | |
| param( | |
| [Parameter(Mandatory = $true, ValueFromPipeline = $true)] | |
| [psobject]$InputObject, | |
| [ValidateRange(1, 100000)] | |
| [int]$ChunkSize = 255 | |
| ) | |
| begin { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| from zabbix_utils import ZabbixAPI | |
| import json | |
| TOKEN = "FILLME" | |
| API_URL = "" | |
| api = ZabbixAPI(url=API_URL) | |
| api.login(token=TOKEN) |
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 python3 | |
| from genericpath import isfile | |
| from pdf2image import convert_from_path, pdfinfo_from_path | |
| import collections, sys, os | |
| from tqdm.auto import tqdm, trange | |
| from glob import glob |
NewerOlder