Skip to content

Instantly share code, notes, and snippets.

@wstrange
wstrange / oracle
Created September 7, 2011 19:43
Oracle startup script
#!/bin/bash
#
# oracle Init file for starting and stopping
# Oracle Database. Script is valid for 10g and 11g versions.
#
# chkconfig: 35 80 30
# description: Oracle Database startup script
# Source function library.
@wstrange
wstrange / proxypassexample
Created September 20, 2011 22:18
Proxy Pass Example
# Example Apache config to reverse proxy /ui to a back end app
# Also uses LDAP authentication on /ui and sets the REMOTE_USER header to the uid
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
@wstrange
wstrange / wlstart.sh
Created October 20, 2011 18:24
Startup script for Weblogic Admin domain and managed servers
#!/bin/bash
# Start up script for a weblogic admin domain and associated service domains
# This is meant for demos and interactive usage
# A new gnome-terminal will be launched to show the output. You need
# X running
#
# Usage: wlstart.sh domain servers..
# Example: wlstart.sh IDMDomain wls_oif1
@wstrange
wstrange / configfedlet.sh
Created November 4, 2011 21:25
Runs the fedlet configurator
#!/bin/sh
# Configure the fedlet
# remove the target
rm -fr ~/fedlet.old
mv ~/fedlet ~/fedlet.old
rm -f /var/tmp/metadata*
# Get the IDP meta data fresh from OIF
@wstrange
wstrange / config.json
Created November 5, 2013 00:50
OpenIG Sample config.json showing Tomcat form login
{
"_comment" : "Sample OpenIG config for tomcat form login. Assumes tomcat samples are deployed to instance localhost:48080",
"heap":{
"objects":[
{
"name":"HandlerServlet",
"type":"HandlerServlet",
"config":{
"handler":"DispatchHandler",
"baseURI":"http://openam.example.com:48080/"
input {
file {
type => idmRecon
start_position => beginning
path => "/opt/openidm/audit/recon.csv"
}
file {
type => idmActivity
start_position => beginning
path => "/opt/openidm/audit/activity.csv"
OIDCProviderIssuer https://openam.example.com:8443/openam
OIDCProviderAuthorizationEndpoint https://openam.example.com:8443/openam/oauth2/authorize
OIDCProviderTokenEndpoint https://openam.example.com:8443/openam/oauth2/access_token
OIDCProviderTokenEndpointAuth client_secret_post
OIDCProviderUserInfoEndpoint https://openam.example.com:8443/openam/oauth2/userinfo
#OIDCProviderJwksUri https://www.googleapis.com/oauth2/v2/certs
#OIDCPublicKeyFiles /etc/apache2/pub.pem
OIDCSSLValidateServer Off
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
</template>
<script>
@wstrange
wstrange / logstash for OpenIDM OpenAM OpenDJ
Created July 31, 2014 17:38
logstash tes - openidm openam opendj
input {
file {
type => idmRecon
# start_position => beginning
path => "/opt/openidm/audit/recon.csv"
}
file {
type => idmActivity
# start_position => beginning
path => "/opt/openidm/audit/activity.csv"
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#core_header_panel {
width: 800px;
height: 400px;
left: 0px;