Skip to content

Instantly share code, notes, and snippets.

View maksim77's full-sized avatar
:octocat:

Maksim Syomochkin maksim77

:octocat:
View GitHub Profile

openpgp4fpr:d9cea54ba749bffdca088ec1f0dc0a607daf08d9

@maksim77
maksim77 / script.js
Last active December 30, 2022 18:19
Generate obsidian daily events
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();
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 {
package main
import (
"context"
"crypto/tls"
"crypto/x509"
"fmt"
"io/ioutil"
"log"
"time"
@maksim77
maksim77 / clean.py
Created February 1, 2019 13:54
clean.py
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:

Keybase proof

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: