- Markdown content for TextBlock or RichTextBlock doesn't render.
- See if cards can be sent without wrapping in message first.
- Convert dynatrace placeholders to template references.
This file contains hidden or 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; | |
| using System.Collections.Generic; | |
| /// <summary> | |
| /// This is really meant to be "the history of a value", but with only a fixed number of versions being held onto before they transition to weak references. | |
| /// An ephemeral stack. | |
| /// </summary> | |
| /// <typeparam name="T"></typeparam> | |
| /// <param name="value"></param> |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Finds all desktop .svg icons and renders them as .ico so wslg can use them, | |
| # then updates the desktop files to point to the .ico files. | |
| # This script assumes there are no colons in any of the paths. | |
| # TODO: Add support for converting /usr/share/icons as well. | |
| set -e | |
| # Check if the 'convert' command from ImageMagick is available. | |
| if ! builtin type -P convert &>/dev/null; then | |
| echo >&2 "< ImageMagick is required to convert the svgs." |
This file contains hidden or 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
| shared_context :chef_recipe do | |
| # This ensures recipes can be tested in isolation. | |
| before :each do | |
| allow_any_instance_of(Chef::Recipe).to receive(:include_recipe) do |recipe, recipe_name| | |
| Chef::Log.debug "Blocking #{recipe_name} from inclusion by #{recipe.cookbook_name}::#{recipe.recipe_name}" | |
| # Ensure recipe is treated as loaded, allowing matchers to work properly. | |
| cookbook_name, recipe_short_name = Chef::Recipe.parse_recipe_name(recipe_name) | |
| recipe.run_context.loaded_recipe(cookbook_name, recipe_short_name) | |
| recipe.run_context.node.loaded_recipe(cookbook_name, recipe_short_name) |
This file contains hidden or 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 static void Main() { | |
| CommandLineArgs args = new CommandLineArgs(Environment.GetCommandLineArgs()); | |
| String infile = args["infile"]; | |
| if (String.IsNullOrEmpty(infile)) { | |
| Console.WriteLine("No input file specified."); | |
| throw new Exception("No input file specified."); | |
| } |
This file contains hidden or 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 namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic | |
| # Synopsis: Statically analyses the codebase for badness. | |
| Add-BuildTask lint -Inputs ${Sources} -Outputs "${PSScriptRoot}/checkstyle.xml" { | |
| Import-Module PSScriptAnalyzer | |
| # Run the linter, producing a list of result objects. | |
| $Results = Invoke-ScriptAnalyzer ` | |
| -Path "${PSScriptRoot}" ` | |
| -CustomRulePath "${PSScriptRoot}/.lint-rules" ` |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| DUC_VERSION=${1} | |
| if [ -z "${DUC_VERSION}" ]; then | |
| echo >&2 "You need to provide a valid release version to package." | |
| exit 1 | |
| fi | |
| if [ ! -f "duc-${DUC_VERSION}.tar.gz" ]; then | |
| RELEASE_BASE=https://github.com/zevv/duc/releases/download |
This file contains hidden or 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
| import com.google.common.collect.Iterables; | |
| import com.google.common.collect.Maps; | |
| public final class IterableUtils { | |
| public static <T> Map<String, Iterable<T>> group(Iterable<T> input, Map<String, Predicate<T>> groupings) { | |
| return Maps.transformValues(groupings, (predicate) -> Iterables.filter(input, predicate)); | |
| } | |
| private IterableUtils() {} |
This file contains hidden or 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
| FROM williamyeh/ansible:alpine3 | |
| RUN apk add --no-cache \ | |
| gcc \ | |
| musl-dev \ | |
| python2-dev | |
| RUN pip install --upgrade \ | |
| pip |
This file contains hidden or 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 -e | |
| CONTAINER_NAME=ansible | |
| function dpsgrep() { | |
| pattern=${1} && shift | |
| docker ps --format="{{ .Names }}" ${*} \ | |
| | grep -q ${pattern} | |
| return ${?} | |
| } |
NewerOlder