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
| Methodologies: | |
| DDD: Domain-Driven Design | |
| EDA: Event-Driven Architecture | |
| TDD: Test-Driven Development | |
| CQRS: Command Query Responsibility Segregation | |
| ES: Event Sourcing | |
| CI: Continuous Integration | |
| CD: Continuous Deployment and Delivery | |
| MS: Microservices | |
| LS: Lambda Architecture |
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 | |
| set -e | |
| while [ "$1" != "" ]; do | |
| case $1 in | |
| -n | --namespace) | |
| NAMESPACE=$2 | |
| shift 2 | |
| ;; | |
| -s | --selector) | |
| SELECTOR=$2 |
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
| { | |
| "version": "0.2.0", | |
| "adapter": "C:\\Program Files\\Git\\bin\\bash.exe", | |
| "adapterArgs": "-c \"%SolutionRootForBash%/kube-debug.sh --selector app.kubernetes.io/name=my-app-name --namespace my-app-namespace\"", | |
| "configurations": [ | |
| { | |
| "name": "dotnet k8s attach", | |
| "type": "coreclr", | |
| "request": "attach", | |
| "processName": "dotnet" |
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 | |
| set -e | |
| # echo "processing params" | |
| while [ "$1" != "" ]; do | |
| case $1 in | |
| -n | --namespace) | |
| NAMESPACE=$2 | |
| shift 2 | |
| ;; | |
| -s | --selector) |
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
| Methodologies: | |
| DDD: Domain-Driven Design | |
| EDA: Event-Driven Architecture | |
| TDD: Test-Driven Development | |
| CQRS: Command Query Responsibility Segregation | |
| ES: Event Sourcing | |
| CI: Continuous Integration | |
| CD: Continuous Deployment | |
| MS: Microservices |
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Attach to Kubernetes", | |
| "type": "coreclr", | |
| "request": "attach", // we are going to attach to the existing pod | |
| "processName": "dotnet", | |
| "sourceFileMap": { | |
| // mapping of source code inside a container to the source code on a host machine |
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
| export interface CommandErrorPayload { | |
| readonly errorMessage: string; | |
| readonly originalError?: any; | |
| } | |
| export class StandardAction<TActionType extends string, TActionPayload> { | |
| type: TActionType; | |
| constructor(readonly payload: TActionPayload) { } | |
| } |
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
| param( | |
| # the selector from your yml file | |
| # selector: | |
| # matchLabels: | |
| # app: myweb | |
| # -Selector app=myweb | |
| [Parameter(Mandatory=$true)][string]$Selector | |
| ) | |
| Write-Host '1. searching pod by selector:' $Selector '...'; |
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 "rxjs/add/operator/debounceTime"; | |
| import "rxjs/add/operator/throttleTime"; | |
| import { TestScheduler } from "jasmine-marbles/src/scheduler"; | |
| import { Observable } from "rxjs/Observable"; | |
| export class MarbleSchedulerInjector | |
| { | |
| static inject(scheduler: TestScheduler, ...methods: (keyof Observable<any> | "all")[]) | |
| { | |
| methods = methods || ["all"]; |
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.Generic; | |
| using System.Linq; | |
| public static class Test | |
| { | |
| static Test() | |
| { | |
| 1d.Pipe(TimeSpan.FromDays, AddHours(3), ToString, ToLower); |
NewerOlder