Skip to content

Instantly share code, notes, and snippets.

@hubgit
hubgit / README.md
Last active June 14, 2024 17:40
Remove metadata from a PDF file, using exiftool and qpdf. Note that embedded objects may still contain metadata.

Anonymising PDFs

PDF metadata

Metadata in PDF files can be stored in at least two places:

  • the Info Dictionary, a limited set of key/value pairs
  • XMP packets, which contain RDF statements expressed as XML

PDF files

@plentz
plentz / nginx.conf
Last active July 25, 2024 09:38
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@andresbravog
andresbravog / User.sublime-keymap
Created March 8, 2014 12:27
Theme and colorscheme keybind toggle
[
{
"keys": ["super+k", "super+c", "super+l"],
"command": "toggle_color_scheme",
"args":{
"options": [
{
"color_scheme": "Packages/User/Flatland Monokai (SL).tmTheme" ,
"theme": "Spacegray.sublime-theme"
},
@bmaupin
bmaupin / log4j2.xml
Last active July 25, 2024 07:13
Log4j2.xml for Tomcat
<?xml version="1.0" encoding="utf-8"?>
<Configuration status="info">
<Properties>
<Property name="logdir">${sys:catalina.base}/logs</Property>
<Property name="layout">%d [%t] %-5p %c- %m%n</Property>
</Properties>
<Appenders>
<Console name="CONSOLE" target="SYSTEM_OUT">
<PatternLayout pattern="${layout}"/>
</Console>