Skip to content

Instantly share code, notes, and snippets.

View Lakritzator's full-sized avatar

Robin Krom Lakritzator

View GitHub Profile
@Lakritzator
Lakritzator / greenshot-clipboard.md
Created February 4, 2022 22:32
Greenshot and the Windows clipboard

Greenshot and the Windows clipboard

The Windows clipboard is a technology where applications can store a single piece of information in different formats. For example a single picture can be stored in the formats PNG, BMP and GIF. If the content is pasted (CTRL + v), the current active Window has to process the key stroke, looks at the clipboard an takes the format it knows from it.

Greenshot supports the following formats:

  • DIB (Bitmap stored as BMP, removed the first 14 bytes) - Greenshot 1.2 This format causes issues with Windows 11 when Docker is running, or VirtualBox. It doesn't support transparency.

Work in progress

Greenshot is a Windows desktop application written in C#. Up to now, with version 1.x we target the .NET Framework. We used to be very strict with using dependencies, most code was written by us. In fact, Greenshot 1.x is pretty much targeting .NET Framework 2.0. We weren't able to much of the newer functionality as a lot of our customers were against updating the .NET Framework. But the end result is an application which only takes around 2MB of disk space, pretty lean right?

Fiduciary License Agreement 2.0

based on the

Individual Contributor exclusive License Agreement

(including the Traditional Patent License OPTION)

Thank you for your interest in contributing to Dapplo's Dapplo ("We" or "Us").

The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at https://dapplo.net/pages/cla.

@Lakritzator
Lakritzator / project-health.md
Created March 21, 2019 10:18
This gist will contain a few ideas on how one can asses the health of a project, focussed on .NET.

These are a few ideas on how one can asses the health of a project, and bring it forward, focussed on .NET projects.

General

  • Maintainers > 1
  • Contributors
  • Releases
  • Count of downloads (nuget, github releases etc)
  • Recent changes not year ago
  • PR handling
  • Internet site (hosting / )
@Lakritzator
Lakritzator / generic_host-vs-spring_boot.md
Last active August 21, 2024 07:13
A comparison between Javas Spring-Boot and the Generic Host of dotnet core

This is work in progress

I read about the .NET Generic Host for the first time in a Tweet of David Fowler. And I was hooked by the idea, it was just what I was looking for.

I like modules making things small but fit together like pieces of a puzzle, if possible being able to reuse them. I started refactoring Greenshot over a year ago, and was making modules out of the spaghetti code that it was. Trying to extract the modules into their own nuget packages, making them more generic and testable. I glued them together with some code I wrote, which is availble in Dapplo.Addons, but I knew that this was just a journey, until I found something that is a better with more potential.

I found the following description: _The purpose of Generic Host is to enable a wider array of host scenarios. Messaging, backg

@Lakritzator
Lakritzator / learn.md
Created March 18, 2019 18:38
Topics, with links to details, which a dotnet or java developer should know to be a successful enterprise developer

learn

This readme contains topics, with links to details, which a dotnet or java developer from my point of view should know to be successful as a developer. This document is probably never be finished, it will need changes all the time just so as developers never finish learning!

generic topics

These topics are of a generic nature, and most of them can be used independent of the technology used. These topics can but don't have to be in the specific language table, if so that information is specify to the technology.

  • Source Code Versioning