Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am t94xr on github.
  • I am t94xr (https://keybase.io/t94xr) on keybase.
  • I have a public key ASArB26IA5ADBcm0bnNL1r9gWR1M17hHjMSZNJm4x49fOAo

To claim this, I am signing this object:

@t94xr
t94xr / 40_custom
Last active December 8, 2021 18:58
/etc/grub.d/40_custom file on my Dell Precision M3800
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
#
# ZORIN 16 PRO x64
# Boots fine, no issues.
#
@t94xr
t94xr / login.sh
Last active August 28, 2022 03:00
Login Script
#!/bin/bash
# Save this as /etc/profile.d/login.sh
# chmod +x login.sh
echo -e ""
echo -e "\e[1m$(cat /etc/hostname)\e[0m" "has been" "\e[32m$(uptime -p)\e[0m" "(since" "$(last reboot | grep still | awk '{print $5 " " $6 " " $7 " " $8}')"")"
echo -e "Local IP: " "$(ip addr | awk '/state UP/ {print $2}' | sed 's/.$//')" "$(hostname -I | awk '{print $1}')"
echo -e "WAN IP: " "$(dig @resolver4.opendns.com myip.opendns.com +short)"
echo -e ""
echo -e "$(inxi -s | grep cpu)"