Шпаргалка с командами Docker
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
public class MainViewModel : BaseViewModel | |
{ | |
private CancellationTokenSource cancellation; | |
#region mvvm | |
private string _text; | |
public string Text | |
{ | |
get => _text; | |
set |
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
# docs for more information see the official HPLIP project site here. | |
# https://developers.hp.com/hp-linux-imaging-and-printing | |
# Step 1. Update Fedora Linux | |
# Simply run dnf command: | |
$ sudo dnf upgrade | |
# Step 2. Search for HPLIP software |
Для установки PgAdmin 4 через pip необходимо выполнить команды:
sudo apt-get install python3-pip build-essential python3-dev libssl-dev libffi-dev
sudo pip3 install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v6.15/pip/pgadmin4-6.15-py3-none-any.whl
Для инициализации конфигурации в директории /usr/local/lib/python3.5/dist-packages/pgadmin4/ необходимо создать файл config_local.py:
(https://github.com/sandino/Markdown-Cheatsheet) (перевод, оригинал)
Поиграть с разметкой Markdown можно на демо-странице.
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
from telegram.ext import Updater | |
from telegram.ext import MessageHandler, Filters | |
import wikipedia as wiki | |
# put your toen here | |
BOT_TOKEN= "641238067:AAEB___d1oM4llx6********************" | |
updater= Updater(BOT_TOKEN) #Bot Token is given by BotFather on Telegram while creating bot. | |
def get_wiki(word): |
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
# From .NET Core 3.0 you can use the command: `dotnet new gitignore` to generate a customizable .gitignore file | |
*.swp | |
*.*~ | |
project.lock.json | |
.DS_Store | |
*.pyc | |
# Visual Studio Code | |
.vscode |
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
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
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
# откатываем последний коммит, но не удаляем изменения | |
git reset HEAD~ --soft | |
git add . | |
git stash | |
# переключаемся на нужную ветку | |
git checkout имя-верной-ветки | |
git stash pop | |
git add . | |
git commit -m "тут ваш комментарий" | |
# теперь изменения в нужной ветке |
Markdown - это облегчённый язык разметки, который преобразует текст в структурированный HTML. Следующее руководство поможет вам разобраться, как использовать Markdown.
# Заголовок первого уровня
## Заголовок второго уровня
### Заголовок третьего уровня
#### Заголовок четвёртого уровня
##### Заголовок пятого уровня
NewerOlder