return function(context)
end
This file contains 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
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"os/signal" | |
"reflect" | |
"strings" | |
"sync" |
This file contains 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
-- @cron */3 * * * * * | |
-- @channels tg1 | |
-- уже существующий тег, показывает в какие каналы по умолчанию должен отправлять уведомления этот скрипт | |
-- если его не указать, то по умолчанию идет отправка во все каналы из конфига | |
-- @escalation 5:slack1 10:slack2,email1 | |
-- ^ ^^ | |
-- на какой по счету итерации надо отправить уведомление в другие каналы | |
-- каждый запуск скрипта, где скрипт подтверждает статус Error увеличивает этот счетчик на 1 |
This file contains 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
#!/usr/bin/env python3 | |
# @raycast.schemaVersion 1 | |
# @raycast.title uuid | |
# @raycast.mode inline | |
# @raycast.author negasus | |
# @raycast.authorURL https://negasus.dev | |
# @raycast.description Generate UUIDv4 and copy it to the clipboard |
This file contains 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
Сервис для работы с книгами | |
Книга имеет одного или несколько авторов. | |
А так же к книге можно прикреплять комментарии. | |
Реализовать АПИ для | |
- создания авторов и книг | |
- получения списка книг по автору/авторам | |
- получение информации о конкретном авторе со списком его книг | |
- получение информации о конкретной книге с ее авторами и комментариями | |
- для комментариев сделать поддержку пагинации | |
- удаление книги / автора |
This file contains 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
function uuid() | |
{ | |
return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', | |
mt_rand(0, 0xffff), mt_rand(0, 0xffff), | |
mt_rand(0, 0xffff), | |
mt_rand(0, 0x0fff) | 0x4000, | |
mt_rand(0, 0x3fff) | 0x8000, | |
mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff) | |
); | |
} |
This file contains 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
FROM tarantool/tarantool:2.x-centos7 | |
ENV TARANTOOL_INSTANCE_NAME=default | |
RUN yum -y update | |
RUN yum install -y sudo | |
RUN sudo curl -L https://tarantool.io/installer.sh | sudo -E bash -s -- --repo-only | |
RUN yum install -y cartridge-cli | |
RUN yum install -y cmake make gcc unzip git |
This file contains 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
------------------- | |
s_1.lua | |
------------------- | |
require('strict').on() | |
vshard = require('vshard') | |
local storage_uuid = 'b271d109-7f1f-4db5-9f0f-625abf9050ca' | |
local cfg = { |
NewerOlder