Skip to content

Instantly share code, notes, and snippets.

@marrobi
marrobi / azuredeploy.json
Created April 10, 2017 12:26
DevTest Lab Template
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"newLabName": {
"type": "string",
"defaultValue": "MyDevTestLab",
"metadata": {
"description": "The name of the new lab instance to be created"
}
@marrobi
marrobi / installAdobeFlex.ps1
Last active April 10, 2017 09:47
installAdobeFlex.ps1
Function Get-RedirectedUrl
{
Param (
[Parameter(Mandatory=$true)]
[String]$URL
)
$urlRegex = '<a href="(?<Url>[^"]+)"'
$content = (New-Object System.Net.WebClient).DownloadString($url )
@marrobi
marrobi / artifact.json
Created April 10, 2017 09:41
Adobe Flex SDK artifact.json
{
"$schema": "https://raw.githubusercontent.com/Azure/azure-devtestlab/master/schemas/2016-11-28/dtlArtifacts.json",
"title": "Adobe Flex SDK",
"description": "Installs Adobe Flex SDK, EULA: http://www.adobe.com/products/eulas/#flex_sdk",
"tags": [
"Windows",
"Adobe",
"Flex"
],
"iconUri": "https://github.com/Azure/azure-devtestlab/raw/master/Artifacts/windows-vscode/flex%20icon.png",
@marrobi
marrobi / InstallDocker.ps1
Created April 6, 2017 09:39
Install Docker
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Package -Name docker -ProviderName DockerMsftProvider -Force
@marrobi
marrobi / artifact.json
Created April 6, 2017 09:32
Windows Docker Artifact.json
{
"$schema": "https://raw.githubusercontent.com/Azure/azure-devtestlab/master/schemas/2016-11-28/dtlArtifacts.json",
"title": "Docker",
"description": "Installs Docker on Windows Server. Requires Windows Server 2016.",
"publisher": "Marcus Robinson",
"tags": [
"Windows",
"Docker"
],
"iconUri": "https://raw.githubusercontent.com/Azure/azure-devtestlab/master/Artifacts/windows-docker/docker-logo.png",
@marrobi
marrobi / executesql.ps1
Created March 9, 2017 15:58
Execute SQL on PostgreSQL
Param
(
[string]$ServerHostName,
[int]$ServerPort = 5432,
[string]$User,
[string]$Password,
[string]$DBName,
[string]$SQLFilePath = "",
[string]$SQLCmd = ""
@marrobi
marrobi / changedb.ps1
Created March 9, 2017 11:30
Replace DB connections
Param
(
[string]$ServerHostName,
[string]$User,
[string]$Password,
[string]$DBName,
[string]$GeoServerDataDir
)
@marrobi
marrobi / dockerextension.json
Created March 8, 2017 13:44
Docker Extension
{
"type": "extensions",
"name": "DockerExtension",
"tags": {
"displayName": "DockerExtension"
},
"apiVersion": "2016-03-30",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Compute/virtualMachines/', variables('vmName'))]",
@marrobi
marrobi / dockerfile
Created March 8, 2017 13:35
Docker File
FROM winsent/geoserver:2.10
COPY ./web.xml /opt/geoserver/webapps/geoserver/WEB-INF/web.xml
@marrobi
marrobi / customscript.sh
Created March 8, 2017 11:26
CusotmScript with auto mount
{
"name": "CustomScript",
"type": "extensions",
"location": "[resourceGroup().location]",
"apiVersion": "2016-03-30",
"dependsOn": [
"[resourceId('Microsoft.Compute/virtualMachines', variables('vmName'))]"
],
"tags": {
"displayName": "CustomScript"