This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |