Skip to content

Instantly share code, notes, and snippets.

View enjikaka's full-sized avatar

Jeremy Karlsson enjikaka

View GitHub Profile
@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 March 16, 2025 00:58
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)"

@enjikaka
enjikaka / privacy.md
Created January 9, 2024 17:26
Glatek Privacy Policy

Glatek Privacy Policy

  1. Collection of Personal Information: We only collect personal information that is necessary to fulfill the purposes stated at the time of collection. We clearly inform what information is collected and why.

  2. Use of Personal Information: Personal information is used solely for the purposes for which it was collected. We do not share personal information with third parties without consent, unless required by law or to perform a service on your behalf.

  3. Data Protection and Security: We take reasonable measures to protect personal information from unauthorized access, use, or disclosure. We ensure that our employees and any third parties handling personal information understand and adhere to our privacy principles.

@enjikaka
enjikaka / vägg.md
Last active August 14, 2023 13:08
Nationalromantiskt kontor

Bröstpanel

Allt trä betas med Herdins Äkta Bets - Mahognybrun och stryks sedan 2 ggr med linoljefernissa.

Panel