Skip to content

Instantly share code, notes, and snippets.

View Delivator's full-sized avatar
🏠
Working from home

David Delivator

🏠
Working from home
View GitHub Profile
@Delivator
Delivator / ryzen-ai-300-local-llm-arch.md
Last active May 26, 2025 13:22
My attempt on running LLMs locally on my new Framework 13 with a AMD Ryzen AI 9 HX 370

Installing Ryzen AI software

Best resource I found told me to install the Ryzen AI software which should make it easy to try running models locally supported by the NPU. So I followed the guide on https://ryzenai.docs.amd.com/en/latest/rai_linux.html which was super annoying because I had to create a corporate account??? Anyway I created an account and followed the install instructions. Online it said python 3.10+ should be fine but when running it complained that I had python 3.13 so I installed pyenv and installed v3.10.17. It then ran but gave me a warning (or error) that zip and linux-libc-dev were missing. Installed zip and libc++ because apparently thats the package for arch. Still threw the errors after all so no idea what that was about.

Then I found this guide https://ryzenai.docs.amd.com/en/latest/llm/overview.html which linked me to an outdated install guide on github which told me to install lemonade-sdk.

@Delivator
Delivator / ollama_email-summarizer.py
Created May 19, 2025 20:41
Summarize multiple emails using local ai powered by ollama
import os
from ollama import chat
from ollama import ChatResponse
# set the model to use
# using the Mistral 12B model here because it runs well on a RTX 4080 with 16GB of VRAM
# and it has a relaively large context window of 128k tokens
model = "mistral-nemo:12b"
# set the directory containing the emails
@Delivator
Delivator / geogame-firefox-lag-fix.user.js
Last active May 9, 2025 14:09
Fixes a bug where google streetview laggs horribly on 3rd party websites like Geotastic or geoguessr.
// ==UserScript==
// @name Geotastic/guessr lag fix on Firefox Linux
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Spoofs a Chromium-based user agent for geotastic.net and geoguessr.com to potentially improve performance.
// @author Google Gemini 2.5 Pro
// @match *://geotastic.net/*
// @match *://www.geotastic.net/*
// @match *://geoguessr.com/*
// @match *://www.geoguessr.com/*
@Delivator
Delivator / my-linux-journey.md
Last active May 20, 2025 16:57
Documenting my switch from Windows 11 to Linux

Intro

After pewdiepie's video I decided that I also want to try and switch to Linux for daily driving. My usecases are basic coding, trying out bleeding edge tech, photo editing for personal use with Lightroom and Photoshop and gaming. Basic office stuff too.

I've used headless Linux for a while now with my dedicated servers and raspberry pi's over the years. Also a little bit of using desktop envionments but I don't even know which ones.

I knew that I didn't want to ditch windows 100% mostly because of Games with Anticheat that don't work on linux (yet) and Photoshop and Lightroom. So I decided to buy a secondary NVMe SSD and install linux on that. Didn't feel like dual booting (or am I dual booting?) so I just made this ssd my default boot drive in the bios. If I want to switch back to Windows I just reboot and hit F12 to change it in the boot menu.

Getting started (picking a distro)

Tried mint first. Liked it but quickly figured out that it doesn't have HDR support and I got a HDR monitor just a yea

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Delivator
Delivator / README.md
Last active March 27, 2025 14:19 — forked from Daan-Grashoff/README.md
Bring back the google maps button and make map image clickable when searching on google
Param(
[Parameter(Mandatory=$True)]
[string]$Path,
[string]$Quality = "36",
[string]$Preset = "p4",
[string]$Tune = "hq",
[string]$Format = "webm",
[bool]$CopyAudio = $False,
[switch]$Keep
)
Param(
[Parameter(Mandatory=$True)]
[string]$Original,
[Parameter(Mandatory=$True)]
[string]$Compare
)
$OriginalSize = (Get-ChildItem $Original | Measure-Object Length -Sum).sum / 1Gb
$CompareSize = (Get-ChildItem $Compare | Measure-Object Length -Sum).sum / 1Gb
[string]$Difference
@Delivator
Delivator / hide_prime-video-player.js
Created July 6, 2021 23:11
Amazon Prime Video hide player controls
// paste this in your browser's console
// hide
document.querySelector(".webPlayerSDKUiContainer").style.opacity = 0
// show again
document.querySelector(".webPlayerSDKUiContainer").style.opacity = 1