This code should be quite self explanatory. And this is how you can use it. Of course you should never have your private key in your code.
Category: Programming
[Vite] Copy vite build output to destination directory
When vite build your bundle, it by default cleans the build output directory. If this directory happens to also be the directory where your webserver is serving the files from, then you might temporary have 404 errors being served to visitors from of your application. Or course you can solve this with separating your building…
[Python][Clang] Extract variabele value from a c++ file in python
Once in a while you want to extract some values from a source file. For example if you want to extract a version number from code to process in a CI server. This example uses the python clang bindings to parse a cpp file and extracts a version number form it. This example used some…
[ASP.net Core] Body based routing with custom MatcherPolicy
From time to time you have to implement an API that has to have the same endpoint but has to do something differently based on the content of the request. For example take the OAuth2 /token endpoint. (This is an example, in real world use you would choose something more secure than this legacy oauth…