Category: Tech-Notes

  • Cron in Docker (PHP)

    You wanna get corn running in a container? Maybe a php based container? This sucks. So let’s try to figure it out. What I did is create a docker image as following: The entrypoint looks like this: And we add a cron.sh file: Now we can use this image normally to run a php container,…

  • Elasticsearch 2 Opensearch

    You might want to move from elasticsearch to opensearch due to the changes of graylog 5.I was at the same position. We currently deploy mostly single-node standalone environments. This procedure is suited for those environments. 1. Step – Update Mongodb We are upgrading from 4.2 to 6.0. This can only be done with steps between…

  • Fix Graylog Watermark

    If you monitor your graylog server already and use a single node instance, there is no real need for a watermark on your open/elasticsearch server. Here you go:

  • The application ‘add’ does not exist.

    You’re trying to run dotnet add package <PACKAGE> on a RHEL based system and get this error: Issue The problem is, the .rpm inside the microsoft repo has dependencies on packages like dotnet-hostfxr-6.0.x86_64, which are also present in the default AppStream repo. So it gets the packages from the wrong repository. Solution You’re in luck. There is a…

  • SSH for Windows

    A lot of people might be aware, that windows supports the openssh client natively now. Just had over to powershell and enter ssh server.example.org and you can start a ssh connection. But… How many knew that you can setup openssh server too? Let’s give it a try:

  • Shrink Thin Provisioned Disk

    Here’s a very quick overview over how to shirnk a bloated vmdk. Check Datastore Get ID of Datastore: Check state of Datastore: Clear File-System Windows You can use SDelete by Sysinternals: https://docs.microsoft.com/en-us/sysinternals/downloads/sdelete Linux Create a file containing zeros and fill disk with it: Shrink VMDK Now you can ssh into the esx and “punsh” the zeros:

  • OpenSSL Convert

    PFX to Key Remove password from key PFX to Cert Fixing PFX withs Issues (pfx -> pem -> pfx) Open Powershell in the bin folder of OpenSSL and run these commands (replace old.pfx is your current, new.pfx will be the fixed one. You might have to enter the pfx password a few times):