Skip to content

Instantly share code, notes, and snippets.

@ElliotNB
ElliotNB / notify.sh
Last active December 5, 2023 02:35
Email sysadmin on every login from a new IP address
#!/bin/bash
##
## New IP login notification script
## 2009-11-20 00:28 Samuele ~redShadow~ Santi
## 2018-06-04 12:53 ElliotNB
## 2018-10-17 17:55 ElliotNB - bug fixes for non-interactive sessions and `sudo su` commands
## Licensed under GPL
##
## This script will email the contact specified below whenever
## a user logs into the system from a new IP address. The email will contain the
@ElliotNB
ElliotNB / disableNicOffloading.sh
Created November 29, 2018 22:28
Disable all forms of offloading for all network interfaces on the local machine.
#!/bin/bash
##
## Disable all NIC offloading
## 2018-11-29 10:16 ElliotNB - bug fixes for non-interactive sessions and `sudo su` commands
## Licensed under MIT
##
## This script will disable all forms of offloading on all network interfaces found on
## this machine. This script was built to resolve system crashes related to the Xen kernel
## and certain hardware.
##