From expercise project:
<td>
<input class="form-control" type="text" name="inputValue"
th:maxlength="${T(com.expercise.utils.Constants).MAX_TESTCASE_VALUE_LENGTH}" />
</td>
# UPDATED 17 February 2019 | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; | |
} | |
# SSL configuration |
From expercise project:
<td>
<input class="form-control" type="text" name="inputValue"
th:maxlength="${T(com.expercise.utils.Constants).MAX_TESTCASE_VALUE_LENGTH}" />
</td>
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: glassfish | |
# Required-Start: $local_fs $remote_fs $syslog $network | |
# Required-Stop: $local_fs $remote_fs $syslog $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start Glassfish at boot time | |
# Description: Enable service provided by Glassfish | |
### END INIT INFO |
#!/usr/bin/env bash | |
# https://code.google.com/p/chromium/issues/detail?id=226801 | |
url='https://chromium.googlesource.com/chromium/src/net/+/master/http/transport_security_state_static.json?format=TEXT'; | |
curl -#s "${url}" | \ | |
base64 --decode | \ | |
sed '/^ *\/\// d' | \ | |
sed '/^\s*$/d' > hsts.json; |
/** | |
* Utility class to read encrypted PEM files and generate a | |
* SSL Socket Factory based on the provided certificates. | |
* The original code is by Sharon Asher (link below). I have modified | |
* it to use a newer version of the BouncyCastle Library (v1.52) | |
* | |
* Reference - https://gist.github.com/sharonbn/4104301" | |
*/ | |
import org.bouncycastle.cert.X509CertificateHolder; |
#!/bin/sh | |
# | |
# glassfish Startup script for glassfish | |
# | |
# chkconfig: - 99 01 | |
# processname: glassfish | |
# config: /etc/glassfish/glassfish.conf | |
# config: /etc/sysconfig/glassfish | |
# pidfile: /var/run/glassfish.pid | |
# description: glassfish is a JavaEE Application Server |
package test_mqtt; | |
import java.io.BufferedInputStream; | |
import java.io.FileInputStream; | |
import java.io.FileReader; | |
import java.security.KeyPair; | |
import java.security.KeyStore; | |
import java.security.Security; | |
import java.security.cert.CertificateFactory; | |
import java.security.cert.X509Certificate; |
#!/bin/sh | |
# | |
# WildFly control script | |
# | |
# chkconfig: - 80 20 | |
# description: WildFly startup script | |
# processname: wildfly | |
# pidfile: /var/run/wildfly/wildfly.pid | |
# config: /etc/default/wildfly.conf | |
# |
#! /bin/bash | |
# Wrapper for "stata -b" which issues an informative error msg and appropriate | |
# (i.e., non-zero) return code | |
# The basic idea for this script (including grepping the log file to determine | |
# whether there was an error) was taken from a similar script posted by Brendan | |
# Halpin on his blog at http://teaching.sociology.ul.ie/bhalpin/wordpress/?p=122 | |
args=$# # number of args |