С самого выхода Космической одиссеи Стенли Кубрика люди мечтали
иметь компьютер, с которым можно было бы общаться так же, как с
другим человеком. Прошло уже почти полвека с момента выхода сей
культовой картины, а технологии лишь недавно позволили людям
приблизиться к технологиям воображаемого будущего. И хотя космические
корабли всё ещё слабо бороздят Большой театр просторы Вселенной,
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
awful.key({ modkey, "Control" }, "c", | |
function (c) c.border_width = c.border_width > 0 and 0 or beautiful.border_width end, | |
{description = "toggle border", group = "client"}) |
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
! 3/15/2017, 10:20:32 AM https://vk.com/feed | |
vk.com##.post_views | |
! 3/15/2017, 10:22:13 AM https://vk.com/feed | |
vk.com##._link.post_like_link | |
! 3/15/2017, 10:24:02 AM https://vk.com/feed | |
vk.com##._link.post_reply_link | |
! 3/15/2017, 10:32:58 AM https://vk.com/feed |
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 | |
from xml.dom import minidom | |
from employees.models import Employee | |
def add_attr(employee, dom, attr_name): | |
attr = dom.getElementsByTagName(attr_name) | |
employee[attr_name] = attr[0].childNodes[0].data if attr and attr[0].childNodes else '' | |
def parse(file): |
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
#!/bin/bash | |
# sends ip to all devices in local network | |
PORT=3001 | |
C_IP=$(ifconfig wlan0 | grep -oe 'addr:192.168.[[:digit:]]*' | cut -d. -f 3 ) | |
COMPS=$(nmap 192.168.$C_IP.1/24 | grep "scan report" | grep -v raspberrypi | grep -oe '(192.168.[[:digit:]]*.[[:digit:]]*' | cut -d. -f4 ) | |
for i in ${COMPS[@]} | |
do | |
echo "ip of pi is $(hostname -I)" | netcat "192.168.$C_IP.$i" "$PORT" | |
done |
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
// https://www.scribd.com/doc/70541177/Chop-Suey-Sheet-Music for example | |
$("span.a").css("color", "black"); | |
$("img.absimg").css("opacity", 1); | |
$("div.page_blur_promo").remove(); | |
$("div.between_page_module").remove(); | |
$("div.text_layer").css("text-shadow",""); | |
$("div.page_blur_promo_overlay").remove(); |
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 | |
# Как юзать | |
# python3 vksis-testing.py файл_с_вопросами.txt | |
import sys | |
import os | |
from random import choice | |
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 os | |
import sys | |
import random | |
import time | |
SD = b'S' | |
ED = b'E' | |
RING_SIZE = 5 |
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
# Сколько вопросов в каждом файле | |
$ for i in *.txt; do echo " $(grep -c "Q:" "$i") tests in $i"; done | |
46 tests in ATM, ISDN, Frame Relay, FDDI.txt | |
67 tests in common.txt | |
23 tests in Ethernet.txt | |
24 tests in ISO HDLC&X.25.txt | |
19 tests in ISO high&transp.txt | |
29 tests in OSI_ISO model.txt | |
21 tests in stack-ipx_spx.txt | |
119 tests in stack-tcp_ip.txt |
Var 18 S -> C 700 Double segment
N | C-S | SN | AN | FLAGS | DATA |
---|---|---|---|---|---|
1 | –> | 0 | SYN | 0 | |
2 | <– | 5000 | 1 | SYN, ACK | 0 |
3 | –> | 1 | 5001 | ACK | 0 |
4 | <– | 5001 | 1 | ACK | 200 |