Skip to content

Instantly share code, notes, and snippets.

View zx0r's full-sized avatar
πŸ’­
stay hungry; stay foolish

zx0r

πŸ’­
stay hungry; stay foolish
View GitHub Profile
@zx0r
zx0r / restore-broken-bootloader.sh
Last active January 26, 2025 06:48
[SOLVED] Unable to boot after kernel update
#!/usr/bin/env bash
# Script: restore_bootloader.sh
# Description: Restore of a broken bootloader for Gentoo Linux.
# Author: zx0r
# Version: 1.0
# Usage: Run as root or with sudo.
# Overview:
# This script is designed to restore a broken bootloader on a Gentoo Linux system.
@zx0r
zx0r / install_yazi_plugins.sh
Last active January 28, 2025 07:01
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.
# Fish Shell Functions and Abbreviations for Neovim Configuration Management
# Author: zx0r
# Description: A set of Fish shell functions and abbreviations to manage and switch between multiple Neovim configurations.
# Version: 1.0
# Overview:
# These functions and abbreviations simplify the process of managing multiple Neovim configurations.
# They allow you to:
@zx0r
zx0r / GPG-and-SSH-KeyManagement.md
Last active January 26, 2025 07:50
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 / memory_optimizer.fish
Last active January 26, 2025 08:13
Shell Script: macOS Memory Optimizer
#!/usr/bin/env fish
# Script: macOS Memory Optimizer (Fish Shell)
# Description: Automates memory optimization tasks, including clearing inactive memory, caches, and setting up a cron job.
# Author: zx0r
# Version: 1.0
# Function to clear inactive memory
function clear_inactive_memory
echo "Clearing inactive memory..."
@zx0r
zx0r / install_nerd_fonts.sh
Last active January 26, 2025 10:44
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 / gh_repo_managing.fish
Last active January 28, 2025 06:15
GitHub Repository Management Functions for Fish Shell
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# a88888b. dP 888888ba dP
# d8' `88 88 88 `8b 88
# 88 .d8888b..d888b88.d8888b.a88aaaa8P'.d8888b..d8888b..d8888b.d8888P
# 88 88' `8888' `8888ooood8 88 `8b.88' `8888' `88Y8ooooo. 88
# Y8. .8888. .8888. .8888. ... 88 .8888. .8888. .88 88 88
# Y88888P'`88888P'`88888P8`88888P' 88888888P`88888P'`88888P'`88888P' dP
# Copyright (c) 2025 zx0r. All rights reserved.
@zx0r
zx0r / a_setup-gpg-git-macos.sh
Last active January 30, 2025 20:51
GnuPG (GPG) for macOS
#!/usr/bin/env bash
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# :::::::: :::: ::: ::: ::: ::::::::: ::::::::
# :+: :+: :+:+: :+: :+: :+: :+: :+: :+: :+:
# +:+ :+:+:+ +:+ +:+ +:+ +:+ +:+ +:+
# :#: +#+ +:+ +#+ +#+ +:+ +#++:++#+ :#:
# +#+ #+#+# +#+ +#+#+# +#+ +#+ +#+ +#+ #+#+#
# #+# #+# #+# #+#+# #+# #+# #+# #+# #+#
#!/usr/bin/env bash
# Script Name: download_gist_files.sh
# Description: Automates the process of downloading all files from a GitHub Gist.
# Uses the GitHub Gist API to fetch file metadata and downloads each file.
# Author: zx0r
# Date: 2025.01.30
# Version: 1.0
# Usage: ./download_gist_files.sh <GIST_ID>
# Example: ./download_gist_files.sh 843298b67cd91a0835dcf36aada529d5
@zx0r
zx0r / Git-Bare-Repo-Management.md
Last active March 9, 2025 23:11
πŸ› οΈ Π£ΠΏΡ€Π°Π²Π»Π΅Π½ΠΈΠ΅ dotfiles ΠΈ с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ Bare Git Repository
# https://github.com/zx0r/Git-Bare-Repo-Management

πŸ› οΈ Managing dotfiles with a Bare Git Repository

Managing dotfiles using a bare Git repository is a clean, efficient, and version-controlled approach to maintaining system configurations across multiple environments. This guide follows DevOps, DevSecOps, and automation best practices to ensure seamless setup, maintainability, and security.