Skip to content

Instantly share code, notes, and snippets.

View BananaAcid's full-sized avatar

Nabil Redmann BananaAcid

View GitHub Profile
@BananaAcid
BananaAcid / _ PowerShellGSM installation script.md
Last active April 13, 2024 23:23
Install PowerShellGSM from commandline without git, and setup basics by prompts (with default options)

PowerShellGSM installation script

Usage

Copy and paste the below one-liner into your powershell console (WIN+R, then "powershell.exe")

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/bananaacid/1dc9117571967b26ceabc972009137ae/raw/install_PowerShellGSM.ps1'))
@BananaAcid
BananaAcid / imapsync.sh
Last active March 25, 2024 14:06
ImapSync from source Mar 2024
# install: curl https://gist.githubusercontent.com/BananaAcid/174a9a45ecf284118b2016f41f55840f/raw/imapsync.sh | sh
# ImapSync from source Mar 2024 commit: b0619eb
# based on: https://kb.vander.host/email/how-to-install-and-use-imapsync-on-ubuntu/
sudo apt update && sudo apt upgrade --yes
sudo apt --yes install apt-file && sudo apt-file update
@BananaAcid
BananaAcid / Readme.md
Last active February 2, 2024 08:45
Ollama Server

1. oLLaMA API Server

container

ollama/ollama:latest

ports

11434/tcp REST Endpoint

volumes

ollama data and models

@BananaAcid
BananaAcid / readme.md
Created January 10, 2024 22:51
Move the cursor to the end of a contentEditable element
@BananaAcid
BananaAcid / orca2_de.modelfile
Created December 13, 2023 22:07
ollama modelfile: orca2_de
# changed by BananaAcid
# https://github.com/jmorganca/ollama
# compile: ollama create orca2_de -f ./orca2_de.modelfile
# run: ollama run orca2_de
# bug: the german response works, but is not really good
# ./orca2_de.modelfile
FROM orca2
# set the temperature to 1 [higher is more creative, lower is more coherent]
@BananaAcid
BananaAcid / web-business-card-centered.view.vue
Last active November 23, 2023 08:45
A centered website layout with Vuetify / Vue3
<!--
BananaAcid 2023
Playground:
https://play.vuetifyjs.com/#eNqtVm1v2zYQ/is3ARvSwhRtOQ4W1yv6ggLrUGzDum/zPtDSWWJCiQRJOc6K/vedKMmRrSRzgfkN5N1zbw+PZ/31JXI25W+NiXc1Rsto9R1j8E5U9H6bygySaTIHxl6vq3W18lgaJTzSDmC1Y8KYsAybUsiq24V9qitPIrSQKuHcT+toK5ViBcq88OvoAA1gVyD6A9AIlgD9uJItABXuhJe6Ysn0yCwYWn13JOpCK6Bv42qWrCNwJa2uTowDVpY5EAGkJphQnhafdK5pw0/d8uD3/GCHajzuPVO49RBWZcbsiILOW4EiGxAW8MXVwa5YtEuVs+LyEXuAz7pEeC9Mw9fIO2/dn1FYI2uZPZPucSk7RtyOE0z1Du1Y3J5B4b1xS86NTF1dxqbQXjsuM55cXvLZdTLlV1PqgbF5e3I/t+x9LEWOj6F6Wh86ajGGnXPu/wM95vUnbbGEOI5XvL9FR3rSgDTEw39ganc31n5r1sctF/qzbbW066XTZnv62DO5k80xnBIZEv4h1eb+1WDAfGvqQ0kYGg8jJ9h1M6cfSyQ7zKVm006sFR9MMto6f68QHOWGWYDyl6B0LlN4yZttPJxmX1rXpdizO5n5YgnX06nZv2rEX1tuCd8OtA5L7kpxi5Bi5dFiRreAFpUHYVGAL0ijrcXUQ/A4gQoxczCIGg9mZ5cUwFbhnuXEyxJmffgVD8U8XVcrO9TVsNOnuRHpLbmrq2wJtVUXT17HxYwvptMpn9MrvjH5i64y8NqERIa+mJP/4LK9+M+RNLCg49d2CTbfXCSzBJL5ApLFAjhcXX//YhAgs9owYoZCL2Gjansxo5NoEV2UZsB3AbZEJgvlL0F6oWTauXoIJy6mE+g+8aIPFS6CrDKqkZjGcsx1NIk80VxtZR7fOF3RH2kIuo5SXRqp0P4WrpFbR8s+nXUklNJ3vwSZtzVOenlaYHr7iPzG7R
@BananaAcid
BananaAcid / links.txt
Created October 19, 2023 15:55
STUN / TURN
@BananaAcid
BananaAcid / filter.ts
Last active July 18, 2023 15:18
HTML number input with rules
// Nabil Redmann, ISC
/*
<input type="number" maxlength="3" data-digits="2" placeholder="format xxx.xx" />
<br><br><br>
<input type="number" maxlength="3" data-digits="0" placeholder="no fractions" />
<br><br><br>
<input type="number" maxlength="0" data-digits="3" placeholder="only dot first and digits " />
*/
@BananaAcid
BananaAcid / electron_paths_compared_win_osx.txt
Last active July 14, 2023 08:20
electron paths compared - win + osx
Test App:
https://github.com/BananaAcid/Simple-Electron-Kiosk/blob/master/PATH%20RESULTS
------------------------------------------------------------------------------------
electron paths
__dirname refers to index.mjs (parallel to loader.babel.js)
Be aware of globally installed modules - for unpacked.
@BananaAcid
BananaAcid / test-pipe-to-bash-basic.mjs
Last active July 12, 2023 12:37
NodeJS cli stream (pipe) to process
import { spawn } from 'child_process';
const child = spawn('pwsh');
process.stdin.pipe(child.stdin)
child.stdout.on('data', (data) => {
console.log(`child stdout:\n${data}`);
});