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
| resource "local_file" "myfile" { | |
| filename = "Readme.md" | |
| content = "# Hello from Terraform sample!" | |
| } |
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
| choco feature enable -n allowGlobalConfirmation | |
| cinst Chocolatey | |
| cinst azcopy | |
| cinst azure-cli | |
| cinst azurepowershell | |
| cinst sql-server-express | |
| cinst sql-server-management-studio | |
| cinst powerbi | |
| cinst sqlsentryplanexplorer | |
| cinst curl |
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
| name: Build and Deploy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| name: Deploy |
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
| # Invoke using following syntax into IE: | |
| # http://boxstarter.org/package/url?https://gist.githubusercontent.com/lucamilan/7b3f1c53ea66f943c6899777fd7baf55/raw/b7167b7bc0a573944b3b4324538c9762babe0b1a/ml2021-boxstarter.ps1 | |
| try { | |
| # Boxstarter options | |
| $Boxstarter.RebootOk = $true | |
| $Boxstarter.NoPassword = $false # Is this a machine with no logon password? | |
| $Boxstarter.AutoLogin = $true | |
| # --- TEMPORARILY DISABLE --- # |
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
| div#main.container | |
| div.jumbotron | |
| h1.text-center | |
| a#left(href="#") | |
| i.fa.fa-chevron-left | |
| span | |
| span#month | |
| span | |
| span#year |
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 class Foo | |
| { | |
| private CancellationTokenSource _cts; | |
| public Foo() | |
| { | |
| this._cts = new CancellationTokenSource(); | |
| } | |
| public void StartExecution() |
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; | |
| namespace StronglyTypedPipelines | |
| { | |
| public class LoopStep<INPUT,OUTPUT> : IPipelineStep<IEnumerable<INPUT>, IEnumerable<OUTPUT>> | |
| { | |
| private IPipelineStep<INPUT, OUTPUT> _internalStep; | |
| public LoopStep(IPipelineStep<INPUT, OUTPUT> internalStep) |
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; | |
| namespace StronglyTypedPipelines | |
| { | |
| public abstract class BasePipelineStep<INPUT, OUTPUT> : IPipelineStep<INPUT, OUTPUT> | |
| { | |
| public event Action<INPUT> OnInput; | |
| public event Action<OUTPUT> OnOutput; | |
| // note need for descendant types to implement this, not Process() |
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; | |
| namespace StronglyTypedPipelines | |
| { | |
| /// <summary> | |
| /// Base type for individual pipeline steps. | |
| /// Descendants of this type map an input value to an output value. | |
| /// The input and output types can differ. | |
| /// </summary> |
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
| # remove dangling images | |
| docker rmi -f $(docker images -f dangling=true -q) | |
| # remove dangling volumes | |
| docker volume rm $(docker volume ls -qf dangling=true) |