Skip to content

Instantly share code, notes, and snippets.

View pglezen's full-sized avatar

Paul Glezen pglezen

View GitHub Profile
@pglezen
pglezen / ccConsumer.py
Created October 7, 2014 03:17
Script WAS WS-Security client policy set bindings
import sys
appName = "CCConsumerApp"
serviceName = "WebService:/CCConsumerWeb.war:{urn:issw:bare:wssec:cc:query}CCService"
policySetExport = "\\policySets\\Sign Timestamp.zip"
policySetName = "Sign Timestamp"
clientBindingExport = "\\policySets\\CCConsumerBindings.zip"
clientBindingName = "CCConsumerBindings"
print "Cell name", AdminControl.getCell()
@pglezen
pglezen / JerseyAuth.java
Last active August 29, 2015 14:06
Use Jersey to authenticate with WebSphere Application Server LTPA cookies.
package org.acme.cc.client.http;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
@pglezen
pglezen / gitLogAliases.md
Last active December 31, 2015 19:39
A few useful log aliases for Git.

This is a list of Git aliases that are really handy for me.

logdate

This alias logdate will list entries, one per line.

git config --global alias.logdate "log --pretty=format:'%h %cd [%an] %s' --graph --date=short"

By itself, it will list all commits for the repository. So you usually want to add a limiting parameter. So see only the last five entries: