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
#!/usr/bin/env python3 | |
import configparser | |
import argparse | |
import json | |
from urllib.request import urlopen | |
import os | |
import re | |
version = '1.0.0' |
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
udisksctl loop-setup --file something.img |
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
sudo apt-get install apt-file | |
... | |
apt-file update | |
apt-file search /usr/include/sys/acl.h | |
libacl1-dev: /usr/include/sys/acl.h | |
apt-file list libacl1-dev | |
sudo apt-get install libacl1-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
#!/usr/bin/env bash | |
SOURCE="${BASH_SOURCE[0]}" | |
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | |
TARGET="$(readlink "$SOURCE")" | |
if [[ $TARGET == /* ]]; then | |
echo "SOURCE '$SOURCE' is an absolute symlink to '$TARGET'" | |
SOURCE="$TARGET" | |
else | |
DIR="$( dirname "$SOURCE" )" |
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
location / { | |
expires -1; | |
try_files $uri @prerender; | |
} | |
location @prerender { | |
proxy_set_header X-Prerender-Token YOURTOKEN; |
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
IAM role для билд агентов добавлена в aws-auth configmap для доступа к EKS | |
build agent берет на себя роль и под ней выполняет | |
aws eks update-kubeconfig --region {{ region }} --name {{ cluster_name }} --alias {{ cluster_name }} | |
при обращении к кластеру aws eks get token будет выполнятся с правильной ролью |
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
набрати 466, | |
після фрази «перейти далі - натисніть два» - натискаєте 2 | |
після фрази «Ви в головному меню» чекаєте, поки автовідповідач починає перераховувати меню, і натискаєте 2 | |
чекаєте, поки автовідповідач починає перераховувати пункти меню, натискаєте 9 | |
чекаєте фрази «залишилися питання - натисніть 9», натискаєте 9 | |
Після цього чекайте з'єднання з оператором. |
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
# ... | |
variables: | |
DOCKER_DRIVER: overlay | |
DOCKER_HOST: tcp://docker:2375 | |
DOCKER_TLS_CERTDIR: "" | |
services: | |
- name: docker:20.10.7-dind | |
alias: docker | |
command: ["--tls=false"] | |
# ... |
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
"block_log" : { | |
"title" : "Generic Block", | |
"description" : "A generic format for logs, like cron, that have a date at the start of a block.", | |
"regex" : { | |
"std" : { | |
"pattern" : "^(?<timestamp>\\S{3,8} \\w{3}\\s+\\d{1,2} \\d{2}:\\d{2}:\\d{2} \\w+ \\d{4})(?<body>(?:.|\\n)*)$" | |
} | |
}, | |
"sample" : [ | |
{ |