Skip to content

Instantly share code, notes, and snippets.

@NickUfer
NickUfer / README.md
Last active October 30, 2022 23:06
Directus OAS post processing script. Correct the spec to be OAS 3.0 compatible and work with OpenAPITools / openapi-generator

Directus OAS Spec Post Processing Script For OAS 3.0

This script fixes various problems in the generated spec by Directus's /server/specs/oas endpoint. It makes the spec somewhat OAS 3.0 compatible so you are able to generate code with https://github.com/OpenAPITools/openapi-generator. This project has a CLI project which can be found at https://www.npmjs.com/package/@openapitools/openapi-generator-cli.

What Is It Fixing?

  • [...]#/components/x-metadata is missing
  • [...]#/components/definitions/Query is missing
  • components.definitions is unexpected
@NickUfer
NickUfer / anno1404_proton_guide.md
Last active January 14, 2022 19:47
Anno 1404 proton installation guide (multiplayer not tested, no crashes on manual or auto saving)

Had to install and activate DirectX 9 as previously explained on ProtonDB

1. Install DirectX 9

You need a wine version which is the same as proton uses. This is hard to achieve. So we just use protons wine and not the one you may have installed on your system.

Save this script to a file, e.g. anno_directx9.sh:

### Keybase proof
I hereby claim:
* I am NickUfer on github.
* I am nickufer (https://keybase.io/nickufer) on keybase.
* I have a public key whose fingerprint is 4580 A0EE E6CE F066 1C82 59AB 5BC2 8DEC 1758 885D
To claim this, I am signing this object: