Skip to content

Instantly share code, notes, and snippets.

View OleksiyRudenko's full-sized avatar
💻
Delivering

Oleksiy Rudenko OleksiyRudenko

💻
Delivering
View GitHub Profile
@OleksiyRudenko
OleksiyRudenko / Shorten-the-phrase.js
Created March 16, 2026 20:10
Shorten a long phrase & add ellipsis
($json.error.title ?? "")
//=== consider sanitizing whitespaces
//=== crop to intial 5 words
.replace(
/((\w+\s+){4}\w+)(\s.*)/, // find 5 words: 4 words followed by whitespaces + 1 word excluding the following space
"$1<=>$2") // demark the boundary with '<=>'
.split("<=>")
// remove empty entries (meaning there were no words to remove)
.filter(s=>s.length)
// replace non-empty tail with ""
@OleksiyRudenko
OleksiyRudenko / Windows11-kbd-patch.md
Created March 4, 2026 18:09
Windows11 remove unwanted languages and keyboards

Go to regional settings.

For each unwanted language:

  • add preferred language - unwanted one
  • remove this language

For each unwanted kbd layout:

  • pick language options
  • add keyboard - pick unwanted layout
  • remove unwanted layout
@OleksiyRudenko
OleksiyRudenko / HTAQ.md
Last active April 1, 2025 10:44
How to get help on n8n community forum fast
@OleksiyRudenko
OleksiyRudenko / WSL2-networking.md
Created November 13, 2024 17:52
WSL 2 Networking
+ orudenko (dev) replex $ dolt status
- ERRO[0011] load stats init failure: cannot update manifest: database is read only
  On branch dev
  nothing to commit, working tree clean

+ orudenko (dev) replex $ dolt checkout main
- The current directory is not a valid dolt repository.
  run: dolt init before trying to run this command
@OleksiyRudenko
OleksiyRudenko / Promise-chaining.md
Created October 22, 2022 21:00
Promises chaining
    anArray
        .filter(x => x % 2) // odd only
        .reduce(
            (chain, x) => chain.then(() => networkCall(x)), // network call using an odd
            Promise.resolve()
        )
        .then(() => console.log('all done')) // all calls complete

BAAS

BAAS cloud hosting NodeJS lambdas Auth RDBMS NoSQL CLI
[Supabase][_sb]
[Conduit][_cd]
[Acebase][_ab]
[Vercel][_vc]
[x][_]