Skip to content

Instantly share code, notes, and snippets.

View moekkibux's full-sized avatar
💬
Under Development

Mökki moekkibux

💬
Under Development
  • Deutschland
  • 12:27 (UTC +01:00)
View GitHub Profile
@otac0n
otac0n / ToCSharpString.cs
Created April 1, 2025 02:07
A pair of C# functions to format a dotnet type as a C# syntax string (given many ways to minimize type name, if desired).
// usage:
// typeof(System.Collections.Generic.List<System.Double>).ToFullyQualifiedName()
// output:
// System.Collections.Generic.List<System.Double>
//
// usage:
// typeof(System.Collections.Generic.List<System.Double>).ToCSharpString(
// symbolDisplayFormat: new SymbolDisplayFormat(
// typeQualificationStyle: SymbolDisplayTypeQualificationStyle.NameOnly,
// genericsOptions: SymbolDisplayGenericsOptions.IncludeTypeParameters,
@markasoftware
markasoftware / enterprise_token.rb
Last active October 29, 2025 05:08
OpenProject Enterprise mode for free
############ If you are using DOCKER all-in-one image, create Dockerfile like: ################
############ FROM openproject/openproject:16 ################
############ COPY ./enterprise_token.rb app/models/enterprise_token.rb ################
############ If you are runing a manual installation: ################
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ If using some other set up (eg docker-compose), read the comments on ################
############ https://gist.github.com/markasoftware/f5b2e55a2c2e3abb1f9eefcdf0bfff45 ################