Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
2022/07/23 11:01:49.628167 info SELECT value FROM `system`.`build_options` where name='VERSION_INTEGER'
2022/07/23 11:01:49.633300 info SELECT * FROM system.disks;
2022/07/23 11:01:49.644866 info SELECT max(toInt64(bytes_on_disk * 1.02)) AS max_file_size FROM system.parts
2022/07/23 11:01:49.652279 info SELECT count() AS is_macros_exists FROM system.tables WHERE database='system' AND table='macros'
2022/07/23 11:01:49.656479 info SELECT * FROM system.macros
2022/07/23 11:01:49.661356 debug /tmp/.clickhouse-backup-metadata.cache.S3 not found, load 0 elements
2022/07/23 11:01:49.661720 info DEBUG: Request s3/ListObjectsV2 Details:
---[ REQUEST POST-SIGN ]-----------------------------
GET /?delimiter=%2F&list-type=2&max-keys=1000&prefix= HTTP/1.1
### Keybase proof
I hereby claim:
* I am k0t3n on github.
* I am kotenko (https://keybase.io/kotenko) on keybase.
* I have a public key ASAXl56M0oHVwSLbzKWpFBCAZGG4Ba9mrCEeZwm7C60nYgo
To claim this, I am signing this object:
{
"swagger": "2.0",
"info": {
"title": "Stepic DRF API",
"version": "v1"
},
"host": "127.0.0.1:8000",
"schemes": [
"http"
],
@k0t3n
k0t3n / schema.json
Last active March 7, 2021 18:52
Stepik DRF (2 week) OpenAPI schema
{
"swagger": "2.0",
"info": {
"title": "Stepic DRF API",
"version": "v1"
},
"host": "127.0.0.1:8000",
"schemes": [
"http"
],
@k0t3n
k0t3n / main.py
Last active September 7, 2019 10:46
class ActionPossibilityObject:
"""
Object to implement action possibilities and additional result information
"""
def __init__(self, possibility, message=None):
"""
Initialize method
:type possibility: bool
:type message: str
@k0t3n
k0t3n / models.py
Created February 19, 2018 08:33
models.py
class Stats(models.Model):
TYPES = (
('buy', 'покупка'),
('sell', 'продажа'),
)
type = models.CharField(
max_length=5,
choices=TYPES,
verbose_name='тип'
@k0t3n
k0t3n / bot.py
Created September 12, 2017 10:29
bot.py
import telebot
from telebot import types
import json
token = "389637297:AAGqkIYOinZnJ1ydo7ut_648SoYxNYxnV50"
bot = telebot.TeleBot(token)
@bot.message_handler(content_types=["text", "location"])
### Keybase proof
I hereby claim:
* I am k0t3n on github.
* I am k0t3n (https://keybase.io/k0t3n) on keybase.
* I have a public key ASDImY6pPvXST-Mq0sfzk-T8v5Ujq9O6dbDIJiBFczbXvgo
To claim this, I am signing this object: