Skip to content

Instantly share code, notes, and snippets.

@mauvilsa
mauvilsa / pdfbox-RemoveAllText.groovy
Last active September 10, 2020 14:52
Remove all text from PDF using Apache PDFBox in a Groovy script (pdfbox-RemoveAllText.groovy)
#!/usr/bin/env groovy
// Copyright (c) 2020-present, Mauricio Villegas <mauricio_ville@yahoo.com>
// MIT License <https://badges.mit-license.org/>
@Grab('org.apache.pdfbox:pdfbox-examples:2.0.20')
import org.apache.pdfbox.examples.util.RemoveAllText
RemoveAllText.main(args)
@mauvilsa
mauvilsa / pagerestrict.php
Created November 21, 2016 09:41
Modification of wordpress pagerestrict plugin to support lostpassword_url filter
<?php
/*
Plugin Name: Page Restrict
Plugin URI: http://theandystratton.com/pagerestrict
Description: Restrict certain pages to logged in users
Author: Matt Martz & Andy Stratton
Author URI: http://theandystratton.com
Version: 2.2.6
Copyright (c) 2008 Matt Martz (http://sivel.net)