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 seleniumwire import webdriver | |
def take_image(self, link: str): | |
options = webdriver.ChromeOptions() | |
options.add_argument('--headless') | |
options.add_argument('window-size=1280x720') | |
options.add_argument('--no-sandbox') | |
options.add_argument('--disable-dev-shm-usage') | |
try: |
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
/** | |
@description Auto-adding connections in linkedin | |
@instruction Open url https://www.linkedin.com/search/results/people/ and type your query. | |
When you see the result, you should paste the code (below) into the console of your browser and press enter. | |
This bot can add connections automatically, and it also uses page pagination. | |
When you reach the weekly limit, the bot will stop. | |
*/ | |
const currentLanguage = document.querySelector('html').lang | |
const languageMap = { |
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 json | |
from pprint import pprint | |
import requests | |
import re | |
from bs4 import BeautifulSoup | |
url = 'http://mkr.udau.edu.ua/time-table/group?type=1' | |
# Параметры для получения данных | |
data = { |
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
############ WordPress #################### | |
# Disable logging for favicon and robots.txt | |
location = /favicon.ico { | |
try_files /favicon.ico @empty; | |
access_log off; | |
log_not_found off; | |
expires max; | |
} |
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
<?php | |
$finder = PhpCsFixer\Finder::create() | |
->exclude(['public', 'var', 'vendor', 'bin']) | |
->notPath('*') | |
->in(__DIR__); | |
return PhpCsFixer\Config::create() | |
->setRiskyAllowed(true) | |
->setRules([ |
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 reducer, { initialState } from './reducer' | |
import * as t from './actionTypes' | |
describe('session reducer', () => { | |
it('should return the initial state', () => { | |
expect(reducer(undefined, {})).toEqual(initialState) | |
}) | |
it('LOG_IN_REQUEST', () => { | |
const action = { // РАБ СИСТЕМЫ // САМ РАБ |
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
# Add user with host 172.18.0.1 then connect to database | |
# 172.18.0.1 - if localhost connection | |
version: '3.7' | |
services: | |
mariadb: | |
image: 'bitnami/mariadb:latest' | |
environment: | |
- MARIADB_ROOT_PASSWORD=root | |
volumes: | |
- 'mariadb_data:/bitnami' |
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 IS AN AUTO-GENERATED FILE ** | |
# | |
# Default Kibana configuration for docker target | |
server.name: kibana | |
server.host: "0" | |
elasticsearch.hosts: [ "http://elasticsearch:9200" ] | |
xpack.monitoring.ui.container.elasticsearch.enabled: true |
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
Здравствуйте. | |
Один из IP-адресов вашего виртуального сервера заблокирован. Автоматическая система мониторинга зафиксировала аномальный входящий трафик на IP-адрес 212.109.193.210 в течение последних 10 минут: средняя скорость 242.1 M бит в секунду со средним размером пакета 1207 байт. Такая нагрузка нарушает работу сети и создает проблемы другим клиентам дата-центра. | |
Основные источники трафика: | |
lb-140-82-118-6-ams.github.com (140.82.118.6) TCP 3.5M байт с размером пакета 1415 байт на 49942 порт. | |
lb-140-82-118-6-ams.github.com (140.82.118.6) TCP 3.3M байт с размером пакета 1415 байт на 49938 порт. | |
lb-140-82-118-6-ams.github.com (140.82.118.6) TCP 1.8M байт с размером пакета 1405 байт на 49940 порт. | |
mail.shared-24.smartape.ru (188.127.230.8) UDP 984000 байт с размером пакета 41 байт на 27015 порт. | |
ns505468.ip-192-99-101.net (192.99.101.31) UDP 984000 байт с размером пакета 41 байт на 27015 порт. | |
ns505468.ip-192-99-101.net (192.99.101.31) UDP 984000 байт с размером пакета 41 байт на 27015 порт. | |
mail.shared-24.sm |
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
createAxiosResponseInterceptor() { | |
const interceptor = axios.interceptors.response.use( | |
response => response, | |
error => { | |
// Reject promise if usual error | |
if (errorResponse.status !== 401) { | |
return Promise.reject(error); | |
} | |
/* |
NewerOlder