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.Collections.Generic; | |
using Google.Apis.Docs; | |
using Google.Apis.Docs.v1; | |
using Google.Apis.Docs.v1.Data; | |
using System.Data.Common; | |
using System.Xml.Linq; | |
using Newtonsoft.Json; | |
using Google.Apis.Auth.OAuth2; | |
using Google.Apis.Util.Store; |
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
/// <summary> | |
/// Rewrite URL API version segment if it exists | |
/// </summary> | |
public class UrlSegmentApiVersionStripMiddleware { | |
private static readonly string DEFAULT_API_VERSION_PREFIX = "v"; | |
private readonly string _apiVersionVersion; | |
private readonly RequestDelegate _next; | |
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 | |
for docker_image_name in "$@" | |
do | |
container_ids=$(docker ps -a | awk '{ print $1,$2 }' | grep $docker_image_name | awk '{print $1 }') | |
if [ ! -z $container_ids ] | |
then | |
echo $container_ids | xargs -I {} docker rm -f {} | |
else | |
echo "No containers found for image \"$docker_image_name\"." |