Skip to content

Instantly share code, notes, and snippets.

View vielhuber's full-sized avatar
🍐
❹❷

David Vielhuber vielhuber

🍐
❹❷
View GitHub Profile
@vielhuber
vielhuber / 1_show.ps1
Last active September 29, 2025 14:57
change task priority in task scheduler #windows #powershell
Get-ScheduledTask -TaskPath '\' | ForEach-Object {
$xml = [xml](Export-ScheduledTask -TaskName $_.TaskName -TaskPath $_.TaskPath -ErrorAction SilentlyContinue)
$node = $xml.SelectSingleNode("/*[local-name()='Task']/*[local-name()='Settings']/*[local-name()='Priority']")
$p = 7
if ($node -and $node.InnerText) { $p = [int]$node.InnerText }
[pscustomobject]@{
Task = "$($_.TaskPath)$($_.TaskName)".TrimStart('\')
Priority = $p
}
} | Format-Table -Auto
@vielhuber
vielhuber / README.MD
Last active October 1, 2025 10:36
mcp #ai

SERVER

  • local: use fastmcp directly
  • production: use fastmcp as a gateway and cloudflare for ssl/dns

ngrok

  • https://***.ngrok-free.dev/mcp

installation

@vielhuber
vielhuber / README.MD
Last active September 18, 2025 12:40
claude code / gemini cli / chatgpt codex cli #ai

install

  • npm install -g @openai/codex
  • npm install -g @anthropic-ai/claude-code
  • npm install -g @google/gemini-cli

run

  • codex
  • claude
@vielhuber
vielhuber / README.MD
Last active September 29, 2025 07:22
minecraft mod modding paper plugin #java
@vielhuber
vielhuber / script.sql
Created August 21, 2025 07:49
MySQL increase GROUP_CONCAT max length #sql
SET SESSION group_concat_max_len = 1000000;
@vielhuber
vielhuber / index.html
Last active August 1, 2025 09:30
speculation rules prerender preload all links #html
<script type="speculationrules">
{
"prerender": [
{
"where": { "href_matches": "/*" },
"eagerness": "eager"
}
]
}
</script>
@vielhuber
vielhuber / install.md
Last active September 21, 2025 14:53
cleanup keepass kdbx #python
sudo apt install python3-lxml
python -m venv venv
source venv/bin/activate
pip install pykeepass
python script.py /path/to/file.kdbx
@vielhuber
vielhuber / README.MD
Last active July 20, 2025 11:38
pipe operator |> #php

old syntax

$value = "hello world";

// short version
$result = function1(function2(function3($value)));

// long version
$result1 = function3($value);
@vielhuber
vielhuber / _v1.MD
Last active June 30, 2025 09:48
object oriented programming multiple classes as singletons #python

/classes/__init__.py

from .foo import Foo
from .bar import Bar

foo = Foo()
bar = Bar()

# this enables "import *"
__all__ = [
@vielhuber
vielhuber / script.py
Last active June 25, 2025 12:16
object oriented programming classes #python
import random
# ...
class Example:
staticVariable = "baz"
def __init__(self):