Skip to content

Instantly share code, notes, and snippets.

@benleov
benleov / mail_write_script.sh
Last active Apr 5, 2016
This script writes emails piped from postfix into separate files.
View mail_write_script.sh
#!/bin/bash
#
# This script writes emails piped from postfix into separate files. It also removes
# new line delimiters which causes issues when viewing in Outlook.
#
# Setup:
#
# It requires lines in master.cf that looks something like this:
#
# to_filesystem unix - n n - - pipe
View fix_steam_links
View gist:06e2c4ab4d0ef4c04b42
<definitions name="HelloService"
targetNamespace="http://www.examplesite.com/wsdl/HelloService.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.examplesite.com/wsdl/HelloService.wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<message name="SayHelloRequest">
<part name="firstName" type="xsd:string" />
</message>
@benleov
benleov / gist:292fb7ee692e830f5dd1
Created Jul 7, 2014
Sample SOAP Client running over SSL(TLS)
View gist:292fb7ee692e830f5dd1
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URL;
import java.net.URLConnection;
import java.security.InvalidKeyException;
import java.security.KeyManagementException;