Skip to content

Instantly share code, notes, and snippets.

@afoeder
afoeder / howto.md
Created March 7, 2025 10:25
Use a newer or specific version of PlantUML in Jetbrains-based IDEs

Use Intellij stuff with PlantUML

Source:

TL;DR:

  • The JAR is located in ~/Library/Caches/JetBrains/{Productname}/markdown/download/plantumllanguageextension/plantuml.jar.
  • You can confirm the (old) version with java -jar plantuml.jar --version.

Signing PDFs with Nexus Personal Desktop Client

Note: this is specifically meant for the MacOS edition.

In Acrobat Reader, choose Preferences… -> Signatures -> Identities & Trusted Certificates: More…

image

In PKCS#11 Modules and Tokens, choose Attach Module

@afoeder
afoeder / ReflectionDemo.php
Created January 13, 2012 09:30
Accessing private properties and methods using PHP's reflection
<?php
/**
* Please be aware that private properties are private for good purpose,
* changing it during runtime so is only OK during Unit Testing for example.
* So use this only if you're knowing what you're doing :)
*/
class BareDemoClass() {
@afoeder
afoeder / gist:1404191
Created November 29, 2011 09:41
my Cross-compatible rounded corners and gradients
.my {
border: 1px solid #999999;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
background-color: #d9d9d9;
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#d9d9d9));
background-image: -webkit-linear-gradient(#ffffff,#d9d9d9);