Skip to content

Instantly share code, notes, and snippets.

View apetro's full-sized avatar
🏠
Working from home

Andrew Petro apetro

🏠
Working from home
View GitHub Profile
@apetro
apetro / setenv.sh
Created June 24, 2014 15:09
setenv.sh from OS X
JAVA_OPTS="$JAVA_OPTS -XX:+PrintCommandLineFlags -XX:MaxPermSize=1024m -Xms2048m -Xmx2048m -Djsse.enableSNIExtension=false"
# Caveat: this is a quick paste. I'm probably doing other weird stuff to get my environment to work. :/
@apetro
apetro / uP-4-1-0_release-notes.md
Last active August 29, 2015 14:03
uPortal 4.1.0 Release notes draft

uPortal 4.1.0 Release Description

uPortal 4.1 is a "big" "minor" uPortal release including a bunch of features. This document steps through some of the changes in this release, linking to selected JIRA issues and to the relevant uPortal manual wiki pages. Much more detail is available in the under-continued-development [uPortal 4.1 manual wiki space][], in the full [issue-tracker-generated release notes][], and in the source control logs.

Security fixes

uPortal 4.1 includes several important security fixes (most of which were previously addressed in 4.0 patch releases).

@apetro
apetro / RequestParameterLoggingFilter.java
Created August 20, 2014 21:13
RequestParameterLoggingFilter
package org.jasig.portal.web;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;
import java.util.Map;
@apetro
apetro / regions.xsl
Created August 27, 2014 13:21
Bucky theme regions.xsl at 59efa651f265985dfbfb7cd031c7ae575ab955b3
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to Jasig under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Jasig 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:
@apetro
apetro / MainControllerTest.java
Created September 23, 2014 20:08
Trivial JUnit test for a Spring Portlet MVC controller
package edu.wisc.my.portlet.identityLinking.mvc.portlet;
import edu.wisc.my.portlet.identityLinking.model.NoPersonForEmplIdException;
import edu.wisc.my.portlet.identityLinking.model.Person;
import edu.wisc.my.portlet.identityLinking.service.IdentityLinkingService;
import org.junit.Test;
import org.springframework.web.portlet.ModelAndView;
import javax.portlet.PortletRequest;
import javax.portlet.RenderRequest;
@apetro
apetro / hrs-portlet.log
Created September 26, 2014 13:53
HRS portlet log entry showing url name-value pairs
2014-09-24 15:52:41,759 [uP-PortletExec-36-apetro-RENDER-[contact-information]] INFO edu.wisc.hrs.dao.url.SoapHrsUrlDao - Retrieved URL map (and updating the URL map cache) with these name : value pairs:
Request Absence : https://uat.ps.wisconsin.edu/psp/hrqa-fd/EMPLOYEE/HRMS/c/ROLE_EMPLOYEE.GP_ABS_EESS_REQ.GBL
Timesheet : https://uat.ps.wisconsin.edu/psp/hrqa-fd/EMPLOYEE/HRMS/c/ROLE_EMPLOYEE.TL_MSS_EE_SRCH_PRD.GBL
Web Clock : https://uat.ps.wisconsin.edu/psp/hrqa-fd/EMPLOYEE/HRMS/c/ROLE_EMPLOYEE.TL_SS_JOB_SRCH_CLK.GBL
Payable time detail : https://uat.ps.wisconsin.edu/psp/hrqa-fd/EMPLOYEE/HRMS/c/ROLE_EMPLOYEE.TL_MNG_PAY_VIEW_DT.GBL
Time Exceptions : https://uat.ps.wisconsin.edu/psp/hrqa-fd/EMPLOYEE/HRMS/c/ROLE_EMPLOYEE.TL_MNG_EX_PNL_GRP3.GBL
Time Management : https://uat.ps.wisconsin.edu/psp/hrqa-fd/EMPLOYEE/HRMS/s/WEBLIB_PTPP_SC.HOMEPAGE.FieldFormula.IScript_AppHP?pt_fname=HC_TIME_MANAGEMENT
Approve Absence : https://uat.ps.wisconsin.edu/psp/hrqa-fd/EMPLOYEE/HRMS/c/ROLE_MANAGER.GP_SS_ABS_APP
@apetro
apetro / logback.xml
Last active August 29, 2015 14:07
Profile selection logging example
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file redacted down to the configuration of the new appender and loggers to produce the above. -->
...
<configuration scan="true" scanPeriod="30 seconds">
<contextName>uPortal</contextName>
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
<resetJUL>true</resetJUL>
</contextListener>
@apetro
apetro / failing.log
Last active August 29, 2015 14:08
PortletRendererImplTest failing
~/code/github_jasig/uPortal [master|⚑ 34]
$ mvn clean test
...
Failed tests:
PortletRendererImplTest.doServeResourceCachedContentExpirationMethodTest:511
Wanted but not invoked:
portletCacheControlService.cachePortletResourceOutput(
@apetro
apetro / gist:6f7e1ddd41174e9dac9e
Created February 9, 2015 17:44
Bio for Apereo conference
Andrew is a software developer on the UW-Madison portal (uPortal) team, a uPortal committer, a long-time Apereo participant, has previously served on the uPortal steering committee, and occasionally serves as the release engineer for uPortal releases.
@apetro
apetro / apereo-2015-up-vision-bof-pt2.md
Created May 12, 2015 16:34
Apereo 2015 uPortal Product and Project Vision BoF : Part 2!

Session title : Apereo 2015 uPortal Product and Project Vision BoF : Part 2

Session description:

The uPortal vision BoF earlier in the conference will have queued interesting discussions and collaborations during the conference. This follow-on BoF session will pick up from the discussion of vision in light of what has transpired during the conference and focus on synthesizing opportunities from the conference and identifying next steps and worthwhile threads of conversation and collaboration to take from the conference and continue on the project public email lists and in public source control.

This may particularly feature discussion of and next steps related to transitioning to a Gradle-based build for the uPortal software products.