Skip to content

Instantly share code, notes, and snippets.

Ha Doan hadoan

Block or report user

Report or block hadoan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View get-secret-eck
kubectl get secret your-cluster-name-es-elastic-user -o=jsonpath='{.data.elastic}' | base64 --decode; echo
View filebeat-k8s.yaml
apiVersion: v1
kind: ConfigMap
name: filebeat-config
namespace: default
k8s-app: filebeat
filebeat.yml: |-
hadoan / kibana.yaml
Created Mar 21, 2020
Kibana deploymen
View kibana.yaml
kind: Kibana
name: kibana-name
version: 7.6.1
count: 1
name: your-cluster-name
View elasticsearch.yaml
kind: Elasticsearch
name: your-cluster-name
version: 7.6.1
- name: default
count: 1
View kops-iam
aws iam create-group - group-name kops
aws iam attach-group-policy - policy-arn arn:aws:iam::aws:policy/AmazonEC2FullAccess - group-name kops
aws iam attach-group-policy - policy-arn arn:aws:iam::aws:policy/AmazonRoute53FullAccess - group-name kops
aws iam attach-group-policy - policy-arn arn:aws:iam::aws:policy/AmazonS3FullAccess - group-name kops
aws iam attach-group-policy - policy-arn arn:aws:iam::aws:policy/IAMFullAccess - group-name kops
aws iam attach-group-policy - policy-arn arn:aws:iam::aws:policy/AmazonVPCFullAccess - group-name kops
aws iam create-user - user-name kops
aws iam add-user-to-group - user-name kops - group-name kops
aws iam create-access-key - user-name kops
View user-login-logic.ts
private processAuthenticateResult(authenticateResult: AuthenticateResultModel, redirectUrl?: string) {
this.authenticateResult = authenticateResult;
if (authenticateResult.shouldResetPassword) {
// Password reset
this._router.navigate(['account/reset-password'], {
queryParams: {
userId: authenticateResult.userId,
tenantId: abp.session.tenantId,
View pulumi-pod-deployment.cs
//2. Create new deployment
var cqrsTodoDeployment = new Pulumi.Kubernetes.Apps.V1.Deployment("cqrstodo-deployment", new DeploymentArgs
Metadata = new ObjectMetaArgs
Name = "cqrstodo-deployment",
Labels = new InputMap<string> { { "app", "cqrstodo" } }
Spec = new DeploymentSpecArgs
View TodoQueryController.cs
public class TodoQueryController : ControllerBase
private readonly TodoDbContext _db;
public TodoQueryController(TodoDbContext db)
_db = db;
View TodoCommandController.cs
public class TodoCommandController : ControllerBase
private readonly IMediator _mediator;
public TodoCommandController(IMediator mediator)
_mediator = mediator;
View CompleteCommand.cs
public class CompleteTodoCommand : IRequest<bool>
public Guid Id { get; set; }
public class CompleteTodoCommandHadler : IRequestHandler<CompleteTodoCommand, bool>
private readonly TodoDbContext _context;
public CompleteTodoCommandHadler(TodoDbContext context)
You can’t perform that action at this time.