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
| https://gist.github.com/hermanbanken/96f0ff298c162a522ddbba44cad31081 |
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
| #in unix system | |
| find -maxdepth 1 -type d -printf '%f\n' | tee result.txt |
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
| {"lastUpload":"2020-06-06T16:33:31.985Z","extensionVersion":"v3.4.3"} |
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
| For test regexp - https://regex101.com/ | |
| #JS phone number | |
| \+7\s\(\d{3}\)\s\d{3}-\d{2}-\d{2} |
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
| 1) | |
| sudo apt install git gcc cmake libpcre3 libpcre3-dev zlib1g zlib1g-dev openssl libssl-dev | |
| 2) | |
| wget https://nginx.org/download/nginx-<VERSION>.tar.gz | |
| tar zxvf nginx-<VERSION>.tar.gz | |
| 3) | |
| git clone https://github.com/google/ngx_brotli.git | |
| cd ngx_brotli && git submodule update --init |
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
| 1)Ищем канал BotFather | |
| 2)Даём ему команду /newbot (Создает нового бота) | |
| 3)Даём человеко-читаемое имя боту (Вася, Петя, Оповещалка и.т.д) | |
| 4)Даём машино-читаемое имя боту, на конце обязательно должно быть слово bot (notification_bot или NotiBot) | |
| 5)Если предыдущие шаги прошли успешно то будет получен токен для работы с новым ботом по API (сохраняем его и никому не показываем) | |
| 6)Проверяем, что наш бот зарегестрирован в системе, переходим в браузер и формируем такой адрес: | |
| https://api.telegram.org/botТОКЕН/getMe | |
| В ответе будет JSON с описанием параметров бота (Значит всё хорошо) | |
| 7)В телеграме в нашем боте пишем команду /start это запустит бота в работу, а дальше пишем тестовое сообщение, например "Hello" | |
| 8)В браузере переходим по адресу: |
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
| find . -type d -empty -delete |
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
| class Swipe { | |
| constructor (element) { | |
| this.xDown = null | |
| this.yDown = null | |
| this.element = typeof (element) === 'string' ? document.querySelector(element) : element | |
| this.element.addEventListener('touchstart', (evt) => { | |
| this.xDown = evt.touches[0].clientX | |
| this.yDown = evt.touches[0].clientY | |
| }) | |
| } |
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
| #Переключение на канал бета версий | |
| sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/seedutil enroll DeveloperSeed | |
| #Переключение на канал стабильных версий | |
| sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/seedutil unenroll |
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
| Enter commands in console from administrator | |
| #Enable Hyper-V | |
| bcdedit /set hypervisorlaunchtype auto | |
| #restart pc | |
| #Disable Hyper-V | |
| bcdedit /set hypervisorlaunchtype off | |
| #restart pc |