Skip to content

Instantly share code, notes, and snippets.

@m-revetria
m-revetria / SSLPoke.java
Created February 14, 2019 19:46 — forked from 4ndrej/SSLPoke.java
Test of java SSL / keystore / cert setup. Check the commet #1 for howto.
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) {
@m-revetria
m-revetria / mock-ajax.js
Last active August 29, 2015 13:56 — forked from zachlendon/gist:5295365
Jasmine Ajax for Ext
/*
Jasmine-Ajax : a set of helpers for testing AJAX requests under the Jasmine
BDD framework for JavaScript.
Supports both Prototype.js and jQuery.
https://github.com/pivotal/jasmine-ajax
Jasmine Home page: http://pivotal.github.com/jasmine
Pod::Spec.new do |s|
s.name = "XLKit"
s.version = "0.2.1"
s.license = {
:type => 'Copyright',
:text => <<-LICENSE
Copyright 2014 Xmartlabs. All rights reserved.
LICENSE
}