之前在这里研究过的用iptables配置跨网段的端口转发
Assume we have the following network environments:
- Device:
- eth0 (
192.168.6.59
): for external access - enx000ec6a490c5 (
192.168.1.2
): for ip camera
- eth0 (
- IP Camera:
192.168.1.10
- PC:
192.168.6.2
# https://forum.mikrotik.com/viewtopic.php?t=132657 | |
/ipv6 dhcp-server option | |
add code=23 name=recursivens6 value=0xfd000000000000000000000000000001 | |
/ipv6 dhcp-server | |
add dhcp-option=recursivens6 interface=bridge lease-time=30m name=dhcp6 | |
/ipv6 pool | |
add name=ULA-pool6 prefix=fd00::/64 prefix-length=64 |
''' | |
Script to archive Slack messages from a channel list. | |
You have to create a Slack Bot and invite him to private channels. | |
View https://github.com/docmarionum1/slack-archive-bot for how to configure your account. | |
Then provide the bot token to this script with the list of channels. | |
''' | |
TOKEN='xoxb-xxxxx-xxxxxx-xxxxxxxxxxx' | |
channels = { |
之前在这里研究过的用iptables配置跨网段的端口转发
Assume we have the following network environments:
192.168.6.59
): for external access192.168.1.2
): for ip camera192.168.1.10
192.168.6.2
rbac: | |
create: true | |
podSecurityPolicy: | |
enabled: false | |
imagePullSecrets: | |
# - name: "image-pull-secret" | |
## Define serviceAccount names for components. Defaults to component's fully qualified name. |
# disable sleep | |
sudo pmset -b sleep 0; sudo pmset -b disablesleep 1 | |
# re-enable sleep | |
sudo pmset -b sleep 5; sudo pmset -b disablesleep 0 |
CC = gcc | |
RM = rm -f | |
INSTRUMENT_FOR_PROMETHEUS := false | |
ifeq ($(INSTRUMENT_FOR_PROMETHEUS),true) | |
CFLAGS = -Wall -DINSTRUMENT_FOR_PROMETHEUS | |
LIBS = -lbcm2835 -lprom -lpromhttp -lmicrohttpd | |
else | |
CFLAGS = -Wall |
The following is taken from a brilliant answer on unix.se. Posting it here for personal reference. The question was:
${var//pattern/replacement}
is using zsh wildcard patterns for pattern
, the same ones as used for filename generation aka globbing which are a superset of the sh
wildcard patterns. The syntax is also affected by the kshglob
and extendedglob
options. The ${var//pattern/replacement}
comes from the Korn shell initially.
I'd recommend enabling extendedglob
(set -o extendedglob
in your ~/.zshrc
) which gives you the most features (more so than standard EREs) at the expense of some backward incompatibility in some corner cases.
You'll find it documented at info zsh 'filename generation'
.
By default, K3S will run with flannel as the CNI and use custom directories to store CNI plugin binaries and config files(You can inspect the kubelet args K3S uses via journalctl -u k3s|grep cni-conf-dir
).
So you need to configure that properly When deploying Multus CNI.
For example given the official Multus manifests in https://github.com/intel/multus-cni/blob/36f2fd64e0965e639a0f1d17ab754f0130951aba/images/multus-daemonset.yml
, the following changes are needed:
volumes:
- name: cni