Skip to content

Instantly share code, notes, and snippets.

View enjikaka's full-sized avatar

Jeremy Karlsson enjikaka

View GitHub Profile
Task install deno install && deno run --allow-all npm:playwright install && deno run --allow-all npm:playwright install-deps
Downloading Chromium 133.0.6943.16 (playwright build v1155) from https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1155/chromium-linux-arm64.zip
(node:277) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
| | 0% of 166.6 MiB
|■■■■■■■■ | 10% of 166.6 MiB
|■■■■■■■■■■■■■■■■ | 20% of 166.6 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 166.6 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 166.6 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 166.6 MiB
|■■■■■
@enjikaka
enjikaka / dough.md
Last active May 9, 2025 08:16
Dough

Dough Tech (monitor) is a scam

Dough GmbH

[email protected]
https://dough.tech

Kelterstraße 73
732 65 Dettingen unter Teck
@enjikaka
enjikaka / tutorial.md
Last active February 28, 2025 19:21
How I fixed the screen brightnes on ASUS ROG Zephyrus G16 GU605MV running Project Bluefin / Fedora Silverblue

How I fixed the screen brightnes on ASUS ROG Zephyrus G16 GU605MV running Project Bluefin / Fedora Silverblue

In general you follow the steps at: https://asus-linux.org/guides/fedora-silverblue-guide/ to set everything up.

The rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia-cuda xorg-x11-drv-nvidia-power asusctl supergfxctl command had some conflics with stuff already installed by bluefin. So I installed those one by one instead to make sure I had everything, because for some reason rpm-ostree freaks out and cancels all installs if one conflics...

Screen Brightness

The screen brightness on the keyboard does not work on Project Bluefin / Fedora after I installed in on my new ASUS ROG G16 and following the stpes on the above link though.

@enjikaka
enjikaka / clean_subs.sh
Created February 28, 2025 10:41
Clean out unwanted subtitles from MVK files. Keep select languages.
#!/bin/bash
# Kontrollera att en fil har angivits
if [ -z "$1" ]; then
echo "Användning: $0 <input.mkv>"
exit 1
fi
INPUT_FILE="$1"
OUTPUT_FILE="cleaned_${INPUT_FILE}"
@enjikaka
enjikaka / map.mermaid
Last active November 29, 2024 10:16
Homelab Map
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@enjikaka
enjikaka / wishlist.md
Last active November 4, 2024 11:10
Önskelista

Önskelista

Livet funtar sig så att man har råd med det mesta man vill ha, så det är alltid svårt att önska sig något. Men här är en lista med grejer jag har i skottgluggen att införskaffa för egen maskin, och kan lämpa sig om någon mot förmodan ska köpa present till mig eller familjen.

Böcker

Gård

  • Villaträdgårdens historia : ett 150-årigt perspektiv (ISBN: 9789113059433) | Prisjakt
  • Trädgårdens glasade rum (ISBN: 9789113087542) | Prisjakt
#!/bin/bash
dest_branch="origin/${1:-"main"}"
# Diff the current branch against origin/main
diff_output=$(git diff $dest_branch)
json_safe_diff=$(jq -Rs . <<< "$diff_output")
OPENAI_API_KEY=$(cat ~/.openai_api_key)
# Use jq to create the JSON payload
import { serve } from "https://deno.land/[email protected]/http/server.ts";
const te = new TextEncoder();
const chat = new EventTarget();
async function chatPostHandler (req: Request) {
const formData = await req.formData();
chat.dispatchEvent(new CustomEvent('message', {
detail: {
diff --git a/dist/shaka-player.compiled.d.ts b/dist/shaka-player.compiled.d.ts
index e6dcbc69da69831c5b327d4ca4a28c4a648caf8a..19c4e9b9d816f5cf12a4e2b8b3d3cf2e326c4e57 100644
--- a/dist/shaka-player.compiled.d.ts
+++ b/dist/shaka-player.compiled.d.ts
@@ -5424,6 +5424,7 @@ declare namespace ಠ_ಠ.clutz {
static isTypeSupported (keySystem : string , contentType : string ) : boolean ;
}
}
+export default shaka;
// Generated from /home/runner/work/shaka-player/shaka-player/externs/webos.js
@enjikaka
enjikaka / instructions.md
Last active October 24, 2025 20:19
Installing Proxmox on Raspberry Pi 4 and 5 (Pimox)

Installing Proxmox on Raspberry Pi 4 and 5

With these steps I managed to get Pimox on my Raspberry Pi 4 and 5 in february 2024.

Step 1 - Flashing the OS

Install "RPi OS Lite 64-bit" with Raspberry Pi Imager. It's listed under "Raspberry Pi OS (Other)"