Skip to content

Instantly share code, notes, and snippets.

Warren Strange wstrange

Block or report user

Report or block wstrange

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wstrange
wstrange / genplugins.groovy
Created Aug 26, 2016
Jenkins script to list plugins
View genplugins.groovy
// go to http://localhost:8080/script
Jenkins.instance.pluginManager.plugins.each{
plugin ->
println ("${plugin.getShortName()}:${plugin.getVersion()}")
}
@wstrange
wstrange / create_AM_bootstrap.sh
Last active Jul 14, 2016
Create an OpenAM bootstrap file from environment variables
View create_AM_bootstrap.sh
#!/usr/bin/env bash
# Shell script to Create bootstrap file from env vars.
# redirect this to ~/openam/bootstrap
#
#
# This is what the template looks like
# From BootstrapCreator.java:
# "@DS_PROTO@://@DS_HOST@/@INSTANCE_NAME@" +
# "?user=@DSAMEUSER_NAME@&pwd=@DSAMEUSER_PWD@" +
# "&dsbasedn=@BASE_DN@" +
@wstrange
wstrange / djcert.sh
Last active Jun 24, 2016
Create a CA and a server certificate for OpenDJ using cfssl
View djcert.sh
#!/bin/bash
# Script to create a self signed CA using cfssl, and create
# server certs for DJ that are signed by this CA.
# Where we store the CA certificates
CA_HOME=~/etc/ca
# Where OpenDJ is insstalled
OPENDJ_HOME=~/packages/opendj
View docker.log
sh: can't create /proc/sys/net/ipv4/neigh/weave/base_reachable_time: Read-only file system
1491e5db25cf1c4e06bb3b8c3f79e27004aedfb280a8e655ad1b64005cd9c478
weave container is not present. Have you launched it?
Starting LocalKube...
Starting etcd...
2016-04-11 16:18:32.323453 I | etcdserver: recovered store from snapshot at index 30003
2016-04-11 16:18:32.323493 I | etcdserver: name = kubeetcd
2016-04-11 16:18:32.323499 I | etcdserver: data dir = /var/localkube/data
2016-04-11 16:18:32.323505 I | etcdserver: member dir = /var/localkube/data/member
2016-04-11 16:18:32.323509 I | etcdserver: heartbeat = 100ms
@wstrange
wstrange / kube-setcontext.sh
Last active Apr 4, 2016
Setup kubectl context for using helm local docker solution
View kube-setcontext.sh
!/usr/bin/env bash
# Copyright 2016 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@wstrange
wstrange / Dockefile
Created Jan 13, 2016
Dockerfile test
View Dockefile
# Dockerfile to package this app up so we can run it on kubernetes
# This will run pub get and build the app.
# When run it expects to find bin/server.dart
FROM google/dart-runtime
@wstrange
wstrange / getnightly.sh
Created Sep 15, 2015
Download Nightly ForgeRock binaries
View getnightly.sh
#!/bin/bash
# Script that downloads all nightly builds into a staging directory
# Vagrant guests should have this staging directory mounted locally.
# This script leaves the product names as generic (no release in the name), but creates a RELEASE file
# with all of the version info. It is suggest to copy this RELEASE file into the guest to have a record
# of which binaries got installed.
dir=./staging/
@wstrange
wstrange / cts-setup.sh
Created Aug 6, 2015
Modified version of CTS config script for OpenAM
View cts-setup.sh
#!/usr/bin/env bash
# Prepare CTS. A variant of the script that is in the Admin guide
#
# copyright (C) 2014 ForgeRock AS
#
# cts-setup.sh: This script installs and configures an external CTS data store.
# It assumes that you have downloaded the OpenDJ zip file to a local
# folder.
# Reset the tmp folder
View debug.log
amPolicy:06/30/2015 08:05:07:084 PM MDT: Thread[http-bio-8080-exec-22,5,main]: TransactionId[c1112768-d538-4bf3-8cdc-93387ec0b6cf]
Rendering policy request for action evaluate
amPolicy:06/30/2015 08:05:07:086 PM MDT: Thread[http-bio-8080-exec-22,5,main]: TransactionId[c1112768-d538-4bf3-8cdc-93387ec0b6cf]
Evaluating policy request for action evaluate under realm / within the application context test
Entitlement:06/30/2015 08:05:07:086 PM MDT: Thread[http-bio-8080-exec-22,5,main]: TransactionId[c1112768-d538-4bf3-8cdc-93387ec0b6cf]
URLResourceName: url query=null
Entitlement:06/30/2015 08:05:07:086 PM MDT: Thread[http-bio-8080-exec-22,5,main]: TransactionId[c1112768-d538-4bf3-8cdc-93387ec0b6cf]
[PolicyEval] PrivilegeEvaluator:init()
Entitlement:06/30/2015 08:05:07:086 PM MDT: Thread[http-bio-8080-exec-22,5,main]: TransactionId[c1112768-d538-4bf3-8cdc-93387ec0b6cf]
[PolicyEval] subject: id=demo,ou=user,dc=openam,dc=forgerock,dc=org
@wstrange
wstrange / todo_item.dart
Created May 3, 2015
todo_item angular 2 dart
View todo_item.dart
library todo_item;
import 'package:angular2/angular2.dart';
@Component(
selector: 'todo-item'
)
@View(template: r'''
<div>
<input type="checkbox" value="{{selected}}">
You can’t perform that action at this time.