Skip to content

Instantly share code, notes, and snippets.

View jumpyvi's full-sized avatar
🦆

JumpyVi jumpyvi

🦆
View GitHub Profile

Border Router for RHEL

DHCPD

Create DHCP server

  1. sudo dnf install dhcp-server
  2. sudo vim /etc/dhcp/dhcpd.conf
@jumpyvi
jumpyvi / nordvpn.repo
Created April 29, 2025 21:55
nordvpn.repo
[nordvpn]
name=nordvpn
enabled=1
gpgcheck=0
baseurl=https://repo.nordvpn.com/yum/nordvpn/centos/x86_64
@jumpyvi
jumpyvi / tpm-unlock.sh
Created November 5, 2024 21:35
TPM-Autounlock (fedora)
#!/bin/bash
## setup auto-unlock LUKS2 encrypted root on Fedora/Silverblue/maybe others
## This is a backup version from Universal Blue
set -eou pipefail
[ "$UID" -eq 0 ] || { echo "This script must be run as root."; exit 1;}
echo "WARNING: Do NOT use this if your CPU is vulnerable to faulTPM!"
echo "All AMD Zen2 and Zen3 Processors are known to be affected!"
echo "All AMD Zen1 processors are also likely affected, with Zen4 unknown!"
function Connecter-Samba {
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
$nom, $mdp, $location_reseau
)
$command = "New-SmbMapping -LocalPath 'S:' -RemotePath '$location_reseau' -Username '$nom' -Password '$mdp'"
$lancer_msx = "Start-Process explorer.exe S:"