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
Created July 18, 2024 21:59
vite disable minify

vite.config.js

in defineConfig

{
    build: {
        minify: false // or "terser" but you need terser installed
    }
}
@BananaAcid
BananaAcid / Readme.md
Last active July 18, 2024 21:25
kaboomjs / kaplay with nuxt
@BananaAcid
BananaAcid / unity_uninstall.ps1
Last active July 13, 2024 07:50
quickly uninstall all unity installations / WIN
ls "C:\Program Files\Unity*\Editor\Uninstall.exe" | % fullname |% { &$_ /S /allusers _="$_" }
# just reinstall the one you need.
# /S is silent
# /allusers make sure it is really uninstalled, and its icon as well for all users
# _ to not unpack the installer or something, at least the uninstall is speed up
# ref: https://nsis-dev.github.io/NSIS-Forums/html/t-66750.html
@BananaAcid
BananaAcid / readme.md
Created June 26, 2024 01:33
NuxtImage : Workaround for: sizes and placeholder attribute do not work in preset from nuxt.config.ts
@BananaAcid
BananaAcid / getInput.ts
Created June 24, 2024 04:16
simple node comanline input
/**
* simple node comanline input
*
* Nabil Redmann <repo@bananaacid.de>
*
* run: npx --yes tsx getInput.ts
*/
//* Setup
import nodeReadline from 'node:readline';
@BananaAcid
BananaAcid / accordeon.vue
Last active June 19, 2024 22:58
accordion simple logic - Vue3 / Nuxt3 / Vuetify
<!--
Simple accodion
Vuetify: https://vuetifyjs.com/en/components/expansion-panels/
note
VExpandTransition is part of Vuetify, and will animate elements, in this case: that do have v-if or v-show change
This can be replaced with Vue maybe (but animating height to auto is annoying, because it needs extra css):
`transition(name="expand" mode="out-in")` - https://vuejs.org/guide/built-ins/transition
@BananaAcid
BananaAcid / ul-dash.css
Created June 15, 2024 03:33
CSS UL with dash
ul.dash {
margin-left: .5em;
list-style-type: none;
> li {
text-indent: -.5em;
}
> li:before {
content: "- ";
@BananaAcid
BananaAcid / memory-storage.snippet.ts
Last active April 25, 2024 21:53
A memory storage class -- code snippet
// "MEMORY STORAGE" ... simplistic
let StoreMemory:{[id:string]:{created:number, alive?:number, data:{[key:string]:any}}} = {};
// StoreMemory clean up (invalidate logins after cookie maxage)
setInterval( () => {
let ttl = h3SessionCookieConfig?.maxAge || 60 * 5;
let now = Date.now();
let max = ttl * 1000;
for (let key in StoreMemory) {
@BananaAcid
BananaAcid / Readme.md
Last active July 18, 2024 10:00
ImapSync from source Mar 2024
@BananaAcid
BananaAcid / Readme.md
Last active June 26, 2024 01:54
Ollama Server

1. oLLaMA API Server

container

ollama/ollama:latest

ports

11434/tcp REST Endpoint

volumes

ollama data and models