Skip to content

Instantly share code, notes, and snippets.

View MysticSnows's full-sized avatar
❄️

SnowyDev MysticSnows

❄️
View GitHub Profile
@MysticSnows
MysticSnows / Fix Damaged EFI Partition or Grub [Fedora 39].md
Last active May 16, 2025 08:53
Chroot / rebuild Grub / Fix Damaged EFI Partition / rebuild Kernel (initramfs, vmlinuz) [Fedora 39]

If you simply want to fix grub or chroot, check out this official documented method (Fedora). It looks detailed enough but I came across it after solving my problem. Worth a try.

DISCLAIMER: THIS GUIDE IS SUPER NOVICE. IT REPRODUCES ALL THE STEPS I DID TO GET MY SYSTEM WORKING AFTER CONVERTING FROM EXT4 TO BTRFS.[^1] I TRIED TO KEEP IT BEGINNER FRIENDLY (PARTLY FOR FUTURE MYSELF). PLEASE UNDERSTAND INTUITION OF ANY COMMAND YOU EXECUTE FROM THIS GIST. READ COMMENTS IN BLOCK OF CODE ALONG THE WAY.

This was tested on Fedora 39 (UEFI).


@MysticSnows
MysticSnows / SELinux Troubleshoot [Fedora].md
Created March 29, 2024 15:26
SELinux Tools for Fedora

GUI approach

  • setroubleshoot is a GUI to identify the denials
  • policycoreutils-gui is used for modifying/creating Policy (SELinux Management -> Policy Module)
$ sudo dnf install setroubleshoot
$ sudo dnf install policycoreutils-gui
@MysticSnows
MysticSnows / work-with-multiple-github-accounts.md
Created June 25, 2024 15:38 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@MysticSnows
MysticSnows / ultima.zsh.theme
Last active December 30, 2024 07:04
Ultima Theme [without absolute path]
# Original work at: https://github.com/egorlem/ultima.zsh-theme
# Place in ~/.oh-my-zsh/themes/ultima.zsh.theme
autoload -Uz compinit; compinit
# LOCAL/VARIABLES/ANSI =========================================================
ANSI_reset="\x1b[0m"
ANSI_dim_black="\x1b[0;30m"
@MysticSnows
MysticSnows / nginx.service
Created May 14, 2025 14:45
Nginx systemd service file
# located at: /lib/systemd/system/nginx.service
[Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/var/run/nginx.pid
ExecStartPre=/usr/bin/nginx -t