Skip to content

Instantly share code, notes, and snippets.

diff --git a/PKGBUILD b/PKGBUILD
index 5440741..37ba661 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,18 +12,18 @@ depends=('pass')
makedepends=('go')
_gourl='github.com/docker/docker-credential-helpers'
source_x86_64=(
- 'docker-credential-helpers-v0.9.8.tar.gz::https://github.com/docker/docker-credential-helpers/archive/refs/tags/v0.9.8.tar.gz'
- 'LICENSE::https://raw.githubusercontent.com/docker/docker-credential-helpers/v0.9.8/LICENSE'
from __future__ import annotations
import heapq
import itertools
from dataclasses import dataclass
from datetime import datetime
from typing import TypeAlias
@dataclass(frozen=True)
@radupotop
radupotop / 01-harden.conf
Created September 20, 2025 19:21
Jellyfin Systemd hardening override files
[Service]
# Prevent gaining extra privileges or executing setuid binaries.
NoNewPrivileges=yes
# Separate /tmp and /var/tmp
PrivateTmp=yes
# Make most of the filesystem read-only; whitelist writable paths below.
ProtectSystem=strict
# https://docs.astral.sh/ruff/settings/
#
# extend = "../pyproject.toml"
line-length = 90
[lint]
select = ["E", "F"] # Pyflakes and pycodestyle
ignore = ["E501"] # Allow long lines
unfixable = ["F401"] # Allow unused imports
@radupotop
radupotop / settings.json
Last active July 28, 2025 17:39
Zed settings.json (JSONC)
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"icon_theme": "Material Icon Theme",
@radupotop
radupotop / newone.json
Created July 28, 2025 17:36
New One Zed theme
{
"name": "New One",
"author": "Zed Industries",
"themes": [
{
"name": "New One",
"appearance": "dark",
"style": {
"border": "#464b57ff",
"border.variant": "#363c46ff",
# File: /etc/systemd/system/x86_energy_perf_policy@.service
#
# Valid arg values are: performance, balance-performance, normal, balance-power, power
#
[Unit]
Description=Set x86_energy_perf_policy %i
[Service]
Type=oneshot
@radupotop
radupotop / config.fish
Last active July 31, 2025 11:07
Fish shell config
# vim: filetype=sh
# set path
set -l path_array $HOME/bin $HOME/.cargo/bin $HOME/.local/bin
if not contains $path_array[1] $PATH
set -a PATH $path_array
end
# exports
set -x EDITOR "vim"
# Personal user
[user]
name = Your Name
email = your-email@example.org
# signingkey = xxxxxxxxxxx
editor = vim
# Work user
[includeIf "gitdir:~/Work/"]
path = .gitconfig-work
[core]
@radupotop
radupotop / eml-rename.py
Created March 3, 2025 19:44
Rename email files to timestamp-subject-sender
#!/usr/bin/env python3
import argparse
from email import policy
from email.parser import BytesParser
from email.utils import parsedate_to_datetime
from pathlib import Path
from typing import Iterable
from zoneinfo import ZoneInfo