📓 Notes

My collection of quick notes, how-tos, reference material, and guides on practical subjects. Notes are living documents subject to changes over time 🌱

Ansible

Getting startedUse inventory and the target "example" to ping as root [example] ansible101.xyz ansible -i inventory example -m ping -u root Use ansible.cfg to set a default inventory [defaults] INVENTORY = inventory Log-in as root and check date, memory usage,…▷ read more

Best of AWS re:Invent

2020Zero Trust: An AWS perspective – Quint Van DemanTen easy and effective ways to secure your AWS environment – Becky WeissSecurity best practices the AWS Well-Architected way – Ben Potter2019CI/CD for serverless applications – Eric Johnson 2018Become an IAM…▷ read more

Blockchain

IntroductionAt it's core, Bitcoin represents the replacement of trust through institutions to trust through networks. >> Institutions are failing, because they represent systems of scale for industrial societies ... we are now a global information socie…▷ read more

Career Planning

Some of my notes from Marc Andreessen (@pmarca) Guide to Career Planning Personal productivity Don't keep a schedule Work on whatever is more important or more interesting Want to spend all day coding? Do it! the best odds of maximizing flow Keep 3 lists To-…▷ read more

Chaos Engineering

IntroductionMain objectives: Part of overall Resilience approachSurface evidence of weaknesses before crisis and outagesMake everyone responsible for code in productionImprove availability, stability, robustness, service in case of outagesAssess how well code…▷ read more

Cloud Native Security

Intro[TK] Reports Snyk - State of Cloud Native Application SecurityCloud Native Application Security Report | SnykNew research reveals 60% of organizations have increased security concerns since adopting cloud native. Read the full State of Cloud Native Appl…▷ read more

Container Security

ChallengesTraditional tools aren't fit to secure containers (and kubernetes): too heavy handed such, e.g., EDR, vulnerability scanners, hostbased firewalls, network forensics, security analytics.Alternative dedicated lightweight tools are being used – and dahs…▷ read more

Content Marketing

From advanced guide to content marketing[1] Chapter 1: Build a strong foundation New marketing is about the relationships, not the medium Ben Grossman What is it? A Strategy Production and publishing of information Builds trust and authority between ideal c…▷ read more

DevSecOps

DefinitionsA holistic secure by design approach to the DevOps pipeline aligned with People, Process, Tools.2. Bring 3 teams together under a common goal of providing secure, consistent, faster path to production. Thus enhancing the organization's security post…▷ read more

Django

Activate an environmentPre-install django in this env conda create -n tutorial django=1.8 activate tutorial mkdir tutorial cd tutorial Create requirements.txtAnd install via pip (if needed): touch requirements.txt django==1.8 > requirements.txt pip install…▷ read more

Docker

Getting startedImages are the blueprint to instantiate containers that are built, run, and distributed by the Docker Daemon, which used via a Docker Client and pull images from a registry such as Docker Hub Basic commands#runs a container (downloads image if n…▷ read more

GitOps

Standarized workflow to deploy, configure, monitor, update IaaC – the repository contains declarative descriptions of the desired state of the infrastructure ... and automation makes the production enviroment match the repositoryState is 1. Declarative, 2.Vers…▷ read more

Helm

The package manager for Kubernetes, e.g. helm install wpdemo stable/wordpress helm status wpdemo NAME: wpdemo LAST DEPLOYED: May 25 15:06:44 2020 NAMESPACE: default STATUS: deployed REVISION: 1 NOTES: This Helm chart is deprecatedChartsA scaffold of K8s resour…▷ read more

Kubernetes

The most used container orchestration tool for deployment, scaling, and maintenance in the cloud. Notes are living documents and will change over time 🌱…▷ read more

MongoDB

IntroMongoDB is document oriented.MongoDB is schemaless.No joins, no transactions (scales horizontally)Unlike in a relational database, you are not constrained to follow any particular schema. Do any: Begin inserting documents with the new schema.Perform a bul…▷ read more

Posture Management

Cloud security posture managementWhat is it?Cloud security posture management validates your configuration in cloud environments (usually public clouds), it includes but not limited to: Auditing and monitoring of cloud infrastructureReal-time threat activity m…▷ read more

Python

Quick start #!/usr/bin/env python print "Hello World" Listsa = [1,2,3,4,5,6] a[0:1] # first element a[2:4] # slice mid elements, second parameter is exclusive a[2:] # all elements after third element Is an element included in a listCheck if element is containe…▷ read more

Remote work

Be effectiveremote first teams have expansive talent pools & add resiliency and flexibility to your organization – Assume everyone will be remote at some point.result-oriented groups, strive for results, deliverables regardless of time, mode or location of…▷ read more

Ruby

BasicsPlaying with strings > "Jimmy".reverse => ymmiJ > "Jimmy".length => 5 > "Jimmy" * 5 => "JimmyJimmyJimmyJimmyJimmy" > 40.to_s.reverse => "04" Useful functionsstrings: to_sintegers: to_iarrays: to_aArrays > [12, 45, 12].m…▷ read more

Rust

Getting startedInstall via script # install curl https://sh.rustup.rs -aSf | sh source $HOME/.cargo/env export PATH="$HOME/.cargo/bin:$PATH" # check installation cargo -V rustc -V Create a template project via command cargo new --bin hello-world or cargo init…▷ read more

Rust Libraries

NetworkingReqwest is an ergonomic, batteries-included HTTP Client for Rust. Plain bodies, JSON, urlencoded, multipart, Customizable redirect policy, HTTP Proxies, HTTPS via system-native TLS (or optionally, rustls), Cookie Store, WASM. Rustls is a modern TLS l…▷ read more

Svelte

Quick startnpx degit sveltejs/template my-svelte-project cd my-svelte-project npm installSvelte converts your app into ideal JavaScript at build time, rather than interpreting your application code at run time. This means you don't pay the performance cost of…▷ read more

Vagrant

IntroA cross-platform tool created by Hashicorp to make configuring and sharing VMs easy by automating VM management with an end-to-end lifecycle management utility. Core benefits of VMs are reproducible environment, isolated and restricted environments, share…▷ read more

Vim

Basicsmove k h l j move between words words! _a_re words w words! are _w_ords e words! ar_e_ words b words_!_ are words B _w_ords! are words multipliers number + [h, j, k, l , w, e, b] 5h wor_d_s! are words…▷ read more

Well-Architected Framework

AWS Well-Architected FrameworkDesign PrinciplesAWS...Cost OptimizationCost OptimizationPerformance EfficiencyPerformance Effi...OperationalExcellenceOperational...SecuritySecurityReliabilityReliabilityPerform OperationsAs CodePerform Operations...Annotate Do…▷ read more

YAML

BasicsReleased in 2001, data serialization language for humans, familiar to python, ruby, perl. Has scalars, lists, arrays, indentation, dashes, colons are data structures — used for config files and storing data Human centric, portable, matching data structur…▷ read more