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.Concurrent; | |
| using System.Linq; | |
| using System.Reflection; | |
| using LanguageExt; | |
| using Newtonsoft.Json; | |
| using Newtonsoft.Json.Linq; | |
| public class OptionJsonConverter : JsonConverter | |
| { |
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 | |
| set -e | |
| # | |
| # Invoke this script; table-to-tsv <database> <schema> <table> -U sa -P 'P455word!!!' -S localhost | |
| # | |
| # The output will be written to stdout, redirecting to where you need your tsv to go. Make sure `bcp` | |
| # is in your path, in the docker images it can be found in /opt/mssql-tools/bin | |
| # |
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 | |
| set -e | |
| # | |
| # Invoke this script; dump-to-csv <database> <schema> <table> -U sa -P 'P455word!!!' -S localhost | |
| # | |
| # The output will be written to stdout, redirecting to where you need your csv to go. Make sure `bcp` | |
| # is in your path, in the docker images it can be found in /opt/mssql-tools/bin | |
| # |
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 | |
| wfss__help() { | |
| printf '%s\n'\ | |
| 'wait-for-sql-server - Tries to connect to sql server otherwise fails ' \ | |
| ' ' \ | |
| 'Usage: ' \ | |
| ' wait-for-sql-server [options] -- <sqlcmd options> ' \ | |
| ' wait-for-sql-server <sqlcmd options> ' \ |
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
| // This work is licensed under a Creative Commons Attribution 4.0 International License | |
| // If you find a bug or some issue you can find me (and the orginal of this file) at https://gist.github.com/AndreSteenveld | |
| using System; | |
| using System.Text.Json; | |
| using Json = System.Text.Json; | |
| using Xunit; | |
| using Tuple = System.Tuple; | |
| namespace AndreSteenveld.Test | |
| { |
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 | |
| cf__help(){ | |
| printf '%s\n' \ | |
| 'compose-files - Helper script to gather docker-compose files ' \ | |
| ' ' \ | |
| 'Usage: ' \ | |
| ' compose-files [options --] [presets] ' \ | |
| ' ' \ |
OlderNewer