Skip to content

Instantly share code, notes, and snippets.

View akutz's full-sized avatar

Andrew Kutz akutz

View GitHub Profile
@akutz
akutz / .profile
Last active August 29, 2015 14:02
Bash profile functions for managing local instances of Atlassian servers such as JIRA and Stash
# Stash
export STASH_HOME="$HOME/.stash"
export STASH_VERSION="3.0.4"
export STASH_CATALINA_HOME="$HOME/Servers/stash/$STASH_VERSION"
# Jira
export JIRA_HOME="$HOME/.jira"
export JIRA_VERSION="6.2.7"
export JIRA_CATALINA_HOME="$HOME/Servers/jira/$JIRA_VERSION"
@akutz
akutz / gist:a9fa4c23f928c7fe1213
Created May 26, 2015 00:08
Austin Memorial Day Flood Part Deux
https://www.flickr.com/gp/akutz/E5Ri8e
@akutz
akutz / Makefile
Created September 25, 2015 20:30
A makefile example
STAT_FILE_SIZE = stat --format '%s' $$FILE 2> /dev/null || stat -f '%z' $$FILE 2> /dev/null
CALC_FILE_SIZE := BYTES=$$($(STAT_FILE_SIZE)); SIZE=$$(($$BYTES / 1024 / 1024)); printf "$${SIZE}MB"
PRINT_FILE_SIZE := $(STAT_FILE_SIZE) $(CALC_FILE_SIZE)
MAX_PAD := 80
STATUS_DELIM := ....................................................................................................
START_STATUS = export FILE=$(1); export PAD_LEN=$$(($(MAX_PAD) - $${\#FILE})); printf "$$FILE"
PRINT_STATUS = export EC=$$?; cd $(_); if [ "$$EC" -eq "0" ]; then printf "%*.*s%s\n" 0 $$PAD_LEN "$(STATUS_DELIM)" "SUCCESS!"; else exit $$EC; fi
PARSE_RESULT = export EC=$$?; cd $(_); if [ "$$EC" -ne "0" ]; then exit $$EC; fi
GET_GOOS = $(shell echo $(1) | tr A-Z a-z)
@akutz
akutz / varset.bash
Last active September 25, 2015 20:36
varsety
#!/bin/bash
# flag for debug logging
DEBUG=true
# store the args passed to this script, just in case
ARGS=$@
# mark this build with an epoch. this is also the only place in the
# file where it's necessary to use a subshell
2011-12-20 10:01:26,307 [Worker-7] INFO o.e.m.c.u.i.UpdateConfigurationJob - Update started
2011-12-20 10:01:26,333 [Worker-7] INFO o.e.m.c.i.l.LifecycleMappingFactory - Using org.eclipse.m2e.jdt.JarLifecycleMapping lifecycle mapping for MavenProject: com.emc.vsi2:emc-vsi2-ui-war:1.0.0-SNAPSHOT @ /Users/akutz/Projects/workspaces/primary/emc-vsi2/emc-vsi2-ui-war/pom.xml.
2011-12-20 10:01:26,369 [Worker-7] INFO o.e.m.j.i.AbstractJavaProjectConfigurator - Adding source folder /emc-vsi2-ui-war/src/main/webapp
2011-12-20 10:01:26,369 [Worker-7] INFO o.e.m.j.i.AbstractJavaProjectConfigurator - Adding resource folder /emc-vsi2-ui-war/src/main/resources
2011-12-20 10:01:26,379 [Worker-7] INFO o.e.m.c.u.i.UpdateConfigurationJob - Update completed: 0 sec
2011-12-20 10:01:26,535 [Worker-9] INFO o.e.m.c.i.embedder.EclipseLogger - Using 'UTF-8' encoding to copy filtered resources.
2011-12-20 10:01:26,537 [Worker-9] INFO o.e.m.c.i.embedder.EclipseLogger - Copying 1 resource
2011-12-20 10:01:26,539 [Worker-9] INFO o
eclipse.buildId=M20110909-1335
java.version=1.6.0_29
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/akutz/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.jee.product -keyring /Users/akutz/.eclipse_keyring -showlocation
Warning
Tue Dec 20 10:01:26 CST 2011
Unable to update Maven configuration
eclipse.buildId=M20110909-1335
java.version=1.6.0_29
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.platform.ide
Command-line arguments: -product org.eclipse.platform.ide -data /Users/akutz/Projects/workspaces/primary/../runtime-m2e -dev file:/Users/akutz/Projects/workspaces/primary/.metadata/.plugins/org.eclipse.pde.core/m2e/dev.properties -os macosx -ws cocoa -arch x86 -consoleLog
Error
Tue Dec 20 10:29:07 CST 2011
Application error
10:58:06.800 [Worker-1] INFO o.e.m.c.u.i.UpdateConfigurationJob - Update started
10:58:06.800 [Worker-1] DEBUG o.e.m.c.i.p.r.ProjectRegistryManager - Refreshing: [/emc-vsi2-ui-war/pom.xml]
10:58:06.800 [Worker-1] DEBUG o.e.m.c.internal.embedder.MavenImpl - Reading Maven project: /Users/akutz/Projects/workspaces/primary/emc-vsi2/emc-vsi2-ui-war/pom.xml
10:58:06.804 [Worker-1] DEBUG o.e.m.c.internal.embedder.MavenImpl - Read Maven project: /Users/akutz/Projects/workspaces/primary/emc-vsi2/emc-vsi2-ui-war/pom.xml in 4 ms
10:58:06.806 [Worker-1] DEBUG o.e.m.c.i.l.LifecycleMappingFactory - Loading lifecycle mapping for MavenProject: com.emc.vsi2:emc-vsi2-ui-war:1.0.0-SNAPSHOT @ /Users/akutz/Projects/workspaces/primary/emc-vsi2/emc-vsi2-ui-war/pom.xml.
10:58:06.811 [Worker-1] INFO o.e.m.c.i.l.LifecycleMappingFactory - Using org.eclipse.m2e.jdt.JarLifecycleMapping lifecycle mapping for MavenProject: com.emc.vsi2:emc-vsi2-ui-war:1.0.0-SNAPSHOT @ /Users/akutz/Projects/workspaces/primary/emc-vsi2/emc-vsi2-ui-war/pom.
akutz: igorf: I am running into the issue described here - http://forum.springsource.org/showthread.php?113801-EclipseRT-OSGi-Bundle-facet-Maven-plugin-problems
[3:35pm] akutz: igorf: Essentially, when an OSGi facet is added to the project m2e can no longer update the project configuration because of "problems encountered while setting project description"
[3:35pm] igorf: ok
[3:35pm] igorf: I can't help with STS, sorry
[3:35pm] akutz: It's not STS
[3:35pm] akutz: I'm using vanilla Eclipse
[3:35pm] akutz: with the STS plug-ins
[3:36pm] igorf: are you able to reproduce the problem without the STS plugins?
[3:37pm] igorf: I am using m2e for maven-bundle-plugin projects quite extensively, so I know it works at least in some scenarios
[3:38pm] akutz: Hmm, I haven't tried.
=== Verbose logging started: 1/13/2012 11:49:35 Build type: SHIP UNICODE 5.00.7601.00 Calling process: C:\Windows\system32\msiexec.exe ===
MSI (c) (80:7C) [11:49:35:582]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
MSI (c) (80:7C) [11:49:35:582]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
MSI (c) (80:94) [11:49:35:590]: Resetting cached policy values
MSI (c) (80:94) [11:49:35:590]: Machine policy value 'Debug' is 0
MSI (c) (80:94) [11:49:35:590]: ******* RunEngine:
******* Product: emc-vsi-svpg-common-5.2.0-vmware-vsphere-WINDOWS-x86.msi
******* Action: