11-20-2025, 04:51 PM
Gemini 3 just released yesterday and it's already been a huge help for several things that would eat up my time. It generated a script that fixed my keyboard mapping permanently with a very minimal prompt.
Also, it generated some scripts I used for work and a really nice query that we're using for investigating db locks. Not necessarily faster than 2.5 but definitely way more competent. I think I saw it just topped the LLM charts, surpassing Grok 4.1 Thinking, or whatever the previous top one was.
Code: (Select All)
#!/bin/bash
# Script to fix Azio Keyboard Function Keys on Linux
# Author: Zachary Spriggs (Generated Assistant)
# Description: Forces hid_apple driver to use F-keys as default instead of media keys.
if [[ $EUID -ne 0 ]]; then
echo "Error: This script must be run as root."
echo "Usage: sudo ./fix_azio_keys.sh"
exit 1
fi
echo "[-] Detected Azio/Mac-layout keyboard issue..."
# 1. Apply Immediate Runtime Fix
# Many Azio keyboards use the Apple HID driver. We force 'fnmode=2' (F-keys first).
if [ -d "/sys/module/hid_apple/parameters" ]; then
echo "[-] Setting runtime parameter fnmode=2..."
echo 2 > /sys/module/hid_apple/parameters/fnmode
echo "[+] Runtime fix applied. Test your F-keys now."
else
echo "[!] hid_apple module not currently loaded. It may load on reboot."
fi
# 2. Make Fix Permanent (Modprobe Config)
CONFIG_FILE="/etc/modprobe.d/hid_apple.conf"
echo "[-] Creating permanent configuration in $CONFIG_FILE..."
# 'iso_layout=0' fixes swapped key issues (like < and >) on some models
# 'fnmode=2' defaults to F1-F12 function keys
echo "options hid_apple fnmode=2 iso_layout=0" > "$CONFIG_FILE"
echo "[+] Configuration saved."
# 3. Update Initramfs (Required to apply before login)
echo "[-] Updating initramfs to persist changes..."
if command -v update-initramfs &> /dev/null; then
# Debian/Ubuntu/Mint
update-initramfs -u
elif command -v dracut &> /dev/null; then
# Fedora/RHEL/CentOS
dracut --force
elif command -v mkinitcpio &> /dev/null; then
# Arch/Manjaro
mkinitcpio -P
else
echo "[!] Could not detect initramfs updater (update-initramfs/dracut/mkinitcpio)."
echo "[!] You may need to manually update your boot image."
fi
echo ""
echo "SUCCESS: Configuration complete."
echo "1. If F-keys work now, you are done."
echo "2. If not, try replugging the keyboard."
echo "3. If keys are still wrong, try the hardware toggle: Fn + Esc."Also, it generated some scripts I used for work and a really nice query that we're using for investigating db locks. Not necessarily faster than 2.5 but definitely way more competent. I think I saw it just topped the LLM charts, surpassing Grok 4.1 Thinking, or whatever the previous top one was.
The noticing will continue

