Skip to content

Instantly share code, notes, and snippets.

View platinumthinker's full-sized avatar
👷‍♂️
hardworking

PlatinumThinker platinumthinker

👷‍♂️
hardworking
  • Russia, Novosibirsk
View GitHub Profile
@platinumthinker
platinumthinker / README.md
Last active May 16, 2019 13:19
Upgrade thingsboard from 2.1 to 2.3.1

Upgrading insruction

  1. Creating cassandra snapshoot:

kubectl --namespace=thingsboard exec -it cassandra-0 -- nodetool snapshot thingsboard

  1. Deleting all k8s resources exclude cassandra:

kubectl --namespace=thingsboard delete statefulsets tb

#!/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
#
@platinumthinker
platinumthinker / tables_without_index.sql
Last active December 30, 2019 03:55
Slow postgress queries
SELECT
relname,
seq_scan - idx_scan AS too_much_seq,
CASE
WHEN
seq_scan - coalesce(idx_scan, 0) > 0
THEN
'Missing Index?'
ELSE
'OK'
This file has been truncated, but you can view the full file.
Каталог вирусов, определяемых и обезвреживаемых Dr. Web 4.00
Файл описания вирусов, определяемых и обезвреживаемых Dr. Web 4.00
В предлагаемом каталоге для каждого вируса приведена информация об его
свойствах. Символьное представление этих свойств полностью повторяет
классификационный код, предложенный Н.Н. Безруковым и Е.В. Касперским.
В качестве основных опознавателей вируса будет указываться его имя и
длина.