Skip to content

Instantly share code, notes, and snippets.

View pnahco's full-sized avatar

PNAH Co. pnahco

  • PNAH
  • Iran
View GitHub Profile
@Yousha
Yousha / update_linux_kernel.sh
Last active May 27, 2024 09:13
Shell script to update Linux kernel. (Traditionally)
#!/bin/sh
# Prepare.
set -o nounset # Abort on unbound variable.
set -o pipefail # Non-POSIX - Don't hide errors within pipes.
LANG=C
LC_CTYPE=C
LC_ALL=C
[ $UID != 0 ] && {
@Yousha
Yousha / .gitignore
Last active April 15, 2023 06:11
.gitignore for GNU+Linux root filesystem to track changes.
/dev/
/lost+found/
/proc/
/mnt/
/media/
/var/cache/nscd/hosts
/var/cache/nscd/passwd
/media/user/
/var/cache/nscd/group
/root/.cache/