There is piece of code I have written, I use daily and which makes me a bit happier each time I run it. Actually it isn’t code, just small function in my .zshrc that ties together some utility scripts to save 30 seconds of my time. Here it is:
sudo cp -v ~/src/linux/arch/x86/boot/bzImage /boot/vmlinuz-mainline
sudo make modules_install
sudo mkinitcpio -p mainline
It just installs compiled kernel by copying kernel image to boot directory (from where systemd copies it to EFI boot partition for Gummiboot), installs modules by using kernel makefile and then generates initrd image with configuration template tuned for custom kernel installation. So just simple script tying together other simple scripts, quite unix. Still, I can’t help smiling every time I run it.