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
#!/usr/bin/env bash | |
REPO_URL='http://registry.example.com:5000/v2' | |
function docker-repo-catalog () { | |
curl ${REPO_URL}/_catalog 2>/dev/null \ | |
-H 'Accept: application/vnd.docker.distribution.manifest.v2+json' | | |
jq -j ".repositories" | |
} |
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
30 17 * * 1,2,3,4,5 cd /root && ./worklog_7day_statistics.sh --alert_slack 2>&1 | /usr/bin/logger -t worklog_7day_statistics |
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
# Какую операцию нужно поставить вместо <<operation>>, чтобы тест прошел? | |
def call_unless(a, b) | |
unless a.nil? <<operation>> b.nil? | |
:then | |
else | |
:else | |
end | |
end |
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
ConfigureAccessFromUserGit () { | |
if ! getent passwd git >/dev/null 2>&1; then | |
adduser git | |
su - -s /bin/bash git <<SU | |
mkdir .ssh | |
chmod 700 .ssh | |
touch .ssh/authorized_keys | |
chmod 600 .ssh/authorized_keys | |
SU |
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
"19df3a4355c44479a0f47a9557f17270" | |
34389763808663562296386380833253061232 | |
"19df3a4355c44479a0f47a9557f17270" | |
"1j528y38k9lp57znw45ipnpm8" | |
"4cifrZNdDP6U5qaHZBGQnw" | |
"aXnuk4UfTZaDWnPEbg729eJSd" | |
"F00119DF3A4355C44479A0F47A9557F17270" | |
"hello world! \nsdfasd \nasdf adsf adsfas df asdf asdfadsf asdf dsv dfvdf vs dfvs fvs fvf " | |
"68656c6c6f20776f726c6421200a736466617364200a6173646620616473662061647366617320646620617364662061736466616473662061736466206473762064667664662076732064667673206676732066766620" | |
134066924850456263226002610823472315195755895538175650465665490401217181528305704879248544682572954165876967214096961682849075560083288808177085324632235450912211952490312091713875114464485397955114557427312160 |
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
#!/usr/bin/env bash | |
HILL1_UPDATE_HOST_SSHT_ADDR="ssh -t user@demo1" | |
HILL2_UPDATE_HOST_SSHT_ADDR="ssh -t user@demo2" | |
HILL3_UPDATE_HOST_SSHT_ADDR="ssh -t user@ci ssh -t user@demo3" | |
HILLS="HILL1 HILL2 HILL3" | |
TARGET_HOSTS="host1 host2 host3" | |
_SSHTargetHostCompletion () { | |
options_1=${HILLS} |
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
# language: ru | |
Функционал: Добавление ставок в билет | |
Предыстория: | |
Допустим кассир работает в своём приложении | |
И кассир вводит стоимость ставки равную "150" | |
Сценарий: Кассир и игрок смотрят на окна для задания ставок | |
Если кассир и игрок смотрят на свои окна для задания ставок |
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 | |
set -e | |
#set -x | |
Main (){ | |
Allow "commiter1@gmail.com" | |
Allow "commiter2@gmail.com" | |
ReadCommiters |
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
... | |
<py:match path="div[@class="query"]"> | |
<div py:attrs="select('@*')">${select('*|comment()|text()')}</div> | |
<script language="JavaScript"> | |
//<![CDATA[ | |
var columns = []; | |
function getTotal(row_class, self) { | |
var total = 0; | |
if ($(self).find('th'+row_class).length) { |
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
class NumberConverter | |
def to_roman(number) | |
numbers = { | |
1000 => {roman: 'M', prev: 100}, | |
500 => {roman: 'D', prev: 100}, | |
100 => {roman: 'C', prev: 10}, | |
50 => {roman: 'L', prev: 10}, | |
10 => {roman: 'X', prev: 1}, | |
5 => {roman: 'V', prev: 1}, |
NewerOlder