Вопрос: Я нравлюсь одному парню в универе, я активно с ним флиртую и старательно поддерживаю его надежды на нашу близость. В результате чего он делает мне курсовые, лабораторные, чинит компьютер и перемещает по моей просьбе тяжелые предметы. Это всё, конечно, хорошо, но мне этого не достаточно. Подскажите, пожалуйста, как мне получить абсолютную власть над человеком, подавить в нём личность и разрушить веру в себя? Ирина.
This file contains 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
def format_filename(s): | |
"""Take a string and return a valid filename constructed from the string. | |
Uses a whitelist approach: any characters not present in valid_chars are | |
removed. Also spaces are replaced with underscores. | |
Note: this method may produce invalid filenames such as ``, `.` or `..` | |
When I use this method I prepend a date string like '2009_01_15_19_46_32_' | |
and append a file extension like '.txt', so I avoid the potential of using | |
an invalid filename. | |
This file contains 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 ctypes | |
import ctypes.wintypes | |
import argparse | |
import socket | |
import struct | |
import os | |
INVALID_HANDLE_VALUE = ctypes.c_void_p(-1).value |
This file contains 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
./configure \ | |
--extra-version="yarmak" \ | |
--enable-gpl \ | |
--disable-stripping \ | |
--enable-avresample \ | |
--enable-avisynth \ | |
--enable-gnutls \ | |
--enable-ladspa \ | |
--enable-libass \ | |
--enable-libbluray \ |
This file contains 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 mock | |
# Open mocked text file in text mode | |
with mock.patch('__main__.open', mock.mock_open(read_data='aaaa')) as m: | |
with open('foo', 'r') as h: | |
print(type(h.read())) | |
# Open mocked text file in binary mode | |
with mock.patch('__main__.open', mock.mock_open(read_data='aaaa')) as m: | |
with open('foo', 'rb') as h: |
This file contains 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 asyncio | |
import socket | |
async def handle_echo(reader, writer): | |
addr = writer.get_extra_info('peername') | |
while True: | |
data = await reader.read(4096) |
This file contains 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
[Unit] | |
Description=Daemon which provides TLS client policy for Postfix via socketmap, according to domain MTA-STS policy | |
After=network.target | |
[Service] | |
Type=simple | |
User=nobody | |
ExecStart=/usr/local/bin/mta-sts-daemon | |
Restart=always |
This file contains 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 | |
def match_net(addr, net): | |
import socket | |
import string | |
def detect_af(addr): | |
return socket.getaddrinfo(addr, | |
None, | |
socket.AF_UNSPEC, |
This file contains 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 | |
import hashlib | |
import base64 | |
import sys | |
import os | |
SALT_LEN=16 | |
def ssha(login, passwd, salt=None): |
This file contains 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
# /etc/systemd/system/https-dns-proxy.service | |
[Unit] | |
Description=DNS over HTTPS proxy | |
After=network.target | |
Before=nss-lookup.target | |
[Install] | |
WantedBy=multi-user.target | |
[Service] |