Ch | Hex | Dec | Description |
---|---|---|---|
⌫ | ⎋ |
⎋ |
Esc |
⏎ | ⏎ |
⏎ |
Enter |
⌘ | ⌘ |
⌘ |
Command |
⌥ | ⌥ |
⌥ |
Option |
⌃ | ⌃ |
⌃ |
Control |
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
--- | |
kind: command | |
args: | |
tokens: | |
- joke | |
- fun | |
action: | |
kind: rhai | |
args: | |
script: | |
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
# В общем, на хосте где есть третий питон и доступ к этой монге надо поставить пакеты pymongo и click для скрипта: | |
# | |
# pip3 install click pymongo -U | |
# | |
# Далее кинуть скрипт и проверить что он работает командой --help | |
# | |
# python3 pymongoinfo.py --help | |
# | |
# Принимает он только dsn к монге | |
# |
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
// var dp = new dpLib(); | |
// alert( | |
// "7 in = " + dp.i(7) + " px \n" + | |
// "16 cm = " + dp.cm(16) + " px \n" + | |
// "6 in = " + dp.i2cm(6) + " cm \n" + | |
// "15 cm = " + dp.cm2i(15) + " in \n" | |
// ); | |
function dpLib(debug) { | |
"use strict"; |
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
import random | |
from typing import List | |
from jinja2 import Template | |
SVG_TEMPLATE = Template("""<?xml version="1.0"?> | |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | |
<svg xmlns="http://www.w3.org/2000/svg" width="467" height="462"> | |
{% for y_i, dots in enumerate(dots_data) %}{% for x_i, dot in enumerate(dots) %} | |
<rect x="{{ x_i * w_size }}" |
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 os import path | |
from typing import Any, Callable, Optional | |
from _pytest.fixtures import SubRequest | |
from pytest import fixture | |
ALLURE_ENVIRONMENT_PROPERTIES_FILE = 'environment.properties' | |
ALLUREDIR_OPTION = '--alluredir' | |
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
cache: | |
type: 'files' | |
schedulers: | |
- listener: | |
type: 'rss' | |
params: | |
url: 'https://habr.com/ru/rss/all/all/?fl=ru' | |
transport: | |
type: 'telegram_bot' | |
params: |
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
ENCRYPTED_PASSWORD=$(openssl passwd -crypt secure_password) && \ | |
useradd --create-home \ | |
--groups sudo \ | |
--password ${ENCRYPTED_PASSWORD} \ | |
user1 |
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
# 1 | |
export USERNAME=${USER} | |
# 2 | |
su root | |
# 3 | |
apt update && apt install --yes sudo \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ |
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
// Calc DPI with JS | |
function dpLib(debug) { | |
"use strict"; | |
var div = document.createElement("div"); | |
div.style.width = "1in"; | |
div.style.position = "abolute"; | |
div.style.top = "-100%"; | |
div.style.bottom = "-100%"; | |
document.body.appendChild(div); | |
// |
NewerOlder