Skip to content

Instantly share code, notes, and snippets.

View HariSekhon's full-sized avatar
🏠
100% Remote - Digital Nomad

Hari Sekhon HariSekhon

🏠
100% Remote - Digital Nomad
View GitHub Profile
@HariSekhon
HariSekhon / terraform.md
Created June 26, 2024 20:35
terraform.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowledge-Base

Terraform

Infrastructure-as-Code using HCL manifests to define cloud resources.

Idempotent, queries cloud APIs, detects what is missing or has changed and then applies the necessary changes to reconcile.

Install Terraform

Quick install script is found in the DevOps-Bash-tools repo:

@HariSekhon
HariSekhon / github-actions.md
Created June 20, 2024 11:49
github-actions.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowledge-Base

GitHub Actions

TL;DR - use GitHub Actions for general CI/CD since you should be using GitHub anyway - use Jenkins for self-hosted or more powerful / flexible / extensive CI/CD.

  • fully hosted
  • unlimited build minutes for public projects
  • 2,000 free private build minutes for users / orgs
  • 50,000 build minutes per month for cloud enterprise Orgs (essentially free - better than paying for CircleCI!)
  • optional self-hosted runners - HariSekhon/Kubernetes-configs - github-actions
@HariSekhon
HariSekhon / terragrunt.md
Last active June 26, 2024 20:35
terragrunt.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowledge-Base

Terragrunt

https://terragrunt.gruntwork.io/

Thin CLI wrapper around Terraform which adds lots of sourcing and templating capabilities.

Uses same arguments which are passed to the terraform command.

Designed to reduce duplication when using Terraform code by adding support for variables, expressions, functions and relative roots in provider and backend blocks.

@HariSekhon
HariSekhon / sql.md
Last active June 18, 2024 21:58
sql.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowledge-Base
@HariSekhon
HariSekhon / postgres.md
Last active June 18, 2024 21:58
postgres.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowledge-Base

PostgreSQL

SQL Scripts

Scripts for DBA administration and performance engineering:

HariSekhon/SQL-scripts

PgAdmin

@HariSekhon
HariSekhon / mysql.md
Last active June 18, 2024 21:58
mysql.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowledge-Base

MySQL

SQL Scripts

Scripts for DBA administration and performance engineering:

HariSekhon/SQL-scripts

phpMyAdmin

@HariSekhon
HariSekhon / coder.md
Last active June 7, 2024 12:00
coder.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowledge-Base

Coder

https://coder.com/

Self-hosted enterprise Dev environments.

  • Open-core model
  • Enterprise is expensive to license - the price isn't on the website, you have to contact Sales which should give you a hint!

Disabling SSH

@HariSekhon
HariSekhon / secrets-managers.md
Created June 7, 2024 11:06
secrets-managers.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowledge-Base

Secret Managers

Personal password managers offer a great convenience to use different passwords everywhere to limit exposure risks when one site or another inevitably gets hacked (see https://haveibeenpwned.com/).

However, they also represent a single point of failure they themselves get hacked.

  • Google Password Manager - built-in to the Chrome browser. If Google gets hacked it's game over because everybody relies on Google for GMail and SSO auth logins.
  • BitWarden - open-core, free for personal use
  • 1Password
@HariSekhon
HariSekhon / yaml.md
Created June 7, 2024 10:50
yaml.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowledge-Base
@HariSekhon
HariSekhon / networking.md
Last active June 17, 2024 10:19
networking.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowledge-Base

Networking

CIDR visualizer

Shows bits, netmask, first IP, last IP, number of IPs in range

http://cidr.xyz/

VPNs - Virtual Private Networks