yc managed-clickhouse cluster help
This file contains hidden or 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
| # Начало работы с интерфейсом командной строки | |
| # Install: https://cloud.yandex.ru/docs/cli/quickstart#install | |
| # Init profile: https://cloud.yandex.ru/docs/cli/quickstart#initialize | |
| yc config list # check | |
| # Подключиться к виртуальной машине Linux по SSH | |
| # Создание пары ключей SSH: https://cloud.yandex.ru/docs/compute/operations/vm-connect/ssh#creating-ssh-keys | |
| ls ~/.ssh/id_rsa.pub # check |
This file contains hidden or 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
| // killerDateTableRu | |
| // функция killerDateTableRu создает таблицу с датами. Дополняет ее различными полезными для Time Intelligence столбцами. | |
| // В случае, если четвертый аргумент принимает Дни 1, то функция добавляет столбец с выходными. | |
| // Оригинальная идея philbritton https://gist.github.com/philbritton/9677152 | |
| // пример: killerDateTableRu(#date(2017, 2, 1), #date(2017, 2, 4), "RU-ru", 1) | |
| // Описание полей результирующей таблицы: | |
| // =================================================== | |
| // Date - дата | |
| // Year - год |
This file contains hidden or 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
| 1. Открываем Sublime Text -> Tools -> Build System -> New Build System | |
| 2. Вставляем в открывшийся файл следующие строки, чтобы получилось вот так: | |
| { | |
| "cmd": ["python3", "-i", "-u", "$file"], | |
| "file_regex": "^[ ]File \"(...?)\", line ([0-9]*)", | |
| "selector": "source.python" | |
| } | |
| 3. Сохраняем файл с названием python3.sublime-build и не меняем путь предложенный редактором |
This file contains hidden or 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
| # Step 1: Create a CalendarGenerator() function and paste the contents below into the Advanced Editor | |
| let CreateDateTable = (StartDate as date, EndDate as date, optional Culture as nullable text) as table => | |
| let | |
| DayCount = Duration.Days(Duration.From(EndDate - StartDate)), | |
| Source = List.Dates(StartDate,DayCount,#duration(1,0,0,0)), | |
| TableFromList = Table.FromList(Source, Splitter.SplitByNothing()), | |
| ChangedType = Table.TransformColumnTypes(TableFromList,{{"Column1", type date}}), | |
| RenamedColumns = Table.RenameColumns(ChangedType,{{"Column1", "Date"}}), | |
| InsertYear = Table.AddColumn(RenamedColumns, "Year", each Date.Year([Date])), | |
| InsertQuarter = Table.AddColumn(InsertYear, "Quarter Number", each Date.QuarterOfYear([Date])), |
This file contains hidden or 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
| #! /bin/env python | |
| # | |
| # USAGE | |
| # $ python ad_utils.py "My Group Name" | |
| # | |
| # Author: | |
| # Trinh Nguyen | |
| # dangtrinhnt@gmail.com | |
| # www.dangtrinh.com |