Skip to content

Instantly share code, notes, and snippets.

View l0kix2's full-sized avatar

Kirill Sibirev l0kix2

View GitHub Profile
@l0kix2
l0kix2 / config-overrides.yaml
Created March 13, 2024 12:06
YTsaurus operator config overrides usage example
apiVersion: v1
kind: ConfigMap
metadata:
name: mysaurus-config-overrides
namespace: mysaurus
data:
clusters-config.json: |
{
clusters = [
{
kubectl logs -ntest3 ms-0 ~
Defaulted container "ytserver" out of: ytserver, prepare-locations (init), postprocess-config (init)
*** Aborted at 1704905352 (Unix time); Try "date -d @1704905352" if you are using GNU date ***
*** Begin codicils ***
{User: root}
*** End codicils ***
***Cannot get backtrace (code=13, message=mmap)****** SIGSEGV (Segmentation violation) (@0x0) received by PID 1 (FID 0xfffef2677867e587 TID 0x4036964700) from PID 0 code SEGV_MAPERR (Address not mapped to object.) ***
ERR no page found read user-mode access
TRAPNO 0xffffffffffffffff
kubectl logs -ntest3 ms-0 ~
Defaulted container "ytserver" out of: ytserver, prepare-locations (init), postprocess-config (init)
*** Aborted at 1704903031 (Unix time); Try "date -d @1704903031" if you are using GNU date ***
*** Begin codicils ***
{User: root}
*** End codicils ***
***Cannot get backtrace (code=13, message=mmap)****** SIGSEGV (Segmentation violation) (@0x0) received by PID 1 (FID 0xfffef2678c0ded2f TID 0x4037097700) from PID 0 code SEGV_MAPERR (Address not mapped to object.) ***
ERR no page found read user-mode access
TRAPNO 0xffffffffffffffff
@l0kix2
l0kix2 / Dockerfile
Last active May 28, 2021 14:20
Yandex Cloud create python Function with locally built dependencies
FROM ubuntu:18.04 as base
RUN apt-get update -qq && apt-get install -y \
build-essential \
libssl-dev zlib1g-dev \
libncurses5-dev libncursesw5-dev \
libreadline-dev libsqlite3-dev \
libgdbm-dev libdb5.3-dev \
libbz2-dev liblzma-dev \
libpq5 libpq-dev \
# coding: utf-8
import json
import random
import sys
SEED = 5
random.seed(SEED)
curl -v -X OPTIONS https://bug.test.yandex.ru/api/ -H Origin:https://yandex.aa
EXAMPLE_DEBIAN_DATE_WITHOUT_TZ = 'Thu, 06 Apr 2017 20:44:53'
EXAMPLE_DEBIAN_DATE_TZ = '+0300'
FORMAT_WITHOUT_TZ = '%a, %d %b %Y %H:%M:%S'
import datetime
import pytz
def parse_debian_date(date_str):
"parse debian format date in naive datetime.datetime in UTC timezone"
date_str_without_tz, tz_piece = date_str[:len(EXAMPLE_DEBIAN_DATE_WITHOUT_TZ)], date_str[-len(EXAMPLE_DEBIAN_DATE_TZ):]
@l0kix2
l0kix2 / avito.css
Last active January 19, 2016 22:24
Avito clean css for print
#ads_ldr_top,
#item .header,
#item .layout-internal,
#item .item-page-navigation,
#item .g_30,
#item .b-catalog-breadcrumbs,
#item .item-subtitle,
#item .js-phone-show__alert,
#item .description__tenure,
@l0kix2
l0kix2 / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@l0kix2
l0kix2 / install
Last active August 29, 2015 14:02
Mysql-python
# ubuntu
sudo apt-get install libmysqlclient-dev
# if conflicts
sudo apt-get install libmysqlclient18=5.6.10-6
pip install mysql-python
# mac os