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
#!/bin/bash | |
usage() { | |
echo " | |
Usage: wti [-h?] [-l LOGIN] ISSUE... | |
wti = \"(W)hat (T)he (I)ssue?\". Script tries to get description of the specified | |
ISSUE(es) from jira. For each ISSUE in list script will ouput the line in | |
the following format: ISSUE_ID — ISSUE_DESC |
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
(function() { | |
var statusPriorites = { | |
"На тестирование": 1, | |
"Включить в деплой": 2, | |
"Открыт": 3, | |
"Ожидает допостановки": 4, | |
"В деплое": 5, | |
"Закрыт": 6 | |
}; | |
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
./configure --with-libdir=/lib/i386-linux-gnu \ | |
--disable-all \ | |
--with-pear \ | |
--disable-cgi \ | |
--enable-fpm \ | |
--with-curl \ | |
--disable-dom \ | |
--enable-ftp \ | |
--with-gettext \ | |
--with-iconv \ |
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
sudo locale-gen en_US en_US.UTF-8 en_US.UTF-8 | |
sudo dpkg-reconfigure locales |
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
/** | |
* Реализовать класс для работы через некоторое API | |
* c помощью socket'ов. У класса должен быть один | |
* публичный метод, которому на вход будет поступать | |
* строка запроса. Метод же в ответ должен возращать | |
* Promise, который должен быть зарезолвлен | |
* (или зареджектен, в зависимости от ответа), | |
* как только будет получен ответ от API. | |
*/ | |
export default class ApiSocket { |
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
{ | |
"parserOptions": { | |
"ecmaVersion": 6 | |
}, | |
"plugins": [], | |
"extends": [ | |
"eslint:recommended" | |
], | |
"rules": { | |
"comma-spacing": ["warn"], |
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
openssl genrsa -out localhost.key 2048 | |
openssl req -new -x509 -key localhost.key -out localhost.cert -days 3650 -subj /CN=localhost |
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
[ | |
{ | |
"id": "2gua.rainbow-brackets", | |
"name": "rainbow-brackets", | |
"publisher": "2gua", | |
"version": "0.0.6" | |
}, | |
{ | |
"id": "alexkrechik.cucumberautocomplete", | |
"name": "cucumberautocomplete", |
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
/** | |
* Format size in bytes in a human-readable way | |
* Examples: | |
* - humanReadableBytes(9708) → "9.48 KB" | |
* - humanReadableBytes(9708098213) → "9.04 GB" | |
* @param bytes Amount in bytes | |
* @return Formatted price | |
*/ | |
function humanReadableSize(bytes: number): string { | |
const names: string[] = ['B', 'KB', 'MB', 'GB', 'TB', 'PB']; |
OlderNewer