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); | |
| } | |
| /* |
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 requests | |
| from bs4 import BeautifulSoup | |
| resp = requests.get("http://static.feed.rbc.ru/rbc/logical/footer/news.rss") | |
| soup = BeautifulSoup(resp.content) | |
| items = soup.findAll('item') | |
| for item in items: | |
| print(item.title.text.replace("<![CDATA[", "").replace("]]>", "")) |
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
| version: '2' | |
| services: | |
| djangoapp: | |
| container_name: djangoapp_python | |
| build: | |
| context: . | |
| dockerfile: docker/djangoapp/Dockerfile | |
| command: gunicorn gaz.wsgi:application --bind 0.0.0.0:8000 | |
| restart: always |
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
| App theme: Material Arc Dark [https://plugins.jetbrains.com/plugin/8006-material-theme-ui/] | |
| Code theme: Monokai Sublime Text 3 [http://color-themes.com/?view=theme&id=563a1a7680b4acf11273ae94] | |
| Font: Source Code Pro | |
| Plugins: | |
| - CodeGlance | |
| - .env | |
| Settings: | |
| - Password: In KeePass |
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
| // Version 1.0+ | |
| export const leaflet_russian = () => { | |
| L.drawLocal = { | |
| draw: { | |
| toolbar: { | |
| actions: { | |
| title: 'Прекратить рисование',//'Cancel drawing', | |
| text: 'Отмена' | |
| }, | |
| finish: { |
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
| axios.interceptors.response.use( | |
| response => response, | |
| error => { | |
| const originalRequest = error.config; | |
| // EXPIRED TOKEN | |
| if (error.response.status === 401 && error.response.data.code === "token_not_valid") { | |
| originalRequest._retry = true; | |
| store.dispatch('AUTH_REFRESH_TOKEN', { |
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
| #~ | |
| let a = { | |
| meta: { | |
| requiresAuth: true, | |
| userAuth: true, | |
| adminAuth: 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
| <?php | |
| $arr = [ | |
| [ | |
| 'cat' = > [ | |
| 'id' => 0, | |
| 'name' => 'Cat1' | |
| ], | |
| 'posts':[ | |
| [ | |
| 'id': 1, |