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
<?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
$ git clone git://github.com/bmwcarit/Jnario.git
$ cd Jnario
$ git rev-parse HEAD
79807982cc96cccb48f8dcf5fc594aba7b5912f6
$ mvn clean install
......
@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
@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 / 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"
#!/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