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 socket | |
import os | |
print("Connecting...") | |
if os.path.exists("/tmp/python_unix_sockets_example"): | |
client = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) | |
client.connect("/tmp/python_unix_sockets_example") | |
print("Ready.") | |
print("Ctrl-C to quit.") |
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
import re | |
# 1 Пароль: только латиница, наличие строчной и заглавной буквы, цифры и минимум 12 символов | |
re.compile(r"^(?=.*[A-z0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9]).{12,}$") | |
# 2 Номер телефона КЗ формата | |
re.compile(r"^\+?(?:7|8)\s?\(?(?:7|6)\d{2}\)?\s?\d{3}\s?\d{2}\s?\d{2}$") |
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
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
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
Правила чата https://t.me/sport_api | Sport Api | |
1. Условия действия правил чата | |
1.1 Пользователи, заходя в чат, принимают на себя добровольные обязательства беспрекословно соблюдать нижеперечисленные правила. | |
1.2 Незнание правил не освобождает от ответственности за их нарушения, убедительно рекомендуем с ними ознакомиться. | |
2. В чате разрешается | |
2.1 Общаться, общаться и ещё раз общаться, а также совершать любые другие действия не нарушающие п3. |
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
docker ps -a --format "table {{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}" | |
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" |
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
#include <stdio.h> | |
#define MESSAGE_QUANTITY 10; | |
struct LEDMessage{ | |
char led_code; | |
char value; | |
unsigned int hash_sum; | |
}; |
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
#include <stdio.h> | |
#define MESSAGE_QUANTITY 10; | |
struct LEDMessage{ | |
unsigned char led_code; | |
unsigned char value; | |
unsigned int hash_sum; | |
}; |
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
// 1 вариант разбить на 3 группы. Далее во 2 группе | |
// удалить ненужные символы методом replaceAll пример: 'world"'.replaceAll('"', "") | |
// ^(.*?) (added.*?\".*?\").*?(IP.*)$ | |
// | |
// 2 вариант разбить на 4 группы. Группы 2 и 3 конкатенировать. | |
// ^(.*?) (added.*?)\\?\"(.*?)\\?\".*?(IP.*)$ | |
// | |
// 3 вариант перед обработкой удалить не нужные символы методом replaceAll и применить регулярку | |
// ^(.*?) (added.*?)\(.*?(IP.*)$ |
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
python main.py --target-dir="С:\Users\ПК\Downloads\site\public_html" | |
python main.py --target-dir="С:\\Users\\ПК\\Downloads\\site\\public_html" |
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
import { Component, OnInit } from '@angular/core'; | |
import {ModalDismissReasons, NgbModal} from "@ng-bootstrap/ng-bootstrap"; | |
import {InternetService} from "../../../../../service/common/internet/internet.service"; | |
import {environment} from "../../../../../../../environments/environment"; | |
import {ServerPanelService} from "../../server-panel.service"; | |
import {IServer} from "../../server-panel.service"; | |
interface IAlert { | |
type: string; |