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
export LC_ALL=da_DK.utf8 |
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
<!-- use Ant macrodef for to simplify building similar WAR files for test and production --> | |
<macrodef name="build-war"> | |
<attribute name="wartype" /> | |
<sequential> | |
<mkdir dir="${dist}/@{wartype}"/> | |
<war warfile="${dist}/@{wartype}/${ant.project.name}.war" webxml="etc/web-@{wartype}.xml"> | |
<classes dir="${path-to-classes}"/> | |
<mappedresources> |
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 webdriver = require('selenium-webdriver'), | |
By = webdriver.By, | |
until = webdriver.until, | |
logging = webdriver.logging; | |
const fs = require('fs'); | |
const path = require('path'); | |
// Take a screenshot. | |
// state contains the Selenium driver instance and the config with the default path. |
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 webdriver = require('selenium-webdriver'), | |
By = webdriver.By, | |
until = webdriver.until, | |
logging = webdriver.logging; | |
// Selenium's promise module provides logging to report every instance of unsynchronized code running through the promise manager | |
logging.installConsoleHandler(); | |
logging.getLogger('promise.ControlFlow').setLevel(logging.Level.ALL); |
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: '2' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.2 | |
volumes: | |
- esdata:/usr/share/elasticsearch/data | |
ports: | |
- "9200:9200" |
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
$apiVersion = "2018-02-01" | |
$resourceGroup = "sandbox-martinj" | |
$rname = "sandbox-GraphQLApi"; | |
Invoke-AzureRmResourceAction ` | |
-ApiVersion $apiVersion ` | |
-ResourceGroupName $resourceGroup ` | |
-ResourceType "Microsoft.Web/sites/config/appsettings" ` | |
-ResourceName $rname ` | |
-Action list ` |
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
# Install the latest release of the Azure item and project templates: | |
# | |
# See [Azure Functions Templates wiki](https://github.com/Azure/azure-functions-templates/wiki/Using-the-templates-directly-via-dotnet-new) | |
# See [Issue 721](https://github.com/Azure/azure-functions-templates/issues/721) | |
$feed = Invoke-WebRequest https://functionscdn.azureedge.net/public/cli-feed-v3.json | ConvertFrom-Json | |
$release = $feed.tags.v2.release | |
foreach ($t in "itemTemplates", "projectTemplates") { | |
$uri = $feed.releases."$release"."$t" |
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
#r "paket: | |
nuget Fake.DotNet.Cli | |
nuget Fake.IO.FileSystem | |
nuget Fake.Core.Target | |
nuget Fake.DotNet.MSBuild | |
nuget Fake.DotNet.NuGet | |
nuget Fake.DotNet.Testing.XUnit2 //" | |
#load ".fake/build.fsx/intellisense.fsx" | |
open System.IO |
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
# `git status` in PowerShell shows untracked files is a dark red that is hard to read on the blue background. | |
# Change it to high-contrast red: | |
git config --global color.status.untracked "bold red" |
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
# Get-AzureRmWebApp does not work correctly when running under the Azure DevOps build server (October 2018). | |
# Here is a workaround to get the DefaultHostName | |
# Place your own name here: | |
$appName = "myspecialappname-dev" | |
$webApp = Get-AzureRmWebApp -ResourceGroupName $ResourceGroupName -Name $appName -ErrorAction Stop | |
if (!$webApp) { Write-Error ("WebApp not found: {0} (Resource Group: {1})" -f $appName,$ResourceGroupName) } | |
# DefaultHostName property does not work in the Azure DevOps (VSTS) build server, see: https://github.com/Azure/azure-powershell/issues/5760 | |
# The HostNames property works, so pick one of the hostnames instead of DefaultHostName: |