I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| U2FsdGVkX18bL0goCbiTjHFGnkwWagZSYjhvkaU1hXA= |
| #!/usr/bin/env sh | |
| # Wait for a HTTP service to be OK (return code 200) before trying to start another service. | |
| echo "Stalling for SERVICE" | |
| while true; do | |
| status=$(curl --write-out %{http_code} --silent --output /dev/null http://service.domain/endpoint) | |
| echo "Status: ${status}" | |
| if [ "${status}" == "200" ]; then | |
| break | |
| else |
| import com.android.build.gradle.AppPlugin | |
| task consolidateJunitXml { | |
| description 'Copies JUnit XML reports into a single directory so SonarQube can import them all' | |
| doLast { | |
| def dest = file("${buildDir}/allJunit") | |
| delete dest | |
| copy { | |
| from "${buildDir}/test-results/debug" | |
| into dest |
| # | |
| # Launches configured Graylog 2.3.1 instance | |
| # | |
| # - Docker-compose 1.16 required | |
| # - Please configure following according to your network: | |
| # * gelf-address URL (for each container) | |
| # * GRAYLOG_WEB_ENDPOINT_URI | |
| # - After launch define GELF tcp and GELF udp inputs in graylog web ui | |
| # - Containers send logging to the graylog itself | |
| # - By default tuned to 30 days retention |
| import javax.servlet.*; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; | |
| import java.io.IOException; | |
| import java.net.URI; | |
| import java.net.URISyntaxException; | |
| import static java.lang.String.format; | |
| public class HttpsFilter implements Filter { |
| Disable vim automatic visual mode on mouse select | |
| issue: :set mouse-=a | |
| add to ~/.vimrc: set mouse-=a |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| # turn a jar with a Main-Class into a stand alone executable | |
| (echo '#!/usr/bin/env java -jar'; cat blahblah.jar) > blah | |
| # turn a jar with a particular main clas into a stand alone executable | |
| (echo '#!/usr/bin/env java -jar package.MainClass'; cat blahblah.jar) > blah |
| import javax.net.ssl.SSLSocket; | |
| import javax.net.ssl.SSLSocketFactory; | |
| import java.io.*; | |
| /** Establish a SSL connection to a host and port, writes a byte and | |
| * prints the response. See | |
| * http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
| */ | |
| public class SSLPoke { | |
| public static void main(String[] args) { |
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| readonly test_mode=false | |
| else | |
| echo "Running TEST mode. No destructive changes" | |
| readonly test_mode=true | |
| fi | |
| JQPATH=$(which jq) |