Skip to content

Instantly share code, notes, and snippets.

View BananaAcid's full-sized avatar

Nabil Redmann BananaAcid

View GitHub Profile
@BananaAcid
BananaAcid / Readme.md
Last active May 23, 2025 21:02
SmartTV / XBOX Style YouTube TV-UI on PC / Steamdeck with Gamepad

SmartTV / XBOX Style YouTube TV-UI on PC / Steamdeck with Gamepad

image

Short URL to this documentation: https://is.gd/youtube_tv_ui

Summary

  1. Install a separate browser and needed plugins + configure
  2. Let the browser automatically create a WebApp
  3. Add it to Steam to enable controller support
@BananaAcid
BananaAcid / Readme.md
Last active May 25, 2025 13:54
n8n Chat as workflow - Blueprint
@BananaAcid
BananaAcid / Readme.md
Last active May 12, 2025 19:57
n8n simple vueEngine website as workflow
@BananaAcid
BananaAcid / js parse cookie header.js
Last active May 10, 2025 22:43
js - parse cookie header for session id
@BananaAcid
BananaAcid / _Readme.md
Last active May 9, 2025 14:08 — forked from jackgill/bundle.js
bundle npm with dependencies -- A node.js script to create a bundle containing an npm package, and all of its dependencies.

native

  • npm pack <package>

alternative

@BananaAcid
BananaAcid / Readme.md
Created May 8, 2025 23:44
How Gemini 2.5 Flash groups the models and orders the newest to the top. (2025-05-09)

How Gemini 2.5 Flash groups the models and orders the newest to the top. (2025-05-09)

Fed the JSON from the REST API endpoint https://generativelanguage.googleapis.com/v1beta/models/?key=<GEMINI_KEY> into the chat. Using Baio AI commandline tool.

what models could you use?
show them as a tree, grouped by name, with newest at the top.
@BananaAcid
BananaAcid / Readme.md
Last active May 2, 2025 13:40
n8n windows local install

n8n windows local install

  1. install https://github.com/coreybutler/nvm-windows

    • chocolatey: choco install nvm.install
    • winget: winget install -e --id CoreyButler.NVMforWindows
  2. install node v22.10.0 (NEWER IS NOT SUPPORTED!)

    • nvm install 22.10.0
  3. install n8n

@BananaAcid
BananaAcid / host-info.js
Last active April 23, 2025 15:46
simple hostname info in nodejs
import { createServer } from 'node:http';
import { execSync } from 'node:child_process';
const server = createServer(async function (req, res) {
Object.entries({
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': '*',
@BananaAcid
BananaAcid / getVersionFromNPM.mjs
Last active April 21, 2025 23:51
simple version check on npm
import package from './package.json' with { type: "json" };
let version = await fetch(`https://registry.npmjs.com/${package.name}/latest`).catch(_=>undefined).then(d => d?.json?.()).then(({version})=>version).catch(_=>undefined);
console.log(`Newest version is ${ version ?? 'unknown' }`);
@BananaAcid
BananaAcid / Readme.md
Created April 20, 2025 17:29
npm shell to pwsh

#donotForgetAgain

set npm shell to be powershell 7+

npm config set script-shell pwsh --global