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 base64 import b64encode | |
from time import time | |
import os | |
pid = os.getpid() | |
if pid == 1: # для поддержки запуска в контейнерах | |
import socket | |
hostname = socket.gethostname() | |
pid = ord(hostname[0]) + ord(hostname[-1]) |
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
#!/bin/bash | |
set -euE | |
echo "$0 $* [$$] START" >&2 | |
declare DIR="${1:-.}" | |
declare REMOVE="${2:-no}" | |
at_least_one_output_exists() { |
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
#!/bin/bash | |
set -euE | |
SUCCESS="\\033[1;32m" | |
HEADER="\\033[1;34m" | |
FAILURE="\\033[1;31m" | |
NORMAL="\\033[0;39m" | |
check() { |
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 python | |
""" Скрипт сбора текстовой информации из брифингов МО РФ в унифицированный CSV """ | |
# coding: utf-8 | |
import os, re, csv, logging | |
from pathlib import Path | |
from urllib.parse import urlparse | |
import html2text, requests | |
from bs4 import BeautifulSoup |
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
#!/bin/bash | |
set -euE | |
echo "$0 $@ [$$] START" >&2 | |
if [ "${1:-}" == '--help' ]; then | |
echo "Info: $0 - утилита для синхронизации незакоммиченных изменений" | |
echo "Usage: [action=push|pull|once] $0 [CONFIG|<server> <directory> <interval>]" | |
echo "Example: $0 10.20.140.333 /home/xxx/git/yyy/ 300" |
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
<Root> | |
<DefaultMacro> | |
<Major></Major> | |
<Description> | |
Click Loop. Press button and go drink a tea. Search, Skip dialogues etc. Break is mode change. | |
</Description> | |
<Comment>ClickLoop v4</Comment> | |
<GUIOption> | |
<RepeatType>0</RepeatType> | |
</GUIOption> |
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
#!/bin/bash | |
set -euE | |
# echo "$0 $@ [$$] START" >&2 | |
if [ "${1:-}" == '--help' ]; then | |
echo "Info: logger.sh - пишет дату перед каждой строчкой пришедшей на stdin" | |
echo "Usage: my_command.sh 2>&1 | ./logger.sh" | |
echo "Example: logger --help | ./logger.sh" |
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
Посмотрите метод Алекса Остервальдера, у него были крупные, покрытые толстыми венами, | |
и также очень неестественного серовато-голубоватого оттенка руки. | |
Эксель правильно понимает тип данных в верхнем меню, но если бы у меня сегодня, | |
как сказать… семейная драма | |
Эксель понял, что поверхность крыш покатая и какая-то осклизлая, и ищет решение, | |
от которого ему будет хорошо | |
У нас очень мало предпринимателей, потому что это попытка обмануть государство |
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
static void print_skb_stuff(const struct sk_buff *skb) | |
{ | |
struct tcphdr _tcph; | |
const struct tcphdr *tcph; | |
tcph = skb_header_pointer(skb, ip_hdrlen(skb), | |
sizeof(_tcph), &_tcph); | |
printk("syn=%u ack=%u psh=%u fin=%u seq=%u ack_seq=%u skb->len %u csum=%x\n", | |
tcph->syn, |
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
cpu: | |
- model: intel core i3 8100 | |
- freq: 3600MHz | |
- cores: 4 | |
- L3 cache: 6mb | |
mother board: MSI H310M PRO-VH | |
memory: | |
- ddr4 | |
- freq: 2400MHz | |
- size: 1x8gb |
NewerOlder