This file contains 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
import toggleItemInArray from '../toggleItemInArray'; | |
it('toggles item properly', () => { | |
expect(toggleItemInArray([], 'a')).toEqual(['a']); | |
expect(toggleItemInArray(['a', 'b'], 'a')).toEqual(['b']); | |
}); |
This file contains 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
find /var/lib/docker/containers/ -type f -name "*.log" -delete |
This file contains 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
version: '2.4' | |
services: | |
dns-for-weave: | |
container_name: dns-for-weave | |
image: cytopia/bind | |
environment: | |
EXTRA_HOSTS: "weavescope.yourcompany.com=000.000.000.000" | |
DOCKER_LOGS: "1" |
This file contains 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
-- vim:syntax=lua:set ts=4 sw=4: | |
-- Refer to manual: https://knot-resolver.readthedocs.io/en/stable/daemon.html#configuration | |
-- Listen on all interfaces (localhost would not work in Docker) | |
net.listen('0.0.0.0') | |
net.listen('0.0.0.0', 853, { kind = 'tls' }) | |
net.listen('0.0.0.0', 443, { kind = 'doh' }) | |
net.listen('0.0.0.0', 8453, { kind = 'webmgmt' }) | |
-- To disable DNSSEC validation, uncomment the following line (not recommended) |