Code Snippets
2020
2018
2015
- Snippet 0x0D: Let's Encrypt - 5 min guide to set up cronjob based certificate renewal
- Snippet 0x0C: Load multiple composer.json files at runtime
- Snippet 0x0B: Bash completion with sub-commands and dynamic options
- Snippet 0x0A: Cryptography DOs and DON'Ts
- Snippet 0x09: Reading a ZIP/JAR file with PHP (here: a JAR manifest)
2014
- Snippet 0x08: HTTP Basic Auth for secure WebSocket connections (with Undertow)
- Snippet 0x07: Restart Docky from a cronjob (when it crashed)
- Snippet 0x06: Disable SSLv3 in Firefox to protect against POODLE attack
- Snippet 0x05: Windows .bat: Checking if process is running by PID file
- Snippet 0x04: Run .sql-scripts from Java (on HSQLDB, Derby, MySQL, etc.)
- Snippet 0x03: Recursively watch folders on Java (using the Java 7 WatchService)
- Snippet 0x02: Getting the Java process PID and managing PID files (Linux/Windows)
- Snippet 0x01: Undertow, an embeddable Java HTTP / WebSocket / REST server