Skip to content

Instantly share code, notes, and snippets.

View HariSekhon's full-sized avatar
🏠
Digital Nomad

Hari Sekhon HariSekhon

🏠
Digital Nomad
View GitHub Profile
@HariSekhon
HariSekhon / python.md
Created March 22, 2024 01:19
python.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Python

Python is a popular and easy to use general purpose programming language that is heavily used in Data Analytics and Data Science as well as systems administration.

It's not as amazing for one-liners are Perl is though, which can boost shell scripts more easily.

Core Reading

Learning Python

@HariSekhon
HariSekhon / programming.md
Created March 22, 2024 01:19
programming.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Programming

Languages

  1. Bash - the gold standard for shell scripting
  2. Python - general purpose object oriented language, easy to write, widely used but hard to maintain due to environment differences, language and library changes over time
  3. Golang - imperative compiled self-contained binaries, simple toolchain, smashes Python in portability, maintainability, build time etc.
  4. Perl - fast to write imperative code, stable, the gold standard for regex string processing, works everywhere and doesn't break every few years like Python
  5. Groovy - a better version of Java, with interactive REPL and some language construct conveniences. Hard to want to write in Java again after getting spoilt by Groovy
  6. Java - battle tested, but slower to develop in than the above languages
@HariSekhon
HariSekhon / podman.md
Created March 22, 2024 01:19
podman.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Podman & Buildah by Redhat

Podman

  • manages containers without a daemon
  • non-root daemonless drop-in replacement for Docker
  • drop in replacement for Docker CLI command
yum install -y podman
@HariSekhon
HariSekhon / perl.md
Created March 22, 2024 01:19
perl.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Perl

Perl is a legend of programming languages.

Easily one of the fastest easiest most powerful imperative scripting languages, and legendary for text processing and regular expressions.

It's the language of elite unix sysadmins, and much of unix tooling is built on it, including Git.

PCRE - Perl Compatible Regular Expressions

@HariSekhon
HariSekhon / performance.md
Created March 22, 2024 01:19
performance.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Performance Engineering

lsof

strace

APM - Application Performance Management

@HariSekhon
HariSekhon / packer.md
Created March 22, 2024 01:19
packer.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Packer

https://www.packer.io/

Packer is a tool for automating building virtual machines templates such as importable .ova files.

This usually involves running automated installers that are native to each Linux distribution such as Redhat Kickstart, Debian Preseed and Ubuntu Autoinstall

@HariSekhon
HariSekhon / open-source.md
Created March 22, 2024 01:19
open-source.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Open Source Applications

Miscellaneous open source applications worthy of note.

  • ListMonk - self-hosted newsletter and mailing list manager

Not open source

Bu perhaps worth a look.

@HariSekhon
HariSekhon / nagios-plugins.md
Created March 22, 2024 01:19
nagios-plugins.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Nagios Plugins

This is the gold standard for extensible monitoring.

It provides a simple framework convention that many monitoring systems can use.

Advanced Nagios Plugins Collection

https://github.com/HariSekhon/Nagios-Plugins

@HariSekhon
HariSekhon / monitoring.md
Created March 22, 2024 01:19
monitoring.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Monitoring

  • active API checks - the gold standard most don't know
  • port checks
  • protocol checks
  • metrics & thresholds - deviations from normal

Nagios

See nagios-plugins.md

@HariSekhon
HariSekhon / make.md
Created March 22, 2024 01:19
make.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Make

The classic build system used by C programmers which is now commonly used by unix sysadmins in Git repos because it's such a short command.

It's hard to find a shorter easier build command than running:

make

to run whatever build commands you want.