This file contains hidden or 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
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: mysaurus-config-overrides | |
| namespace: mysaurus | |
| data: | |
| clusters-config.json: | | |
| { | |
| clusters = [ | |
| { |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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 |
This file contains hidden or 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 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 \ |
This file contains hidden or 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
| # coding: utf-8 | |
| import json | |
| import random | |
| import sys | |
| SEED = 5 | |
| random.seed(SEED) |
This file contains hidden or 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
| curl -v -X OPTIONS https://bug.test.yandex.ru/api/ -H Origin:https://yandex.aa |
This file contains hidden or 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
| 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):] |
This file contains hidden or 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
| #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, |
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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
| # ubuntu | |
| sudo apt-get install libmysqlclient-dev | |
| # if conflicts | |
| sudo apt-get install libmysqlclient18=5.6.10-6 | |
| pip install mysql-python | |
| # mac os |
NewerOlder