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
{% set name = "requests-html" %} | |
{% set version = "0.10.0" %} | |
package: | |
name: "{{ name|lower }}" | |
version: "{{ version }}" | |
source: | |
url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz" | |
sha256: 7e929ecfed95fb1d0994bb368295d6d7c4d06b03fcb900c33d7d0b17e6003947 |
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
" Это должно быть первым, потому что это меняет другие параметры в качестве побочного эффекта. | |
set nocompatible "Отключает обратную совместимость с Vi | |
filetype plugin indent on "Включает определение типа файла, загрузку... | |
"... соответствующих ему плагинов и файлов отступов | |
set encoding=utf-8 "Ставит кодировку UTF-8 | |
set tabstop=2 | |
set shiftwidth=2 | |
set smarttab | |
set expandtab | |
" Автоматический отступ при добавлении фигурной скобки и т.д. |
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/bash | |
sudo apt update | |
sudo apt install -y gcc vim curl wget g++ libcairo2-dev libjpeg-turbo8-dev libpng-dev \ | |
libtool-bin libossp-uuid-dev libavcodec-dev libavutil-dev libswscale-dev build-essential \ | |
libpango1.0-dev libssh2-1-dev libvncserver-dev libtelnet-dev \ | |
libssl-dev libvorbis-dev libwebp-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
// BatteryStatusResponse is returned by the BatteryStatus function. | |
type BatteryStatusResponse struct { | |
Health string | |
Percentage int | |
Plugged string | |
Status string | |
Temperature float64 | |
} |
Добавление функции автозаполнения на ноутбуку Jupyter Шаг 1: Откройте подсказку Anaconda и запустите следующие команды 1)
pip install jupyter_contrib_nbextensions
pip install jupyter_nbextensions_configurator
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 selenium import webdriver | |
import time | |
# import random | |
# from fake_useragent import UserAgent | |
driver = webdriver.Chrome(executable_path="/home/zzzi/python/Selenium/Chromedriver/chromedriver") | |
try: | |
driver.get("https://2ip.ru/browser-update/") | |
time.sleep(8) | |
driver.get("https://2ip.ru/check-port/?port=8088") |
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
package main | |
import ( | |
"flag" | |
"log" | |
"os" | |
"syscall" | |
"unsafe" | |
"path/filepath" | |
"bufio" |
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 | |
TEXT_RESET='\e[0m' | |
TEXT_YELLOW='\e[0;33m' | |
TEXT_RED_B='\e[1;31m' | |
sudo apt-get update -y | |
echo -e $TEXT_YELLOW | |
echo 'Обновление APT завершено...' | |
echo -e $TEXT_RESET |