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
openapi: 3.0.0 | |
servers: | |
- description: Тестовый сервис | |
url: https://pre.tsd.po-polochkam.ru | |
info: | |
title: Сервис обработки данных с ТСД | |
description: | | |
Сервис предназначен для извлечения данных о товарах из фотографий экранов |
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/sh | |
if ! docker images -q yq | grep '' 1>/dev/null | |
then | |
docker build --pull -t yq - <<EOF | |
FROM alpine | |
RUN apk add --no-cache py2-pip jq && pip install -q yq | |
ENTRYPOINT ["yq"] |
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
# tgz <chdir> [<tar-name> <directory or file> ...|<single file or directory>] | |
# dump <database name> | |
# sync <ssh destination> | |
# purge <days to keep> <gnu find conditions> |
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
version: "2" | |
services: | |
# implementing hostname-based routing of HTTP queries coming thru localhost:80 | |
# see https://hub.docker.com/r/jwilder/nginx-proxy/ | |
http-proxy: | |
image: jwilder/nginx-proxy | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: |
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
# ====================== /etc/postfix/main.cf ========================= | |
# ... | |
catcher_destination_recipient_limit = 1 | |
virtual_mailbox_domains = reply.domain.com | |
virtual_transport = catcher | |
virtual_mailbox_maps = | |
virtual_alias_maps = | |
recipient_delimiter = + |
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 | |
// export GITHUB_API_TOKEN=051e00e0fd07b55f661da8c3068befa06518227e | |
NL=" | |
" | |
NL2="$NL$NL" | |
HELP="$NL2 Usage: $0 vendor/repo feature_branch 15 master$NL Make sure you export GITHUB_API_TOKEN environment variable$NL2" |
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
define(['lodash'], function (_) { | |
'use strict'; | |
return { | |
resolve: { | |
departmentResource: ['resourceManager', function (resources) { | |
return resources.getResource('department'); | |
}], | |
department: ['departmentResource', '$stateParams', function (resource, $stateParams) { | |
return resource.read({id: $stateParams.id}).$promise; |
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 | |
API_TOKEN="~" | |
NL=" | |
" | |
NL2="$NL$NL" | |
HELP="$NL2 Usage: $0 vendor/repo feature_branch 15$NL" | |
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 | |
MAIL_LOG=${LOG_DIR:-/var/log}/mails.log | |
echo '== [' $(date +%Y-%m-%d_%H-%M-%S) '] ==' >> $MAIL_LOG | |
perl -MMIME::QuotedPrint -pe '$_=MIME::QuotedPrint::decode($_);' | tee -a $MAIL_LOG > /dev/null |