Skip to content

Instantly share code, notes, and snippets.

View kennethliquidpubs's full-sized avatar

kennethliquidpubs

View GitHub Profile
@kennethliquidpubs
kennethliquidpubs / gist:5035111
Created February 26, 2013 01:49
Java AWS SDK S3 query string authentication
import java.util.Calendar;
import java.util.TimeZone;
import javax.crypto.Mac;
import javax.crypto.spec.*;
import org.apache.commons.codec.binary.Hex;
import java.security.NoSuchAlgorithmException;
import java.security.InvalidKeyException;
import java.net.URLEncoder;
import org.apache.commons.codec.binary.Base64;
import java.io.UnsupportedEncodingException;
@kennethliquidpubs
kennethliquidpubs / gist:4616992
Created January 24, 2013 01:58
/etc/tomcat7/server.xml - change to ports 80 and 443
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!-- change the ports from 8080 and 8443 to 80 and 443 respectively -->
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="UTF-8"