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
[CmdletBinding()] | |
param ( | |
[Parameter(Position = 0)] | |
[String] | |
$Command | |
) | |
Write-Host "It started" | |
if (Get-Service 'Docker' -ErrorAction SilentlyContinue) { | |
Write-Host "Checking Docker" | |
if ((Get-Service Docker).Status -ne 'Running') { Start-Service Docker } |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Graph { | |
public class Vertex { | |
public string Value { get; } | |
public List<Vertex> AdjacentVertices { get; } | |
public Vertex(string value) { |
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 apt-get update | |
sudo apt-get install -y wget curl ca-certificates curl apt-transport-https lsb-release gnupg build-essential git docker.io docker-compose | |
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb | |
sudo dpkg -i packages-microsoft-prod.deb | |
# Add Repos | |
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg |
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 myIsPalindrome(string){ | |
let reversed = string.split("").reverse().join(""); | |
return string === reversed ? true : false; | |
} |
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 | |
echo "It worked!" |
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
# Copyright (c) 1993-2009 Microsoft Corp. | |
# | |
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows. | |
# | |
# This file contains the mappings of IP addresses to host names. Each | |
# entry should be kept on an individual line. The IP address should | |
# be placed in the first column followed by the corresponding host name. | |
# The IP address and the host name should be separated by at least one | |
# space. | |
# |
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 run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=SuperCoolPass123" -p 1636:1433 --name sqlserver --hostname sqlserver -d mcr.microsoft.com/mssql/server:2019-latest | |
4ef2e5e0c9c91b4f1e86ef807262d0f639b10ae7364c9c9cce0996e3dc28d8db |
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 run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=SuperCoolPass123" -p 1635:1433 -d mcr.microsoft.com/mssql/server:2019-latest | |
Unable to find image 'mcr.microsoft.com/mssql/server:2019-latest' locally | |
2019-latest: Pulling from mssql/server | |
171857c49d0f: Pull complete | |
419640447d26: Pull complete | |
61e52f862619: Pull complete | |
e7083eff87ee: Pull complete | |
8b5eb8c165f6: Pull complete | |
b469c4d6160e: Pull complete | |
ec9a85cf10f9: Pull complete |
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
trigger: | |
- master | |
stages: | |
- stage: BackupTests | |
displayName: Test Database Backups | |
pool: | |
vmImage: 'Ubuntu-18.04' | |
jobs: |
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
$ .\build.ps1 | |
[+] Building 0.2s (8/8) FINISHED | |
=> [internal] load .dockerignore 0.0s | |
=> => transferring context: 2B 0.0s | |
=> [internal] load build definition from Dockerfile 0.1s | |
=> => transferring dockerfile: 981B 0.0s | |
=> [internal] load metadata for mcr.microsoft.com/mssql/server:2019-CU5-ubuntu-18.04 0.1s | |
=> [internal] load build context 0.0s | |
=> => transferring context: 46B 0.0s | |
=> [1/3] FROM mcr.microsoft.com/mssql/server:2019-CU5-ubuntu-18.04@sha256:a4c896f11c73fd6eecaab1b96eb256c6bc0bdc 0.0s |