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
# Docker installation script for Ubuntu 16.04 (Xenial) on Azure | |
# Usage: execute sudo -i, first. | |
# wget -q -O - "$@" https://gist.github.com/catataw/63044e79c3cfa20198408130ba52e110/raw/ --no-cache | sh | |
# After running the script reboot and check whether docker is running. | |
DOCKER_RESULT=1 | |
while [ $DOCKER_RESULT -ne 0 ]; do | |
echo "#################################################" | |
echo " Updating System" |
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
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"eventHubName": { | |
"type": "string" | |
} | |
}, | |
"variables": { | |
"resourceLocation": "[resourceGroup().location]", |
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
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"databaseName": { | |
"type": "string", | |
"maxLength": 10, | |
"metadata": { | |
"description": "A short identifier to distinguish machines in this membership" | |
} |
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
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"loadBalancer" : { | |
"type": "string" | |
} | |
}, | |
"variables": { | |
}, |
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
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"prefix": { | |
"type": "string", | |
"maxLength": 20, | |
"metadata": { | |
"description": "A short identifier to distinguish resources for this deployment" | |
} |
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 azure = Microsoft.WindowsAzure.Storage.CloudStorageAccount.Parse("UseDevelopmentStorage=true"); | |
var blob = azure.CreateCloudBlobClient(); | |
var exceptions = blob.GetContainerReference("login-exceptions"); | |
exceptions.CreateIfNotExists(); |
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: '3' | |
services: | |
agent: | |
image: ethereumex/vsts-linux-agent | |
hostname: ${HOST_NAME}-d | |
restart: always | |
environment: | |
- VSTS_ACCOUNT=${VSTS_ACCOUNT} | |
- VSTS_TOKEN=${VSTS_TOKEN} | |
- VSTS_AGENT=${HOST_NAME}-agent |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAprw3sCsgCFooSma5AGjckh/ZhpoOIFWO0bF9tdZQfu5OsSqxQZhQmpcx3W0D1LSzVo1BNjScrJ+/xXCszkLwTbbbf6b72gt1YeA45cV8ikqZpzXSifPginMp5As3JEPWbBvKcCAU8DpICSsXJvAeFC+4BLXbrHQmTWiD5bJQl7BcujtyQtHaXQ2dyZWehiEKvgKHFZIgrGUZdMM2qR7FhtC7GXkG1LplFnK1rVDUdq5nq7JTlu7Nh93eZ+QRxaBGnJeIcCndEfEBw9MSPOecD7oDsYg8ndZw6gzdPxFPRUIjyllPDtuOFP/UwcahHU1UksqxUgN+CbdgpSuYNPSHNQ== dev-machine |
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
public interface UserRepository { | |
UserId save(User u); | |
User getUserById(UserId id); | |
void deleteUser(User u); | |
} | |
public UserRepositoryTests { | |
UserRepository users; | |
UserOracle oracle; | |