Skip to content

Instantly share code, notes, and snippets.

Francisco A. Lozano flozano

  • Kii corporation
  • Valencia, Spain
View GitHub Profile
# Merge pages from a1 and a2 into b
qpdf --empty --pages a1.pdf 1-z a2.pdf 1-z -- b.pdf
# Merge pages from a* into b
qpdf --empty --pages $(for i in a*.pdf; do echo $i 1-z; done) -- b.pdf
# Remove password
qpdf -password=mypassword -decrypt source_with_password.pdf target_without_password.pdf
flozano / mkcacerts
Last active May 9, 2018 — forked from jimblom/
Update Java cacerts - enforce JKS type
View mkcacerts
# Script provided by
# EB 20141217: removed bashisms
# Simple script to extract x509 certificates and create a JRE cacerts file.
if test -z "${1}" ; then
exit 1
View show_mysql_charset.sql
SHOW VARIABLES WHERE Variable_name LIKE 'character\_set\_%' OR Variable_name LIKE 'collation%'
View gpg-agent setup
eval $(gpg-agent --daemon --no-grab --write-env-file $HOME/.gpg-agent-info)
export GPG_TTY=$(tty)
You can’t perform that action at this time.