Skip to content

Instantly share code, notes, and snippets.

View tsilvs's full-sized avatar
🏠
Working from home

Seva Tsiliurik tsilvs

🏠
Working from home
View GitHub Profile
@tsilvs
tsilvs / Replace distutils.spawn.find_executable with shutil.which
Created October 26, 2025 11:26 — forked from mogoh/Replace distutils.spawn.find_executable with shutil.which
Utility for making Flatpak-installed apps available in the terminal through their normal command names
#!/usr/bin/env python3
"""Flatpak CLI Shortcut Generator
A simple no-argument tool that generates launchers with traditional non-flatpak
command names for your installed Flatpak applications in ~/.local/bin/flatpak.
Does full collision detection and warns you if you forgot to add its output
directory to your PATH. Also overrules the command-line specified in the
``.desktop`` file if the Flatpak maintainer didn't include support for
command-line arguments.
@tsilvs
tsilvs / CV.TPL.md
Last active September 6, 2025 12:50
CV Template Markdown
<style> @hf-pushed { size: A4; margin: 20mm; } section#header, section#header > h1, section#header > p { text-align: center; display: block; }
@tsilvs
tsilvs / 0.legend.md
Last active September 12, 2025 22:33
RPM Packages by category

Legend

Important

Required packages, why are those not even in the base image?

Tip

Better to have them installed in the base system.

Note

These have good Flatpak or Homebrew alternatives.

@tsilvs
tsilvs / .jq
Last active May 24, 2025 22:01
Docker Inspect Export as Compose
# Put in ~/.jq file
def yamlify2:
(objects | to_entries | (map(.key | length) | max + 2) as $w |
.[] | (.value | type) as $type |
if $type == "array" then
"\(.key):", (.value | yamlify2)
elif $type == "object" then
"\(.key):", " \(.value | yamlify2)"
else
@tsilvs
tsilvs / openproject-docker.sh
Created April 25, 2025 16:04
OpenProject Docker Deployment script
#!/bin/bash
# OpenProject Docker Localhost Deploy Script
# Create data storage directories
OP_GROUP=openproject
sudo groupadd -f $OP_GROUP
sudo mkdir -p /var/lib/openproject/{assets,pgdata}
@tsilvs
tsilvs / pt.at.irs.instr.eng.md
Last active April 27, 2025 10:42
Portugal AT IRS Instruction (English, shortened)

Summary of IRS Model 3 declaration instructions from https://irs.portaldasfinancas.gov.pt/app/entrega/v2025

Proceed carefully; consult a professional if needed.

Errors in your declarations are your responsibility.

Steps

Model 3 Declaration consists of Sections, Numbered 0 to 13.

@tsilvs
tsilvs / DatAnIntro.md
Created April 14, 2025 17:34
Data Analytics Notes

Intro

  • Data analytics - examining data to uncover:
    • patterns
    • correlations
    • insights
  • Helps organizations:
    • Optimize operations
    • Predict trends
    • Improve performance
@tsilvs
tsilvs / rot-dpl-pk-list.sh
Created April 14, 2025 10:36
rpm-ostree: list current deployment installed packages
#!/bin/bash
rpm-ostree status -b -json | jq -r '.deployments[0].packages[]' | sort
@tsilvs
tsilvs / m3u.relative.links.md
Created April 13, 2025 16:38
How to link `.m3u` playlists with relative paths
@tsilvs
tsilvs / .vars.env
Last active May 12, 2025 13:17
rclone SystemD service
We couldn’t find that file to show.