Skip to content

Instantly share code, notes, and snippets.

@zx0r
zx0r / GPG-and-SSH-KeyManagement.md
Last active September 20, 2026 20:35
GPG Configuration for Fish Shell
# Fish Shell Functions for GPG and SSH Key Management Gentoo Linux

# Author: zx0r
# Description: A set of Fish shell functions to manage GPG and SSH keys using keychain and agents.
# Version: 1.0

# This repository contains configuration snippets for using GPG (GNU Privacy Guard) with Git and other applications. 
# The following commands and configurations enable you to manage your GPG keys and use them for signing Git commits and tags.
@zx0r
zx0r / web_engineering_audit.md
Last active July 12, 2026 08:37
Curated reference for evaluating performance, SEO, accessibility, metadata, security and production readiness of modern web applications.

Web Engineering Audit Matrix

Performance

Tool Purpose Primary Metrics
https://pagespeed.web.dev Production performance audit (Google Lighthouse) LCP, CLS, INP, Performance Score
Chrome DevTools → Performance Runtime profiling and rendering analysis Main Thread, Rendering, Layout Shift, Long Tasks
Chrome DevTools → Lighthouse Local diagnostics and regression testing Performance, Accessibility, SEO
Web Vitals Extension Real-time Core Web Vitals monitoring LCP, CLS, INP
@zx0r
zx0r / install_yazi_plugins.sh
Last active June 25, 2026 09:19
Script to install Yazi plugins
#!/usr/bin/env bash
# Script: install_yazi_plugins.sh
# Description: Automates the installation of plugins for Yazi, a modern terminal file manager.
# Author: zx0r
# Version: 1.0
# Usage: Run as a regular user or with sudo if required.
# Prerequisites:
# 1. Yazi must be installed on the system.
@zx0r
zx0r / test_01.py
Last active May 29, 2026 18:38
Yandex
"""
Описание алгоритма:
* Обрабатываем все события долива воды в хронологическом порядке.
* Для каждого события вычисляем, сколько воды утекло с момента предыдущего долива.
* Количество воды не может стать отрицательным.
* После учета утечки добавляем новый объем воды.
* После обработки последнего события возвращаем количество воды в увлажнителе.
Временная сложность: O(n)
@zx0r
zx0r / vscode_extension_fetcher.py
Created August 5, 2025 22:05
VSCode Marketplace API, download and install extensions latest stable version
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# License : MIT License
# Author : zx0r
# Description :
# A Python script that interacts with the Visual Studio Code Marketplace API
# to automatically fetch and download the latest stable and optionally pre-release .vsix versions of given extensions.
# It also detects if an extension is an Extension Pack and recursively downloads all included extensions.
@zx0r
zx0r / install_nerd_fonts.sh
Last active February 9, 2026 18:11
Script to interactively select and install Nerd Fonts for macOS
#!/usr/bin/env bash
# Script: install_nerd_fonts.sh
# Description: A script to interactively select and install Nerd Fonts for macOS using Homebrew and fzf.
# Author: zx0r
# Version: 1.0
# Enable strict error handling
set -euo pipefail
@zx0r
zx0r / dsdt_analyser.py
Last active June 2, 2025 17:31
DSDT Analyser dor Hackintosh
license_text = """
License for Free Use with No Commercial Use
Copyright (c) 2025 spakk
Permission is hereby granted to any person obtaining a copy of this software and associated documentation files
to use the software free of charge and without restriction, including the rights to use, copy, modify, and
distribute the software, but strictly for non-commercial purposes only.
Restrictions:
@zx0r
zx0r / Awesome-Pentest.md
Created February 3, 2025 15:09 — forked from lakmalrupasinghe/Awesome-Pentest.md
Awesome-Pentesting

Awesome Penetration Testing Awesome

A collection of awesome penetration testing resources.

Penetration testing is the practice of launching authorized, simulated attacks against computer systems and their physical infrastructure to expose potential security weaknesses and vulnerabilities.

Your contributions and suggestions are heartily♥ welcome. (✿◕‿◕). Please check the Contributing Guidelines for more details. This work is licensed under a Creative Commons Attribution 4.0 International License.

This project is supported by Netsparker Web Application Security Scanner

@zx0r
zx0r / a_setup-gpg-git-macos.sh
Last active January 30, 2025 20:51
GnuPG (GPG) for macOS
#!/usr/bin/env bash
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# :::::::: :::: ::: ::: ::: ::::::::: ::::::::
# :+: :+: :+:+: :+: :+: :+: :+: :+: :+: :+:
# +:+ :+:+:+ +:+ +:+ +:+ +:+ +:+ +:+
# :#: +#+ +:+ +#+ +#+ +:+ +#++:++#+ :#:
# +#+ #+#+# +#+ +#+#+# +#+ +#+ +#+ +#+ #+#+#
# #+# #+# #+# #+#+# #+# #+# #+# #+# #+#