I hereby claim:
- I am maksim77 on github.
- I am msemochkin (https://keybase.io/msemochkin) on keybase.
- I have a public key whose fingerprint is 0A55 F7A0 B40B FD2C 89CE 6DAD 6EDD AFE5 8594 17E6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from airflow.models import DAG, Variable | |
from airflow.operators import BashOperator | |
from airflow.configuration import conf | |
from datetime import datetime, timedelta | |
import os | |
""" | |
A maintenance workflow that you can deploy into Airflow to periodically clean out the task logs to avoid those getting too big. | |
airflow trigger_dag --conf '{"maxLogAgeInDays":30}' airflow-log-cleanup | |
--conf options: |
package main | |
import ( | |
"context" | |
"crypto/tls" | |
"crypto/x509" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"time" |
package ru.mak_sim.ydb_test; | |
import yandex.cloud.sdk.auth.provider.ApiKeyCredentialProvider; | |
import yandex.cloud.sdk.auth.provider.CredentialProvider; | |
import java.io.IOException; | |
import java.nio.file.Path; | |
public class Main { | |
public static void main(String[] args) throws IOException { |
var start = new Date(); | |
start.setHours(0,0,0,0); | |
var end = new Date(); | |
end.setHours(23,59,59,999); | |
let d = new Draft(); | |
d.insert("## Events " + start.toLocaleDateString(), 0); | |
let cals = Calendar.getAllCalendars(); |
openpgp4fpr:d9cea54ba749bffdca088ec1f0dc0a607daf08d9