This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| export LC_ALL=C | |
| # Copy this file and make it executable: | |
| # sudo curl -fsSL https://gist.github.com/cakeneko/0034e7d5db84ca824869598332ea22fc/raw -o /etc/NetworkManager/dispatcher.d/90-disable-wifi-on-ethernet | |
| # sudo chmod +x /etc/NetworkManager/dispatcher.d/90-disable-wifi-on-ethernet | |
| # Make sure your Ethernet connection has its connection.id set to "eth0" | |
| # sudo nmcli con mod <UUID> connection.id eth0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| powershell Start-Process notepad -Verb RunAs -ArgumentList C:\Windows\System32\Drivers\etc\hosts -Wait | |
| ipconfig /flushdns |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| sudo apt update | |
| sudo apt install curl lsb-release -y | |
| ARCH=$(dpkg --print-architecture) | |
| DIST=$(lsb_release -is | awk '{print tolower($0)}') | |
| CODE=$(lsb_release -cs) |