Skip to content

Instantly share code, notes, and snippets.

View savishy's full-sized avatar

Vish savishy

View GitHub Profile
export PATH=$PATH:/opt/homebrew/bin:/opt/homebrew/opt/python@3/libexec/bin
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
@savishy
savishy / Implementing Microservice Domain Logic.md
Last active January 22, 2024 07:30
Notes from "Patterns of Enterprise Application Architecture" book and "Microservices" Learning Path on Pluralsight

Layers

(From the Pluralsight course)

  • Presentation Layer
    • showing data to and accepting input from end users
  • Service Layer
    • BFF (Backend for Frontend) or API Gateway.
    • Single point of entry for all outside traffic.
  • Present stable API to Presentation Layer, and allow μs to change independent of frontend.

Azure Solutions Architect

Module: Design for Security

Defense in Depth

My notes from going through https://docs.microsoft.com/en-us/learn/modules/design-for-security-in-azure/

  • Zero trust model: Never assume trust, but continually validate it.

    • E.g. don't assume that because a request came from inside the network it can be trusted.
    • This approach enforces "Defense in Depth".
  • Azure Security Center provides a solution to implement security and mitigate threats.

@savishy
savishy / go.md
Created May 3, 2020 08:46
Golang Tips and Tricks

Naked Switch Statements


	switch {
	case x > 100:
		fmt.Println("x is very big")
	case x > 10:
		fmt.Println("x is big")
	default:
 fmt.Println("x is small")
@savishy
savishy / ansible.cfg
Created September 21, 2019 07:26
Ansible Inventory Plugin for OneOps
[defaults]
# Search path for inventory plugin
inventory_plugins = ./inventory/
[inventory]
# enable plugin
enable_plugins = oneopsplugin, host_list, script, auto, yaml, ini
@savishy
savishy / Logstash.md
Last active January 22, 2024 07:30
Monitoring, Log Management and Visualization Tools Cheatsheet

LogStash

Logstash

  • Originally started off as a log collector. Has become unifying point for disparate data sources.
  • LS serves as the data ingestion point for ElasticSearch (ES).

Dead Letter Queues

  • "Dead Letter Queues" in Logstash protect against data loss - ref
@savishy
savishy / Gradle Cheatsheet.md
Last active September 27, 2018 09:42
Build Automation Tips, Tricks and CheatSheet
Key Value
Main Build Scripts build.gradle - project and tasks configuration.
settings.gradle - useful in multi-project builds.
gradle.properties - key-valuen pair containing build properties.
Projects, Tasks A Build contains one or more Projects that are composed of Tasks. Multi-Project builds need to have a top level settings.gradle describing all the projects that are part of the build.
Tasks Similar to Maven Goals. E.g. Compile / Run etc.
Plugins Gradle Plugins can make new tasks available to a project.
Syntax: apply plugin: 'foo'
apply plugin: 'com.foo.bar'

gradle tasks - list all tasks available to project.

@savishy
savishy / AWS Jargon.md
Last active September 19, 2018 02:55
AWS - Key Concepts and Jargon

S3

VPC

Subnets

  • Public Subnets can send traffic directly to internet

DevOps Automation Task - Ansible + Azure + Windows

Objectives

  1. This assignment requires you to automate creation of an entire application environment on Azure.
  2. The environment consists of two VMs, details of which are enclosed below.
  3. All VMs are Windows VMs.
  4. Each VM needs to have specific disks attached to it, in addition to the C: D: E: drives.

Time Limit

@savishy
savishy / Powershell DSC.md
Last active March 15, 2022 17:06
Powershell as well as Powershell DSC Tips and Troubleshooting