- Creating cassandra snapshoot:
kubectl --namespace=thingsboard exec -it cassandra-0 -- nodetool snapshot thingsboard
- Deleting all k8s resources exclude cassandra:
kubectl --namespace=thingsboard delete statefulsets tb
Каталог вирусов, определяемых и обезвреживаемых Dr. Web 4.00 | |
Файл описания вирусов, определяемых и обезвреживаемых Dr. Web 4.00 | |
В предлагаемом каталоге для каждого вируса приведена информация об его | |
свойствах. Символьное представление этих свойств полностью повторяет | |
классификационный код, предложенный Н.Н. Безруковым и Е.В. Касперским. | |
В качестве основных опознавателей вируса будет указываться его имя и | |
длина. |
SELECT | |
relname, | |
seq_scan - idx_scan AS too_much_seq, | |
CASE | |
WHEN | |
seq_scan - coalesce(idx_scan, 0) > 0 | |
THEN | |
'Missing Index?' | |
ELSE | |
'OK' |
#!/bin/bash | |
# | |
# Copyright © 2016-2019 The Thingsboard Authors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import re | |
import socketserver | |
import http.server | |
from http import HTTPStatus | |
regex = re.compile(r"^(\S+)\s*(\S+)$") | |
class Handler(http.server.SimpleHTTPRequestHandler): |
#!/usr/bin/env escript | |
-include_lib("kernel/include/inet.hrl"). | |
-include_lib("kernel/include/inet_sctp.hrl"). | |
main([Protocol, IP, Port, Len, Cnt]) -> | |
bench(list_to_atom(Protocol), inet:parse_address(IP), | |
list_to_integer(Port), list_to_integer(Len), list_to_integer(Cnt)); | |
main(_) -> | |
io:format("invalid arguments~n~n"), |
[Unit] | |
Description=CAPWAP Datapath element | |
[Service] | |
ExecStart=/usr/local/bin/capwap-dp -c /etc/ergw-capwap-node/capwap-dp.conf | |
ExecStartPost=/bin/ip link set tap0 up | |
ExecStartPost=/bin/ip addr add 192.168.85.1/24 dev tap0 | |
Restart=always | |
Type=simple | |
;User=thinker |
export KUBE_TOKEN=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)
curl -sSk -H "Authorization: Bearer $KUBE_TOKEN" https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_PORT_443_TCP_PORT/api/v1/namespaces/$POD_NAMESPACE/
eval $(minikube docker-env)
Run in console:
dd bs=1M count=256 if=/dev/zero of=test conv=fdatasync oflag=dsync
Disk | SATA Gb/s | Speed with oflag Mb/s | Speep without oflag Mb/s |
---|---|---|---|
Intel SSD 540S | 1.5 | 43.4 | 106 |
Intel SSD 530 ( SSDSC2BW12 ) | 1.5 | 41 | 310 |