Skip to content

Instantly share code, notes, and snippets.

@mrhanlon
mrhanlon / tomcat-pem-to-jks.sh
Last active October 29, 2015 18:36
Converts a PEM formatted TLS certificate to a PKCS12 formatted keystore, ready for import into a standard JKS formatted keystore.
#!/bin/bash
###
# tomcat-pem-to-jks.sh
# Converts a PEM formatted TLS certificate to a PKCS12 formatted keystore,
# ready for import into a standard JKS formatted keystore.
#
# Usage:
# tomcat-pem-to-jks.sh -k /path/to/server.key -c /path/to/cert.crt -i /path/to/intermediate.crt
###
package edu.utexas.tacc.helpers;
import com.github.jknack.handlebars.Helper;
import com.github.jknack.handlebars.Options;
import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.servlet.SessionErrors;
import com.liferay.portal.kernel.servlet.SessionMessages;
import com.liferay.portal.kernel.util.JavaConstants;
import javax.portlet.PortletConfig;
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Thanks to and @artemyk and @gkuenning for their nice tweaks.

Keybase proof

I hereby claim:

  • I am mrhanlon on github.
  • I am mrhanlon (https://keybase.io/mrhanlon) on keybase.
  • I have a public key whose fingerprint is B167 04D8 20F3 7853 0C22 E0E1 BA60 555E 2A65 CCAA

To claim this, I am signing this object:

@mrhanlon
mrhanlon / TUTORIAL.md
Last active August 29, 2015 14:08
AIP Developer Workshop: Tutorial

AIP Developer Workshop

Tutorial Application

Tutorial 1

In this tutorial you will create and run your first science app.

git checkout tutorial/1