Skip to content

Instantly share code, notes, and snippets.

View k3karthic's full-sized avatar
💭
I may be slow to respond.

Karthic Kumaran k3karthic

💭
I may be slow to respond.
View GitHub Profile
@k3karthic
k3karthic / run-container-playbooks.sh
Created October 2, 2025 18:28
Fedora Silverblue - Run Container Ansible Playbooks
#!/usr/bin/env bash
# Exit immediately if a command exits with a non-zero status.
set -eo pipefail
# --- 1. Verify we are inside a Toolbox container ---
echo "▶️ Checking environment..."
if [ ! -f /run/.containerenv ]; then
echo "❌ Error: This script must be run inside a Toolbox container." >&2
exit 1
@k3karthic
k3karthic / notes.md
Last active October 2, 2025 18:29
Fedora Silverblue - Syncthing

Step 1 : Create toolbox container for Syncthing

toolbox create -d ubuntu --release 24.04 -c syncthing
toolbox enter syncthing
sudo mkdir -p /etc/apt/keyrings
sudo curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable-v2" | sudo tee /etc/apt/sources.list.d/syncthing.list
sudo apt-get update
sudo apt-get install syncthing
exit
@k3karthic
k3karthic / notes.md
Last active October 2, 2025 17:50
Fedora Silverblue - VM
@k3karthic
k3karthic / update-toolboxes.sh
Last active October 2, 2025 11:19
Fedora Silverblue - Update all toolboxes
#!/bin/bash
#
# Script to update all packages in all available Toolbox containers.
# It automatically detects the distro (Fedora, Debian, Ubuntu, Arch, etc.)
# and uses the correct package manager.
# Exit immediately if a command exits with a non-zero status.
set -e
echo "🔍 Starting update process for all Toolbox containers..."
@k3karthic
k3karthic / notes.md
Last active October 2, 2025 17:46
Fedora Silverblue - DNS
@k3karthic
k3karthic / notes.md
Last active October 2, 2025 09:57
Fedora Silverblue - LUKS with TPM + SSD Trim
@k3karthic
k3karthic / update_nvim.sh
Created June 3, 2023 21:57
Update Neovim (AppImage w/o FUSE)
#!/usr/bin/env sh
cd /tmp
echo https://github.com/neovim/neovim/releases/download/stable/nvim.appimage
curl -OL https://github.com/neovim/neovim/releases/download/stable/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage --appimage-extract
mkdir -p ~/bin/nvim
mv /tmp/squashfs-root ~/bin/nvim
rm nvim.appimage
@k3karthic
k3karthic / extensions.md
Last active April 23, 2023 12:14
VSCode Configuration
  • Color Highlight
  • EditorConfig
  • ESLint
  • Gitlens
  • Copilot
  • Python
  • PowerShell
  • Prettier
  • Sourcery
  • XML
@k3karthic
k3karthic / extensions.md
Last active May 31, 2023 06:30
VSCodium Configuration
  • Black (microsoft)
  • Color Highlight
  • EditorConfig
  • ESLint
  • Gitlens
  • Python
  • Prettier
  • PowerShell
  • Sourcery
  • AWS Toolkit
@k3karthic
k3karthic / extensions.md
Last active May 12, 2023 07:05
Sublime Configuration
  • EditorConfig
  • JsPrettier
  • LSP
  • LSP-pylsp
  • LSP-typescript
  • LSP-eslint
  • Pretty JSON
  • Pretty YAML
  • Sidebar Enhancements
  • Tabnine