Skip to content

Instantly share code, notes, and snippets.

View aaronwalker's full-sized avatar
☁️
FTaaS - Fixing things as a Service in the ⛈ and sometimes BTaaS 😉

Aaron Walker aaronwalker

☁️
FTaaS - Fixing things as a Service in the ⛈ and sometimes BTaaS 😉
View GitHub Profile
#!/bin/bash
if [ "x$JBOSS_HOME" = "x" ]; then
JBOSS_HOME="/opt/apps/jboss/current/jboss-as"
fi
if [ "x$JBOSS_SERVER" = "x" ]; then
JBOSS_SERVER="default"
fi
@aaronwalker
aaronwalker / updateVersion.sh
Created June 23, 2011 07:56
Update maven pom versions
find . -name 'pom.xml' | xargs sed -i "s/\<version\>1.0.1\<\/version\>/\<version\>1.0.2-SNAPSHOT\<\/version\>/g"
find . -name 'pom.xml-e' | xargs rm -f
find . -name 'pom.xml' | xargs sed -i -e "s/\<version\>1.0.1-SNAPSHOT\<\/version\>/\<version\>1.0.1\<\/version\>/g"
@aaronwalker
aaronwalker / StockList.java
Created January 12, 2012 02:19
Seam EntityQuery with static array of RESTRICTIONS
@Name("stockList")
public class StockList extends EntityQuery<Stock> {
private static final String EJBQL = "select stock from Stock stock";
private static final String[] RESTRICTIONS = {
"stock.employeeAssigned.employeeId = #{stockList.currentEmployee.employeeId}",
"lower(stock.barcode) like concat(lower(#{stockList.barcode}),'%')"
};
@aaronwalker
aaronwalker / git-svn-migrate-tags.sh
Created April 5, 2012 08:02
Migrate svn tags to git tags
#!/bin/sh
for i in `git branch -r | grep tags`
do
tag=`echo $i | cut -d '/' -f 2`
echo $tag
git tag $tag tags/$tag
#uncomment if you want to delete the branch
#git branch -r -d tags/$tag
done
$ git clone git://github.com/bmwcarit/Jnario.git
$ cd Jnario
$ git rev-parse HEAD
79807982cc96cccb48f8dcf5fc594aba7b5912f6
$ mvn clean install
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
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
@aaronwalker
aaronwalker / sha1_base64_encode
Created June 20, 2013 04:25
Uses openssl to generate an sh1 base64 encoded text
echo -n "mytext"| openssl sha1 -binary | base64
#!/bin/bash
#
# chkconfig: 345 88 12
# description: Karaf is a java container.
### BEGIN INIT INFO
# Provides: $activemq
### END INIT INFO
. /etc/init.d/functions
. /etc/profile.d/java.sh
@aaronwalker
aaronwalker / blueprint.xml
Last active December 6, 2016 01:27
sample blueprint xml
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
xmlns:camel="http://camel.apache.org/schema/blueprint"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0 http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0/blueprint-ext.xsd
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd
@aaronwalker
aaronwalker / osxdefaults
Created July 30, 2014 04:30
osx default
#!/bin/bash
# Set custom OS X defaults
# See: github.com/mathiasbynens/dotfiles
# General UI/UX
# ----------------------------------------------------------------------
# Disable Menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false