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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / github_as_wiki_transcript.md
Created June 24, 2014 13:23
Transcript of GitHub as Wiki lightning talk

GitHub as a Wiki

Note: this is a reasonably faithful verbatim transcript of a live conference lightning talk, not a re-worked blog format presentation of this content.

Links:

  • [Slides][]
  • [YouTube recording of presentation][]
  • [Lanyrd entry][]