Skip to content

Instantly share code, notes, and snippets.

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

Vsevolod Tsiliurik tsilvs

🏠
Working from home
View GitHub Profile
@tsilvs
tsilvs / .jq
Last active April 27, 2025 12:58
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 / [email protected]
Last active April 14, 2025 21:51
rclone SystemD service
# Install:
# cp [email protected] ~/.config/systemd/user/ && systemctl --user enable --now rclone-mount@$CLOUD_NAME
# Where $CLOUD_NAME is a section name from rclone.conf
[Unit]
Description=RClone mount: %i
Documentation=man:rclone(1)
After=network.target
Wants=network-online.target
StartLimitIntervalSec=300
@tsilvs
tsilvs / JobsData.md
Created April 10, 2025 21:33
Job Market Data Sources Catalog

This is a draft, and will be updated later

Data sources

Job Market

Type LOD Location Price License Date Source Name Number Size Link
0. Categories 1. Job categories Worldwide Free Public Domain Unspecified JSA Jobs ? ? [jobandsalaryabroad.com][jobandsalaryabroad.com]
1. Indicators 0. Country-level Worldwide Free CC BY 4.0 2023 WPR Median Income by Country ? ? [worldpopulationreview.com][worldpopulationreview.com]
@tsilvs
tsilvs / fast-font-install-chrome.sh
Last active April 10, 2025 12:04
Install Fast Font in Chrome on Linux
#!/bin/bash
#TEST BEFORE RUNNING!
# Set your Chrome config directory name
chromium="chromium"
# Set your Chrome profile directory name
profile="Default"
chrome_prefs="~/.config/$chromium/$profile/Preferences"