Skip to content

Instantly share code, notes, and snippets.

View luponata's full-sized avatar

Matteo N luponata

  • Milan, Italy
View GitHub Profile

FYI (July 24, 2025): I've been away since July 11, dealing with an emergency move. I'll be back working on all the amazing comments y'all have been putting down, most possibly by the first weekend of August. I appreciate all the contributions everybody has been making and all the time everybody has put to make all of our lives better.

Streaming Whitelists and Blacklists for PiHole

Last Updated On:           July 10, 2025
Last Updated Platform:     Peacock

Table of Contents

@consolewitch
consolewitch / get_eth_device_from_adapter_number.sh
Last active April 3, 2018 17:26
get_eth_device_from_adapter_number.sh
#! /bin/bash
###
# Written by Alex N. Speaks
# Takes the position in which a NIC appears in the vmware console as an argument.
# Returns the ethernet device name that corresponds to that position number.
# Position numbers start at 0
# You can think of this as the old-style ethX number
NIC_INDEX=$1