Skip to content

Instantly share code, notes, and snippets.

Marketing

Talked about "Kotler"

$\text{Only way to increase volume} = \text{Price} * \text{Number of customers} * \text{Number of units} * \text{Number of transactions}$

ISO 13485

List all activities during the year:

  • Mgt review
  • Salary revisions
  • Vacation
  • Public holidays

Medical software:

#!/bin/bash
set -euo pipefail
usage () {
echo "script syntax: -a AWS account nickname
-r AWS region
-h This help text";
}
options=':a:r:h'

Notes from the book "Measure What Matters"

Chapter 1 - Google, Meet OKRs

  • Do push-ups in the middle of the meeting
  • Ideas are easy, execution is everything
  • The OKR concept comes from an Intel engineer
  • Google managers have a minimum of seven direct reports?
  • Transparency

Chapter 2 - The Father of OKRs

Terraform

Switch versions

Tools to switch local Terraform versions:

RDS connectivity issue

If you encounter an rds instance will try to connect to localhost:3306:

resource "kubernetes_config_map" "fqdn" {
metadata {
name = "configname"
namespace = "temp"
}
data = {
for k, v in module.namespace.sub_domain_fqdn : "sub_domain_fqdn_${k}" => v
}
}
1. npm login --registry https://nexus.<url>/repository/<company>_npm/ --scope=@<company>
2. Log in with service account credentials
3. Open ~/.npmrc and copy the token
module.exports = {
platform: 'gitlab',
endpoint: 'https://git.<instance>/api/v4/',
baseBranches: ['master'],
labels: ['renovate'],
repositories: [
"path/to/project1",
"path/to/project2",
],
binarySource: 'install',
stages:
- config_validation
- check_dependencies
validation:
stage: config_validation
variables:
LOG_LEVEL: debug
image:
name: renovate/renovate:latest
DifferentKubernetesVersions
count(count(kubernetes_build_info) by (gitVersion))>1
KubernetesNodeTooOld
(time() - kube_node_created) > (60 * 60 * 24 * 30)
KubernetesPodTooOld
(time() - (kube_pod_created * on (pod, namespace) group_left kube_pod_owner{owner_kind!="DaemonSet"})) > (60 * 60 * 24 * 16)
NoAvailableReplicas