Skip to content

Instantly share code, notes, and snippets.

View skatsumata's full-sized avatar

Shinichi Katsumata skatsumata

View GitHub Profile
@lhriley
lhriley / aws-cert-import.sh
Created February 3, 2018 02:10
AWS CA import script for JDK keystore
#!/bin/bash -e
# create a temp dir in which to work
OLDDIR="$PWD"
TMPDIR="/tmp/_aws-ca"
mkdir "${TMPDIR}" && cd "${TMPDIR}"
AWS_CERTS=(
AmazonRootCA1.pem
package chemp.notes.linenotify;
import java.io.*;
import java.net.*;
import java.util.regex.Pattern;
public class LineNotify {
private static final String strEndpoint = "https://notify-api.line.me/api/notify";
public boolean callEvent(String token, String message) {
boolean result = false;
#!/bin/bash
set -e
JAVA_HOME=${1-text}
[ $# -eq 0 ] && { echo "Usage: sudo $0 \$(/usr/libexec/java_home -v '1.8*')" ; exit 1; }
KEYSTORE=$JAVA_HOME/jre/lib/security/cacerts
wget https://letsencrypt.org/certs/letsencryptauthorityx1.der
wget https://letsencrypt.org/certs/letsencryptauthorityx2.der