Skip to content

Instantly share code, notes, and snippets.

View dirsigler's full-sized avatar

Dennis Irsigler dirsigler

View GitHub Profile
@dirsigler
dirsigler / .golangci.yml
Created March 3, 2025 08:44 — forked from maratori/.golangci.yml
Golden config for golangci-lint
# This file is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021-2025 Marat Reymers
## Golden config for golangci-lint v1.64.5
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adapt it to suit your needs.
# If this config helps you, please consider keeping a link to this file (see the next comment).
@dirsigler
dirsigler / html.tpl
Created October 8, 2024 07:31
Trivy Template to support HTML reports for License scans
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
{{- if . }}
<style>
* {
font-family: Arial, Helvetica, sans-serif;
box-sizing: border-box;
}
@dirsigler
dirsigler / markdown.tpl
Created October 7, 2024 09:05
Trivy Template to support Markdown reports for License scans
{{- if . }}
{{- range . }}
{{- if gt (len .Licenses) 0 }}
### Target: `{{ .Target }}`
#### Licenses Detected ({{ len .Licenses }})
| File Path | License Name | Severity | Confidence | Link |
|-----------|--------------|----------|------------|------|
{{- range .Licenses }}
| `{{ escapeXML .FilePath }}` | `{{ escapeXML .Name }}` | {{ escapeXML .Severity }} | {{ printf "%.2f" .Confidence }} | [Link]({{ escapeXML .Link }}) |
{{- end }}
@dirsigler
dirsigler / Cloud Security Orienteering Checklist.md
Created January 23, 2023 21:35 — forked from ramimac/Cloud Security Orienteering Checklist.md
A Checklist of Cloud Security Orienteering

Cloud Security Orienteering: Checklist
by Rami McCarthy
via TL;DR sec

How to orienteer in a cloud environment, dig in to identify the risks that matter, and put together actionable plans that address short, medium, and long term goals.

Based on the Cloud Security Orienteering methodology.

Checklist

@dirsigler
dirsigler / signing-git-commits.md
Created April 28, 2022 09:23 — forked from phortuin/signing-git-commits.md
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg
@dirsigler
dirsigler / styleguide.md
Created May 17, 2021 08:26
Terraform Style Guide
@dirsigler
dirsigler / .editorconfig
Last active April 19, 2021 17:53 — forked from dsample/.editorconfig
Some files which I usually include within a repo's 'first commit'
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
@dirsigler
dirsigler / server_benchmark.md
Created April 12, 2021 06:59 — forked from jarthod/server_benchmark.md
Server benchmark

Results

Server Price* CPU (1 thread) CPU (4 threads) IO
Scaleway Start1-XS
Atom C3955, 25G NVMe
$4 21 sec
P₉₅ = 2.1ms
21 sec
P₉₅ = 14ms
🚗 653 IO/s, 10 Mb/sec
P₉₅ = 0.40ms
Scaleway VC1-S
Atom C2750, 50G SSD
$4 46 sec ⚠️
P₉₅ = 4.6ms
23 sec
P₉₅ = 14ms
🚲 289 IO/s, 4.5 Mb/sec
P₉₅ = 0.39ms
Hetzner CPX11
AMD EPYC, 40G SSD
$5 20 sec
P₉₅ = 3.2ms
9.6 sec
P₉₅ = 11ms
✈️ 3656 IO/s, 57 Mb/sec
P₉₅ = 0.29ms
Hetzner CX21
Intel Xeon, 40G SSD
$6 24 sec
P₉₅ = 2.8ms
12.5 sec
P₉₅ = 11ms
🚤 1946 IO/s, 30 Mb/sec
P₉₅ = 0.97ms
AWS t2.micro 1G*Intel E5-2676 v3 2.4