Skip to content

Instantly share code, notes, and snippets.

View smileart's full-sized avatar
:octocat:

Serge Bedzhyk smileart

:octocat:
View GitHub Profile
@smileart
smileart / FolderIcons.js
Last active November 3, 2026 13:26
Obsidian folder icons: per-folder icons and colours from index-note frontmatter, rendered to a CSS snippet via the Iconify API. RunJS script, Obsidian API only so it works on mobile.
/*
* FolderIcons — generate per-folder icons as a CSS snippet.
*
* Runs as a RunJS script. Uses only APIs that exist on Obsidian mobile: no
* node `fs`/`path`/`https`, no `adapter.basePath`. Everything goes through the
* Obsidian API.
*
* Verified (2026-11): a Node simulation of the RunJS eval model and of the
* Obsidian APIs used here, driven against a real ~500-folder vault, plus a
* synthetic suite for the edge cases that vault does not contain. An earlier
@smileart
smileart / install-claude-skills.sh
Last active September 29, 2026 13:28
Install agent skills from any repo via the skills CLI, then repair the relative symlinks it leaves behind when ~/.claude is itself a symlink (Stow, chezmoi, yadm, dotbot, bare-repo dotfiles)
#!/usr/bin/env bash
#
# install-claude-skills.sh
#
# Installs agent skills from any repo via the `skills` CLI, then repairs the
# relative symlinks it leaves behind. Works around this installer behaviour:
# https://github.com/mattpocock/skills/issues/216
# https://github.com/mattpocock/skills/issues/141
#
# The bug, in short:
@smileart
smileart / spoiler-callout.css
Last active July 17, 2024 07:18
Obsidian Custom Spoiler Callout CSS Snippet
-- Simple version
[data-task="#"] {
filter: blur(8px);
-webkit-filter: blur(8px);
}
[data-task="#"]:hover {
filter: none;
-webkit-filter: none;
@smileart
smileart / Day_1.md
Last active November 14, 2023 08:06
Euruko 2023
@smileart
smileart / README.md
Created August 8, 2023 17:16
🇺🇦 Ruscism.plist :: MacOS text replacement preset to be able to talk about ᵣussia online

Ruscism – also known as Rashism, Russism, or ᵣussian fascism, is a term used by a number of scholars, politicians and publicists to describe the political ideology and the social practices of the ᵣussian state in the late 20th and early 21st centuries, especially during the rule of vladimir putin. — Ruscism

Russophobia – Anti-ᵣussian sentiment, commonly referred to as Russophobia, is dislike or fear or hatred of ᵣussia, the ᵣussians, ᵣussian culture, or ᵣussian policy. The Collins English Dictionary defines it as intense and often irrational hatred of ᵣussia. It is often related to anti-Soviet and occasionally also to anti-Slavic sentiment. The opposite of Russophobia is Russophilia. — Russophobia

drawing © https://snowowl.kiev.ua<

@smileart
smileart / amazon_books_scraper.js
Created July 11, 2023 12:02
A script to scrape Digital Content Lists from Amazon
// NOTE: It's supposed to be used in DevTools console only, depends on `copy`, `$`, `$$`, etc.
// NOTE: these backups needed cause after a new page loaded $, $$, etc. are undefined for the script running 🤷‍♂️
const selector = $
const selectorAll = $$
const clipboardCopy = copy
let allBooksList = []
function scrapBooks() {
const titles = selectorAll('.digital_entity_title').map((b)=>{ return b.innerText })
@smileart
smileart / rpsls.py
Created January 18, 2023 19:21
Rock Paper Scissors Lizard Spock :: Python Version
import random
##
# Rock Paper Scissors Lizard Spock ASCII Art
#
# Rock
rock = """
_______
@smileart
smileart / RPS_ASCII_Art.py
Last active January 11, 2023 14:41 — forked from wynand1004/RPS_ASCII_Art.py
Rock, Paper, Scissors ASCII Art
# Rock
print("""
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
@smileart
smileart / github_butternut_squash.js
Last active November 9, 2022 19:09
🎃 A user-script to auto-choose "Auto-merge Squash" in the PR unless it's a release PR
// ==UserScript==
// @name Butternut Squash
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Choose Auto-merge Squash unless it's a release PR
// @author Serge Bedzhyk
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.io
// @match https://github.com/*
// ==/UserScript==