Skip to content

Instantly share code, notes, and snippets.

View rana's full-sized avatar
😄
Balancing perception and action

Rana Ian rana

😄
Balancing perception and action
View GitHub Profile
@rana
rana / dev-update.sh
Last active June 20, 2025 21:36
Update Dev - A comprehensive Ubuntu development environment setup script that installs modern CLI tools (Rust/Go/Kubernetes ecosystem), configures systemd timers for automated maintenance, and establishes a productive workflow for cloud-native development.
#!/bin/bash
# Create maintenance script
mkdir -p ~/.config/systemd/user
# Create the maintenance script
cat > ~/.local/bin/update-tools.sh << 'EOF'
#!/bin/bash
# Tool maintenance script
set -euo pipefail
@rana
rana / k9s_installer.sh
Created June 20, 2025 20:07
Install latest version of k9s from GitHub
#!/bin/bash
set -e
echo "Installing latest k9s..."
# Get latest release info from GitHub API
echo "Fetching latest release info from GitHub..."
LATEST_RELEASE=$(curl -s https://api.github.com/repos/derailed/k9s/releases/latest)
@rana
rana / win11.md
Last active January 12, 2025 19:42
Create a Windows 11 USB installer from Linux

Create a Windows 11 USB installer from Linux

Use the Microsoft mediacreationtool.exe on Windows 11 inside a VirtualBox VM.

Rantionale

Direct ISO to USB on Linux hasn't worked. Windows 11 USB installers created from dd, WoeUSB, Ventoy boot, but are missing drivers for full installation.

Instructions

@rana
rana / win.sh
Last active January 12, 2025 01:27
Create Windows 11 USB installer from linux command line
#!/bin/bash
# Use WoeUSB to create a Windows 11 installer USB
# https://ppa.launchpadcontent.net/tomtomtom/woeusb/ubuntu/pool/main/w/woeusb/
# sudo umount /dev/sda
# sudo woeusb \
# --device \
# /home/rana/Downloads/Win11_24H2_English_x64.iso /dev/sda \
# --verbose \
@rana
rana / install-cmd-tools.md
Last active July 12, 2025 23:19
Install command-line tools

OS Files: Configure

Allow scripts to be run without password prompts.

sudo sed -i 's/%sudo.*/%sudo   ALL=(ALL:ALL) NOPASSWD:ALL/' /etc/sudoers

Command-line tools: Install