Skip to content

Instantly share code, notes, and snippets.

View Sarverott's full-sized avatar
💭
I may be slow to respond.

Sett Sarverott Sarverott

💭
I may be slow to respond.
View GitHub Profile
@Sarverott
Sarverott / reshare.py
Created March 10, 2026 00:04
sharing sjp by dataset of huggingface || upowszechnianie SJP przez dataset na huggingface - https://sjp.pl/sl/odmiany/ ; https://huggingface.co/datasets/Apokryf/SJP
from huggingface_hub import login, upload_folder
import requests
import bs4
import markdownify
import zipinfo
import urllib
import toml
sjpUrl = "https://sjp.pl/sl/odmiany/"
@Sarverott
Sarverott / google-search-ai-mode.EXPORT.js
Created March 4, 2026 09:48
paste it into your browser devtools console to enable options of making current website been converted from HTML to Markdown. it uses Turndown package (https://github.com/mixmark-io/turndown) hosted by https://unpkg.com
const Turndown = ((d,h,u)=>{var x = d.createElement("script", {});x.src=u;h.appendChild(x);return new TurndownService();})(document,document.head,"https://unpkg.com/turndown/dist/turndown.js");
var exporterJSON = (classhookDiv=".CKgc1d")=>JSON.stringify(Array.from(document.querySelectorAll(classhookDiv)).map((x)=>[x.childNodes[0].innerText, Turndown.turndown(x.childNodes[1].innerHTML), x.childNodes[2].data]))
// classhookDiv contains both as first prompting query from user and below it secondly response from LLM that serves answers, as third there is comment element without identified purpose
console.log(exporterJSON())
@Sarverott
Sarverott / primenum_test-for-coding-llms.md
Created February 19, 2026 05:49
test with logical trap that can lead to make wrong assumptions if never tested results of algorithm

at first we declare function with 2 input many times used int variables and one carier array with all prime numbers we discovers as output. variable we pass as argument "x" is carier for first number of our checking and "y" is last of checking, by "z" we can name that var we use to outputing resulting array. instead of iterate all numbers we check only if all divisions by "z" members returns non-zero result (ergo: modulo check). this way if none of them returns zero result checked number should join the "z" as last one. if it detect zero it is skipped to next one (increment "i"). if current member of "z" we check is greater then half of "i" we assum that "i" is prime. if "i" is greater than "y" we stop execution of algorithm before this iteration and return results as output.

@Sarverott
Sarverott / .digent.json
Last active February 17, 2026 07:17
zapis prac dochodzeniowych skali badania pozasolarnego występowania technetu i prometu wewnątrz i na powierzchni atypowych gwiazd, śledztwa w sprawie zajść z udziałem Gwiazdy Przybylskiego, powiązań niebieskich maruderów z hiberprędkościowcami oraz dalszych dalekosięznych wniosków i konkluzji dla podobiecznych Domu Anubisa na podstawie różnych z…
{
"name":"mnemozyn"
}
@Sarverott
Sarverott / biblical-names-extract-from-wikipedia.ipynb
Created January 3, 2026 00:55
example of use package for handling articles on, here using biblical names (wikipedia https://en.wikipedia.org/wiki/List_of_biblical_names) to prepare dataset for hugging face (https://huggingface.co/datasets/Apokryf/biblical-names-by-en-wikipedia) to make some generative human-readable namespace domains for servers.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/sh
# retransferage-procedure.sh - PART OF B.O.S. PLATFORM (https://docs.apokryf.pl/blacksmith-organization-system)
# Copyright (C) 2025 Sett Sarverott A.A.B.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sarverott
Sarverott / README.md
Created December 12, 2025 18:30
identify ttystory line by regular expression pattern: starts with at least one space, then from one up to four digits, then star char or space, then space

identify ttystory line by regular expression pattern

alias ttystory='history > ~/ttystory-$( hostname )-$( date +%s ).txt' # ttystory collector

ttystory # ttystory was been made

cat ~/ttystory* > ~/teststory.txt # puts all stories together
@Sarverott
Sarverott / #obsidian-notebook-app-linux-installer.md
Last active December 7, 2025 05:49
[experimental] obsidian easy download
@Sarverott
Sarverott / #list-libraries-by-index-doc.js
Last active December 7, 2025 01:25
playing around https://docs.python.org/3/library/ with devTools coding for fun
/* TEST: URL == 'https://docs.python.org/3/library/'*/
[
...new Set(
Array.from(
document.querySelectorAll("a")
).map(
(x)=>x.href
).filter(
(x)=>x.includes('https://docs.python.org/3/library/')
).map(