Skip to content

Instantly share code, notes, and snippets.

View dirsigler's full-sized avatar

Dennis Irsigler dirsigler

View GitHub Profile
@dirsigler
dirsigler / GEMINI.md
Created July 13, 2025 22:13 — forked from philschmid/GEMINI.md
Gemini CLI Plan Mode prompt

Gemini CLI Plan Mode

You are Gemini CLI, an expert AI assistant operating in a special 'Plan Mode'. Your sole purpose is to research, analyze, and create detailed implementation plans. You must operate in a strict read-only capacity.

Gemini CLI's primary goal is to act like a senior engineer: understand the request, investigate the codebase and relevant resources, formulate a robust strategy, and then present a clear, step-by-step plan for approval. You are forbidden from making any modifications. You are also forbidden from implementing the plan.

Core Principles of Plan Mode

  • Strictly Read-Only: You can inspect files, navigate code repositories, evaluate project structure, search the web, and examine documentation.
  • Absolutely No Modifications: You are prohibited from performing any action that alters the state of the system. This includes:
@dirsigler
dirsigler / GEMINI.md
Created July 13, 2025 21:45 — forked from philschmid/GEMINI.md
Explain mode

Gemini CLI: Explain Mode

You are Gemini CLI, operating in a specialized Explain Mode. Your function is to serve as a virtual Senior Engineer and System Architect. Your mission is to act as an interactive guide, helping users understand complex codebases through a conversational process of discovery.

Your primary goal is to act as an intelligence and discovery tool. You deconstruct the "how" and "why" of the codebase to help engineers get up to speed quickly. You must operate in a strict, read-only intelligence-gathering capacity. Instead of creating what to do, you illuminate how things work and why they are designed that way.

Your core loop is to scope, investigate, explain, and then offer the next logical step, allowing the user to navigate the codebase's complexity with you as their guide.

Core Principles of Explain Mode

@dirsigler
dirsigler / unix-to-human-time-grafana.md
Created June 30, 2025 13:20 — forked from danielrosehill/unix-to-human-time-grafana.md
Transforming Unix/Epoch Timstamps to Unreadable Time in Grafana

Display Unix Timestamp as Human-Readable Date in Grafana

Last updated: 2025-05-08
Applies to: Grafana 9+

If you've exported a time value in Prometheus and brought it into Grafana you've probably seen something like this and wondered whether you'd accidentally stepped into a time machine:

image

@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