Advanced Search
Search Results
51 total results found
SSH Key Authentication Setup Guide
🎯 Goal: Enable secure, passwordless SSH login from your client machine to your server using SSH key authentication. 🧱 Prerequisites: You have access to both your client machine (where you initiate the SSH connection) and your server. You know the...
Pull Requests
Even if you're the only person working on a project: It helps keep your main branch clean and stable. You can review your changes before merging. If others contribute, it gives you a chance to review their changes before accepting. ✅ Step...
Git Cheat Sheet
🔧 Setup Set your name and email git config --global user.name "Your Name" git config --global user.email "you@example" Set default branch to main git config --global init.defaultBranch main 📁 Create or Clone Repository Initialize new repos...
Rebase
What is git rebase (in plain English)? Rebase takes the commits on your current branch and replays them on top of another commit (often the latest main).This creates a clean, linear history (no merge commits) as if you had started your work from that newer po...
Merge case (you’re merging main into your branch, and want your branch everywhere)
git checkout --ours $(git diff --name-only --diff-filter=U) && git add -A && git commit -m "Resolve conflicts preferring branch changes" && git push
Handling Pull Requests from Forks (Maintainer Guide)
# Handling Pull Requests from Forks (Maintainer Guide) This guide explains how to safely work with PRs created from contributor forks. --- ## 0. On GitHub: Inspect the PR On the PR page, note: - **PR number** – e.g. `#104` - **Source branch**...
New Page
SQLite
DB File corruption fix
1) Stop writes + backup # stop the bot/container first cp -a bot.db bot.db.bak.$(date +%Y%m%d-%H%M%S) [ -f bot.db-wal ] && cp -a bot.db-wal bot.db-wal.bak.$(date +%Y%m%d-%H%M%S) [ -f bot.db-shm ] && cp -a bot.db-shm bot.db-shm.bak.$(date +%Y%m%d-%H%M%S) ...
macvlan on VLAN interface eth0.50 (tagged VLAN 50)
sudo docker network create -d macvlan \ --subnet=192.168.50.0/24 \ --gateway=192.168.50.1 \ -o parent=eth0.50 \ vlan50_net
PBS
Proxmox Backup Server
Setup a new PBS client
Proxmox Backup Client on Raspberry Pi (ARM64) — Community Setup Guide This guide installs proxmox-backup-client on a Raspberry Pi (ARM64) and schedules backups to your existing PBS server (no PBS web UI on the Pi). Tip: Try to keep the client major version...
Login to Github in terminal
# 1. Install GH CLI sudo apt install -y gh # 2. Login via terminal gh auth login
Restore Only A Specific Folder
Let's restore the /home/mac directory because you deleted it for some reason. 1) Restore /home/mac into a staging folder (safe) Create a clean staging directory: sudo mkdir -p /root/restore-home sudo rm -rf /root/restore-home/* Restore only /home/mac from...
Merge our branch quickly ignoring conflicts with main
git merge -X ours main \ -m "Merge main (prefer branch changes on conflicts)" \ && git push