Skip to content

Instantly share code, notes, and snippets.

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);