Skip to content

Instantly share code, notes, and snippets.

@tmonjalo
tmonjalo / disable-wireless-when-wired.sh
Last active Sep 21, 2018
Toggle wifi status on ethernet event with Linux NetworkManager
View disable-wireless-when-wired.sh
#! /bin/sh
# path should be /etc/NetworkManager/dispatcher.d/99-disable-wireless-when-wired
self=${0##*/}
log() { logger -p user.info -t "${self}[$$]" "$*" ;}
iface=$1
action=$2
case $iface in eth*|usb*|en*)
@tmonjalo
tmonjalo / list-fftabs.py
Created Sep 13, 2018
List all Firefox tabs with title and URL
View list-fftabs.py
#! /usr/bin/env python3
"""
List all Firefox tabs with title and URL
Supported input: json or jsonlz4 recovery files
Default output: title (URL)
Output format can be specified as argument
"""
You can’t perform that action at this time.