Skip to content

Instantly share code, notes, and snippets.

View NorkzYT's full-sized avatar
💻
Always Coding, & Learning!

Richard Lora NorkzYT

💻
Always Coding, & Learning!
  • 08:23 (UTC -04:00)
View GitHub Profile
@NorkzYT
NorkzYT / README.md
Last active July 8, 2025 02:58
Proxmox CIFS Share Mount Wizard Script

Proxmox LXC ⇆ CIFS Mount Wizard

proxmox-lxc-cifs-share.sh is an interactive helper that mounts a network CIFS/SMB share on a Proxmox VE node and bind-mounts it into one or more unprivileged LXC containers in one pass.
It automates:

  1. Creating a host-side mountpoint under /mnt/lxc_shares/<folder>.
  2. Writing a properly-tuned /etc/fstab entry (systemd.automount, uid/gid mapping, etc.).
  3. Mounting the share immediately.
  4. Injecting the bind-mount (mpX:) into the live LXC configuration with pct set.
  5. Stopping and restarting each container to apply the mount.
@NorkzYT
NorkzYT / gitMirror.sh
Created January 23, 2024 11:17
Git Mirror Script
#!/bin/bash
# This script is designed to add a target remote to your Git repository and then
# force-push all branches and tags to this target. It's particularly useful for
# mirroring or backing up repositories. The script prompts for the target's username,
# personal access token, and repository URL. Be cautious with force-pushing as it
# can overwrite changes in the target repository.
# Bash script to add a remote and force-push all branches and tags