Set MulticastDNS
to yes
and apply the change:
sudo vi /etc/systemd/resolved.conf
sudo systemctl restart systemd-resolved
Enable mDNS on the network interface and apply the change:
Set MulticastDNS
to yes
and apply the change:
sudo vi /etc/systemd/resolved.conf
sudo systemctl restart systemd-resolved
Enable mDNS on the network interface and apply the change:
I noticed that my main file system was only 15G:
$ df -Th
Filesystem Type Size Used Avail Use% Mounted on
...
/dev/mapper/fedora-root xfs 15G 1.7G 14G 11% /
...
Configuring ssh
to use the macOS keychain allows using a passphrase-protected SSH key without having to repeatedly enter the passphrase.
To store passphrases in the keychain, add this to ~/.ssh/config
:
UseKeychain yes
You'll now only be asked to enter a passphrase the first time you use an SSH key.
Enabling multicast DNS (mDNS) on a server allows other hosts on the local network to address the server as <hostname>.local
.
mDNS is disabled by default in Ubuntu Server:
$ resolvectl mdns
Global: no
Link 2 (eno1): no
import contextlib | |
import datetime | |
@contextlib.contextmanager | |
def mock_now(dt_value): | |
"""Context manager for mocking out datetime.now() in unit tests. | |
Example: | |
with mock_now(datetime.datetime(2011, 2, 3, 10, 11)): |
import re | |
# Some mobile browsers which look like desktop browsers. | |
RE_MOBILE = re.compile(r"(iphone|ipod|blackberry|android.+mobile|palm|windows\s+ce)", re.I) | |
RE_DESKTOP = re.compile(r"(windows|linux|os\s+[x9]|solaris|bsd)", re.I) | |
RE_BOT = re.compile(r"(spider|crawl|slurp|bot)") | |
def is_desktop(user_agent): | |
""" |
"""collapsespaces is a Django template tag that collapses whitespace characters between tags into one space. | |
It is based on Django's 'spaceless' template tag (spaceless is different in that it completely removes whitespace between tags). | |
Why is this important? | |
Given "<span>5</span> <span>bottles</span>", collapsespaces will preserve the space between the two span elements--spaceless will not. | |
In a web browser: | |
"<span>5</span> <span>bottles</span>" renders as "5 bottles" | |
"<span>5</span><span>bottles</span>" renders as "5bottles" | |
""" |
/*! | |
* jQuery TextChange Plugin | |
* http://www.zurb.com/playground/jquery-text-change-custom-event | |
* | |
* Copyright 2010, ZURB | |
* Released under the MIT License | |
*/ | |
(function ($) { | |
$.event.special.textchange = { |