Skip to content

Instantly share code, notes, and snippets.

View Melon-Bread's full-sized avatar

Rain Melon-Bread

  • United States. Ohio
View GitHub Profile
@linuxtek-canada
linuxtek-canada / docker-compose.yaml
Last active April 25, 2024 23:45
LocalAI - docker-compose fail - [llama-cpp] Fails: could not load model: rpc error: code = Unavailable desc = error reading from server: EOF
version: '3.8'
services:
localai:
image: localai/localai:latest-aio-gpu-hipblas
deploy:
resources:
limits:
cpus: 8.0
memory: 32G
@savegame
savegame / pulse_sreaming.md
Last active May 23, 2024 04:57
PulseAudio / PipeWire streaming audio from Client to remote PulseAudio / PipeWire Server

We have Server machine, this computer with Headphones, and we have Client computer, this is remote PC with music =) On Server we should first open port for listening connections from Client :

# on ubuntu 
sudo ufw allow from <Client_IP> to any port 4656 proto tcp
# on fedora ( with firewalld ) 
sudo firewall-ctl --add-port 4656/tcp

note: port 4656 just for sample. you can use any port you want
than on Server, from current user add listening for connections

@themaxhero
themaxhero / rockman_x_legacy_collection_{1,2}.sh
Last active December 21, 2022 04:10
How to make Rockman X Legacy Collection {1,2} work just like in Windows.
#!/bin/sh
# Instructions
# Before running this:
# - Delete your ~/.local/share/Steam/steamapps/compatdata/$GAME_ID folder.
# - Then set your proton version to 5.0-10 for the game.
# - Run the game and close after it starts.
# - After that, you're good to go.
# If the game is Rockman X Legacy Collection 1, the ID should be 743890
# If the game is Rockman X Legacy Collection 2, the ID should be 743900
# Thanks to https://github.com/PedroHLC for Debbuging this thing and finding out how to solve.
@Zi-SH
Zi-SH / setup.txt
Created February 17, 2021 03:48
ROBOTICS;NOTES ELITE install and setup script
mkdir ~/.local/share/Steam/steamapps/compatdata/1111380/pfx/drive_c/sonome
cd ~/.local/share/Steam/steamapps/compatdata/1111380/pfx/drive_c/sonome
wget https://github.com/CommitteeOfZero/rne-patch/releases/download/1.0.5/RNEPatch-v1.0.5-Setup.zip
unzip RNEPatch-v1.0.5-Setup.zip
protontricks 1111380 --force vcrun2019
echo "Override dinput8 in the libraries tab. Set it to 'native, builtin'"
echo "Once you have read this, press enter in the terminal. Once you finish with winecfg, hit enter again."
read
STEAM_COMPAT_DATA_PATH=~/.local/share/Steam/steamapps/compatdata/1111380 ~/.local/share/Steam/steamapps/common/Proton\ 5.0/proton run winecfg
read
@Eoin-ONeill-Yokai
Eoin-ONeill-Yokai / ffix-proton-install-and-mods-readme.md
Last active November 6, 2023 03:15
FINAL FANTASY IX on Linux / Steam Deck (Moguri Mod / Alternate Fantasy) Proton Installation Guide and Bug List

Document Revision 1.2 [07/15/22]

Author Notes: Thanks to everyone who has been testing or using this installation process. I've refined the instructions to try to make this installation as simple and cross platform as humanly possible. I've also updated the Steam Deck instructions now that I have had mine for a while and thoroughly tested the installation process.

ffix_manjaro-kde

Basic Game Installation

Final Fantasy IX should be installed like any standard steam game through the steam client. Ragarding compatibility layers: it should work with a stable release of Proton 7 (7.0.X recommended) through the steam client. This also includes controller support if you are using Steam's native controller configurations. If you have any problems with a given Proton release, I would also recommend trying the latest GloriousEggroll proton builds to se

# this file contains keys needed for decryption of file system data (WUD/WUX)
# 1 key per line, any text after a '#' character is considered a comment
# the emulator will automatically pick the right key
541b9889519b27d363cd21604b97c67a # example key (can be deleted)
d7b00402659ba2abd2cb0db27fa2b656 # Common
805e6285cd487de0faffaa65a6985e17 # Espresso Ancast
b5d8ab06ed7f6cfc529f2ce1b4ea32fd # Starbuck Ancast
9a164ee15ac7ceb64d3cc130094095f6 # 007 Legends [EUR, NUS]

Flashing PineTime with Black Magic Probe (based on ST-Link V2)

  • These notes are glued from other tutorials found.
  • I use mac OS Catalina, so some commands are relevant. However installing needed packages is simple on Linux dists.
  • Feel free to improve.

Converting STM32F103C8T6 to Black Magic Probe

  • hardware: STM32F103C8T6 + ST-Link V2 Mini STM8 (I have this one)
  • software:
@infval
infval / emuparadise.download.user.js
Last active April 10, 2024 23:22
emuparadise.me download workaround (Most games + Sega Dreamcast, Books/Comics/Guides/Magazines)
// ==UserScript==
// @name EmuParadise Download Workaround
// @version 1.2.3
// @description Replaces the download button link with a working one
// @author infval (Eptun)
// @match https://www.emuparadise.me/*/*/*
// @grant none
// ==/UserScript==
// https://www.reddit.com/r/Piracy/comments/968sm6/a_script_for_easy_downloading_of_emuparadise_roms/
@follower46
follower46 / pico-8-volume.py
Last active May 4, 2022 18:00
Adds volume control to PICO-8 on the gameshell
# you need to `sudo pip install pyxhook` as it's used to intercept the volume presses
# you will also want to update your launcher to call this script (I just have mine in the pico-8 directory
# and have my PICO-8.sh run:
# SDL_VIDEODRIVER=x11 DISPLAY=:0 python /home/cpi/pico-8/pico-8-volume.py
# video of what it looks like: https://www.youtube.com/watch?v=BAoYapdMiPM
import pygame
import os
import pyxhook
import alsaaudio
@TheExpertNoob
TheExpertNoob / Extract encrypted titlekey from NAND dump
Last active September 25, 2022 02:24
Get Encrypted title keys from NAND Dump
Decrypt with the only key needed to obtain your titlekeys.
ddffd9e6c550750b187ba5c09e669d40db5d031964cd63455d78d73ba24ae62b
Gathered from info from http://switchbrew.org/index.php?title=Ticket
1) dump your nand with linux
2) open NAND dump with HACDISKMOUNT
3) extract/dump PRODINFO partition with BIS0 key
4) mount SYSTEM (with BIS2 keys) and copy Save/80000000000000e2 to your physical harddrive