Skip to content

Instantly share code, notes, and snippets.

Raymond Augé rotty3000

Block or report user

Report or block rotty3000

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
View gist:a68c8ea494f4c1b2e304822dc8a72a66
~]$ baseline -v ~/.m2/repository/org/ow2/asm/asm/7.0-beta/asm-7.0-beta.jar ~/.m2/repository/org/ow2/asm/asm/6.2.1/asm-6.2.1.jar
===============================================================
org.objectweb.asm 7.0.0.beta-6.2.1
===============================================================
Package Delta New Old Suggest If Prov.
org.objectweb.asm MAJOR 7.0.0.beta 6.2.1 ok -
MAJ class org.objectweb.asm.ClassVisitor
+ method visitNestHost(java.lang.String)
+ return void
- method visitNestHostExperimental(java.lang.String)
@rotty3000
rotty3000 / build.gradle
Created Apr 24, 2017
gradle flatten while copy
View build.gradle
/*
Where:
origin/
├── foo
│   └── fum.txt
├── bar
│   └── other.txt
└── biz
   └── baf
   └── bop
@rotty3000
rotty3000 / vcs-repository-litmus-test.md
Last active Sep 16, 2017
Litmus Test for VCS Repository Separation
View vcs-repository-litmus-test.md

Litmus Test for VCS Repository Separation

How do you or should you break a monolithic repository into smaller pieces?

The question of whether separation should take place and how granular it should be is a debate that happens in very significantly large project I've been involved with to date.

If the goal is to make developers lives easier, then the split must certainly not cause more harm than good. There can't be a hard and fast rule such as "each module should have it's own repository" because the day to day impact of a project maintained by a single individual could be horrendous if the project contains hundreds of modules. On the other hand, a project with thoudsands of developers and thoudsands of modules likely will struggle equaly with such a rule.

Therefore I'm working on a initial litmus test to determine the criteria for breaking a large repository into several smaller repositories.

@rotty3000
rotty3000 / first-stacktrace-log
Created Nov 24, 2015
non-workspace bnd gradle plugin double build
View first-stacktrace-log
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1365)
at com.liferay.ant.bnd.version.VersionVerifierPlugin.verify(VersionVerifierPlugin.java:43)
at aQute.bnd.osgi.Verifier.doVerifierPlugins(Verifier.java:544)
at aQute.bnd.osgi.Verifier.verify(Verifier.java:536)
at aQute.bnd.osgi.Builder.doVerify(Builder.java:503)
at aQute.bnd.osgi.Builder.build(Builder.java:152)
at aQute.bnd.osgi.Builder$build$1.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
@rotty3000
rotty3000 / gradle.log
Created Nov 13, 2015
failing bnd non-workspace plugin build
View gradle.log
[rotty@rotty-XPS-15-9530 (pr-1030 *$) portal-rest-extender-test]$ ../../../gradlew clean deploy --stacktrace
Configuration on demand is an incubating feature.
:portal:portal-rest-extender-test:cleanBuildCSS UP-TO-DATE
:portal:portal-rest-extender-test:cleanBuildXSD UP-TO-DATE
:portal:portal-rest-extender-test:cleanCompileJSP
:portal:portal-rest-extender-test:cleanCompileJava
:portal:portal-rest-extender-test:cleanCompileTestIntegrationJava
:portal:portal-rest-extender-test:cleanCompileTestJava UP-TO-DATE
:portal:portal-rest-extender-test:cleanConfigJSModules UP-TO-DATE
:portal:portal-rest-extender-test:cleanCopyLibs
View WikiGroupServiceConfiguration.java
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
@rotty3000
rotty3000 / spin.sh
Created Jul 6, 2015
bash: spin while process completes in the background
View spin.sh
#!/bin/bash
spin() {
local s=("|" "/" "-" '\x5C')
local i=0
while kill -0 $1 2> /dev/null; do
echo -en "[${s[$i]}]"\\r
i=$(( $i == 3 ? 0 : $i + 1 ))
sleep .1
done
@rotty3000
rotty3000 / setup.sh
Last active Aug 29, 2015
Build equinox osgi, services, http.servlet, and run http.servlet.tests
View setup.sh
#!/bin/bash
checkoutMasterSubmodule() {
(
local name=${1##*/}
echo "[----> Initing Submodule '${name}']"
git submodule update "${name}" 2>/dev/null
cd "${name}"
git checkout master 2>/dev/null
)&
@rotty3000
rotty3000 / setup-liferay.sh
Created Mar 31, 2015
Setting up Liferay 7.0 M4 with details on OSGi
View setup-liferay.sh
#!/bin/bash
# Get it!
wget http://sourceforge.net/projects/lportal/files/Liferay%20Portal/7.0.0%20M4/liferay-portal-tomcat-7.0-ce-m4-20150224120313668.zip/download -O liferay-portal-tomcat-7.0-ce-m4.zip
# Unzip it!
unzip liferay-portal-tomcat-7.0-ce-m4.zip
# Trim off some legacy apps!
rm -rf liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/calendar-portlet liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/marketplace-portlet liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/opensocial-portlet liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/web-form-portlet liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/kaleo-web liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/notifications-portlet liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/resources-importer-web liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/sync-web liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/welcome-theme
@rotty3000
rotty3000 / DDMJsResources.java
Last active Aug 29, 2015
resources example, serving any resources in your bundle
View DDMJsResources.java
@Component(
property = {
"osgi.http.whiteboard.resource.pattern=/kaleo/resources/*",
"osgi.http.whiteboard.resource.prefix=/",
"osgi.http.whiteboard.servlet.pattern=/kaleo/resources/*" // temporary since this was the old property
},
service = Servlet.class
)
public class DDMJsResources extends HttpServlet {
}
You can’t perform that action at this time.