Команда | Что делает | На чьей стороне |
---|---|---|
gpg --full-generate-key |
Генерируем ключи | Получатель файла |
gpg --armor --export {KEY_ID} > {KEY_ID}.pub.gpg |
Выгрузка ключа для передачи | Получатель файла |
gpg --import {KEY_ID}.pub.gpg |
Импорт ключа для шифрования | Владелец файла |
gpg -r {KEY_ID} -e {FILE} |
Шифрование файла | Владелец файла |
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
// Нужно открыть devtools в хроме или firefox, и скопировать туда полностью содержание файла | |
// Вспомогательная пауза для 429 | |
const pause = delay => new Promise(resolve => setTimeout(resolve, delay)); | |
// Забираем список на кого мы подписаны из ручки | |
const subscriptionReq = await fetch('https://rutube.ru/api/v1/subscription/cards/detail?limit=1000&offset=0', { credentials: 'include' }); | |
const { results } = await subscriptionReq.json(); | |
// Бежим подряд без параллелизма, рутуб всё равно ограничивает кол-во запросов с клиента, поэтому смысла ускорять нет, не даст быстрее |
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 { createEffect, createEvent, Effect, Event } from 'effector'; | |
export interface ContinuousEffect<Params, Done, Payload = Done, Fail = Error> extends Effect<Params, Done, Fail> { | |
readonly progress: Event<{params: Params; result: Payload}> | |
readonly progressData: Event<Payload> | |
} | |
export function createContinuousEffect<Params, Done, Payload = Done, Fail = Error>( | |
handler: ((params: Params) => Done | Promise<Done> | Iterator<Payload, Done> | AsyncIterator<Payload, Done>) | |
) { |
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
const args = process.argv.slice(2); | |
const cell = { | |
block: args[0], | |
mod: { | |
name: args[1], | |
val: args[2], | |
} | |
}; |
- https://blog.juliobiason.net/thoughts/things-i-learnt-the-hard-way/ — куча полезного (перевод на хабре)
- https://reactjs.org/docs/hooks-intro.html — Classes confuse both people and machines
- https://reactjs.org/docs/higher-order-components.html — HoC
- https://learn.javascript.ru/modules — Модули
- https://habr.com/ru/post/181536/ — Путь JS модуля
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
node_modules | |
/ui-kit | |
/button | |
/button.css | |
/[email protected] | |
vs | |
node_modules | |
/ui-kit |
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
interface NestedWalker { | |
protected ctx: { path: string, cell: BemEntityName }; | |
protected naming: BemNamingEntity; | |
public isLeaf(path): boolean; | |
public isDir(path): boolean; ← should we go deeper? | |
}; | |
/* | |
/lib ← level, library |
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
'use strict'; | |
const filtr = require('filterable'); | |
module.exports = toJSFunction; | |
function toJSFunction(conditions) { | |
const keys = []; | |
const includes = ($v, v) => typeof v === 'string' ? | |
$v.toLowerCase().indexOf(v.toLowerCase()) !== -1 : | |
v.some((_v) => $v.toLowerCase() === _v.toLowerCase()); |
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
let REFLECTION_ID = 0; | |
const ReflectionFlag = { | |
Private: 1, | |
Protected: 2, | |
Public: 4, | |
Static: 8, | |
Exported: 16, | |
ExportAssignment: 32, | |
External: 64, |
NewerOlder