Skip to content

Instantly share code, notes, and snippets.

View ericmaino's full-sized avatar

Eric Maino ericmaino

  • Microsoft
  • Seattle, WA
View GitHub Profile
@ericmaino
ericmaino / install-docker-ubuntu1604.sh
Last active June 7, 2017 22:30
Docker installation script for Ubuntu 16.04 (Xenial)
# 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"
{
"$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]",
{
"$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"
}
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"loadBalancer" : {
"type": "string"
}
},
"variables": {
},
{
"$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"
}
@ericmaino
ericmaino / BrokenTools.cs
Created August 5, 2017 22:05
AzureMystery
var azure = Microsoft.WindowsAzure.Storage.CloudStorageAccount.Parse("UseDevelopmentStorage=true");
var blob = azure.CreateCloudBlobClient();
var exceptions = blob.GetContainerReference("login-exceptions");
exceptions.CreateIfNotExists();
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
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAprw3sCsgCFooSma5AGjckh/ZhpoOIFWO0bF9tdZQfu5OsSqxQZhQmpcx3W0D1LSzVo1BNjScrJ+/xXCszkLwTbbbf6b72gt1YeA45cV8ikqZpzXSifPginMp5As3JEPWbBvKcCAU8DpICSsXJvAeFC+4BLXbrHQmTWiD5bJQl7BcujtyQtHaXQ2dyZWehiEKvgKHFZIgrGUZdMM2qR7FhtC7GXkG1LplFnK1rVDUdq5nq7JTlu7Nh93eZ+QRxaBGnJeIcCndEfEBw9MSPOecD7oDsYg8ndZw6gzdPxFPRUIjyllPDtuOFP/UwcahHU1UksqxUgN+CbdgpSuYNPSHNQ== dev-machine
public interface UserRepository {
UserId save(User u);
User getUserById(UserId id);
void deleteUser(User u);
}
public UserRepositoryTests {
UserRepository users;
UserOracle oracle;