-
Disable and stop the systemd-resolved service:
sudo systemctl disable systemd-resolved.service sudo systemctl stop systemd-resolved -
Then put the following line in the
[main]section of your/etc/NetworkManager/NetworkManager.conf:
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
| module FooWrapper | |
| def bar | |
| puts "this will happen before the real bar!" | |
| super | |
| end | |
| end | |
| class Foo | |
| prepend FooWrapper |
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 sh | |
| ssh -o UserKnownHostsFile=/dev/null \ | |
| -o StrictHostKeyChecking=no \ | |
| -o LogLevel=ERROR \ | |
| $@ |
Render some Markdown file to HTML and show it in your browser.
This is useful when you want to check a Markdown file before pushing it onto GitHub/GitLab/etc or if you want to simply print a nice looking Markdown file. Just print it from your browser.
The look is broadly similar to that on GitHub but stripped down to the bare minimum. It can also be changed easily. Just have a look at the
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
| require 'etc' | |
| TCP_STATES = { # /usr/src/linux/include/net/tcp_states.h | |
| '00': 'UNKNOWN', | |
| 'FF': 'UNKNOWN', | |
| '01': 'ESTABLISHED', | |
| '02': 'SYN_SENT', | |
| '03': 'SYN_RECV', | |
| '04': 'FIN_WAIT1', | |
| '05': 'FIN_WAIT2', |
OlderNewer