Примечания
-
Под клиентами подразумеваются программные сущности, использующие другие программные сущности.
-
Этот файл является переводом статьи с сайта medium.com пользователя DeeKey, ссылка в завершении файла.
| ### REINIT | |
| DELETE user | |
| PUT user | |
| { | |
| "mappings": { | |
| "properties": { | |
| "name": { | |
| "type": "text" | |
| }, | |
| "comments": { |
pip3 install pyrogram uvlooppython3 dry_run.pypython3 mark_the_freaks.pypython3 delete_your_messages.pyBucket policy is an access policy available for you to grant anonymous permissions to your Minio resources. Bucket policy uses JSON-based access policy language.
This section presents a few examples of typical use cases for bucket policies. The policies use testbucket strings in the resource value. To test these policies, you need to replace these strings with your bucket name. For more information please read Amazon S3 access policy language
The following example policy grants the s3:GetObject permission to any public anonymous users. This permission allows anyone to read the object data under testbucket, which is useful for when you have publicly readable assets. A typical example is a website assets stored in testbucket.
This logging setup configures Structlog to output pretty logs in development, and JSON log lines in production.
Then, you can use Structlog loggers or standard logging loggers, and they both will be processed by the Structlog pipeline (see the hello() endpoint for reference). That way any log generated by your dependencies will also be processed and enriched, even if they know nothing about Structlog!
Requests are assigned a correlation ID with the asgi-correlation-id middleware (either captured from incoming request or generated on the fly).
All logs are linked to the correlation ID, and to the Datadog trace/span if instrumented.
This data "global to the request" is stored in context vars, and automatically added to all logs produced during the request thanks to Structlog.
You can add to these "global local variables" at any point in an endpoint with `structlog.contextvars.bind_contextvars(custom
| if (ctx.date_birthday != null) { | |
| if (ctx.date_birthday instanceof String) { | |
| def inputFormat = new SimpleDateFormat("yyyy-MM-dd"); | |
| def date = inputFormat.parse(ctx.date_birthday); | |
| Calendar myCal = new GregorianCalendar(); | |
| myCal.setTime(date); | |
| def year = myCal.get(Calendar.YEAR); | |
| def month = myCal.get(Calendar.MONTH); | |
| month = month + 1; |
| #!/bin/bash | |
| date=$(date '+%Y-%m-%d') | |
| docker run -v ./output:/output --cap-add=SYS_ADMIN --cap-add=NET_ADMIN --shm-size=4gb dan83mail/zimit:latest zimit --url "https://clickhouse.com/docs/en/intro" --name clickhouse_$date --workers 16 --useSitemap "https://clickhouse.com/sitemap.xml" --timeout=120 | |
| docker run -v ./output:/output --cap-add=SYS_ADMIN --cap-add=NET_ADMIN --shm-size=4gb dan83mail/zimit:latest zimit --url "https://www.tinybird.co/clickhouse/knowledge-base" --name tinybird_$date --workers 16 --useSitemap "https://www.tinybird.co/sitemap.xml" --timeout=120 | |
| docker run -v ./output:/output --cap-add=SYS_ADMIN --cap-add=NET_ADMIN --shm-size=4gb dan83mail/zimit:latest zimit --url "https://kb.altinity.com/" --name altinity_$date --workers 16 --useSitemap "https://kb.altinity.com/sitemap.xml" --timeout=120 | |