Skip to content

Instantly share code, notes, and snippets.

@fishnix
fishnix / Run output
Created May 4, 2012 20:20 — forked from nickanderson/Run output
How to override bundle values with passed in paramaters
cf-agent -KIf ./paramaterized_bundle_override_defaults.cf
R: mycustomvalue <- this one was my value
R: ubuntuvalue2 <- I didnt override this one
@fishnix
fishnix / gist:2568392
Created May 1, 2012 14:39
Starting child with admin:create -furl mvn:edu.yale.its.services/yale-master-features/1.0.0/xml/features -f yale-master child0
10:36:49,526 | WARN | rint Extender: 2 | FeaturesServiceImpl | res.internal.FeaturesServiceImpl 927 | 39 - org.apache.karaf.features.core - 2.2.2.fuse-04-06 | Unable to add features repository mvn:edu.yale.its.services/yale-master-features/1.0.0/xml/features at startup
java.lang.RuntimeException: URL [mvn:edu.yale.its.services/yale-master-features/1.0.0/xml/features] could not be resolved.
at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:195)
at org.ops4j.pax.url.mvn.internal.AetherBridgeConnection.getInputStream(AetherBridgeConnection.java:68)
at org.apache.karaf.features.internal.FeatureValidationUtil.validate(FeatureValidationUtil.java:49)
at org.apache.karaf.features.internal.FeaturesServiceImpl.validateRepository(FeaturesServiceImpl.java:199)
at org.apache.karaf.features.internal.FeaturesServiceImpl.internalAddRepository(FeaturesServiceImpl.java:210)
at org.apache.karaf.features.internal.FeaturesServiceImpl.start(FeaturesServiceImpl.java:925)
at sun.reflec
@fishnix
fishnix / gist:2568383
Created May 1, 2012 14:38
parent instance org.ops4j.pax.url.mvn.cfg
################################################################################
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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
@fishnix
fishnix / gist:2568296
Created May 1, 2012 14:26
child instance org.ops4j.pax.url.mvn.cfg
################################################################################
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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
@fishnix
fishnix / gist:2558101
Created April 30, 2012 12:57
more karaf features maven puke
[INFO]
[INFO] --- features-maven-plugin:2.2.5:generate-features-xml (generate-features-xml) @ yale-master-feature ---
[INFO] Step 1: Building list of provided bundle exports
[INFO] ...done!
[INFO] Step 2 : No Bundle file supplied for building list of exports
[INFO] ...done!
[INFO] Step 3 : Discovering bundles in Maven dependencies
[INFO] Discovered org.apache.karaf:org.apache.karaf.main:jar:2.2.2-fuse-04-06:compile
[INFO] Discovered org.apache.karaf:org.apache.karaf.client:jar:2.2.2-fuse-04-06:compile
[INFO] Discovered org.apache.aries.testsupport:org.apache.aries.testsupport.unit:jar:0.3:compile
@fishnix
fishnix / gist:2510868
Created April 27, 2012 17:07
karaf features maven puke
dhcp-128-36-182-202:yale-master-feature fish$ mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building yale-master-feature feature 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> features-maven-plugin:2.2.5:generate-features-xml (generate-features-xml) @ yale-master-feature >>>
[INFO]
[INFO] <<< features-maven-plugin:2.2.5:generate-features-xml (generate-features-xml) @ yale-master-feature <<<
@fishnix
fishnix / gist:2151650
Created March 21, 2012 19:22
merge s9y
git clone git@github.com:fishnix/Serendipity.git -b 1.6
cd Serendipity
git checkout -b upstream/1.6
git remote add upstream https://github.com/s9y/Serendipity.git
git pull upstream 1.6
git checkout 1.6
git merge upstream/1.6
git push
@fishnix
fishnix / foobar.example.com_deployment_guide_persist.irule
Created March 19, 2012 13:30
final exchange persistence irule
ltm rule foobar.example.com_deployment_guide_persist {
## iRule to select pool and persistence method when all Exchange Client
## Access HTTP-based services are accessed through the same BIG-IP virtual
## server. This iRule will use an HTTP header inserted by a BIG-IP Edge
## Gateway for persistence (if that header is present); otherwise it will
## set persistence according to traditional methods.
## Although it is possible to send all connections to the same pool,
## advanced health monitors generally check only a specific connection
@fishnix
fishnix / exchange_logging_irule
Created March 14, 2012 18:56
exchange logging irule
when HTTP_REQUEST priority 100 {
switch -glob -- [string tolower [HTTP::path]] {
"/ews*" {
if { [HTTP::header exists "User-Agent"] } {
log local0. "EWS traffic,[IP::client_addr],[HTTP::header User-Agent]"
} else {
log local0. "EWS traffic,[IP::client_addr],No User-Agent"
}
if { [HTTP::header exists "Authorization"] } {
log local0. "EWS traffic,[IP::client_addr],Authorization Header"
@fishnix
fishnix / gist:2023509
Created March 12, 2012 17:29
exchange snat pool irule
when RULE_INIT {
# Use a local array to configure SNAT addresses.
# These addresses do not need to be defined in a SNAT pool or elsewhere;
# they simply need to be free IP addresses LTM can use to as a source
# for server-side connections, and are typically on the same subnet as
# the pool members. In this example, we use three addresses. Replace
# these with free IP addresses appropriate to your network topology.
# Follow the pattern of the existing addresses to add more than three.
set static::snat_ips(0) 10.0.0.1
set static::snat_ips(1) 10.0.0.2