Skip to content

Instantly share code, notes, and snippets.

View r351574nc3's full-sized avatar

Leo (중광) Przybylski r351574nc3

View GitHub Profile
@r351574nc3
r351574nc3 / BetterBusinessObjectCast.java
Last active December 13, 2015 22:19
Code describing an elegant cast solution using Generics
SourceAccountingLine accountingLine = document.<AccountingDocument>cast().getSourceAccountingLine();
SourceAccountingLine sourceLine = form.<TransferOfFundsForm>cast().getDocument().<AccountingDocument>cast().getSourceAccountingLine();
@r351574nc3
r351574nc3 / Vagrantfile
Created October 11, 2012 23:23
Training and Automating Development Environment Setup with Vagrant and Puppet
Vagrant::Config.run do |config|
config.vm.box = "KFSDev"
config.vm.box_url = "http://dl.dropbox.com/u/883064/F16.box"
config.vm.provision :puppet, :module_path => "modules"
end
@r351574nc3
r351574nc3 / sample.tex
Created September 16, 2012 21:00
Kuali Days LaTeX Beamer Template
\documentclass[xcolor=dvipsnames,14pt]{beamer}
\usetheme{kualidays2012}
\usecolortheme[RGB={125,25,25}]{structure}
\setbeamerfont{structure}{family=\rmfamily,series=\bfseries}
\setbeamerfont{subtitle}{family=\sffamily,series=\bfseries}
\setbeamercolor{normal text}{bg=brown!46}
\begin{document}
\end{document}
@r351574nc3
r351574nc3 / TargetSchema-dat.xml
Created September 12, 2012 17:02
Liquibase CustomChange for Migrating Across RDBMS
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">
<changeSet author="kuali (generated)" id="CM-156-1">
<customChange class="org.kualigan.tools.liquibase.change.ext.MigrateData">
<param name="sourceUrl" value="jdbc:oracle:thin:@localhost:1521:XE" />
<param name="sourceUser" value="testuser" />
<param name="sourcePass" value="password" />
</customChange>
</changeSet>
</databaseChangeLog>
@r351574nc3
r351574nc3 / install-java-alternatives1.sh
Created September 4, 2012 18:03
Updating Default Java via Ubuntu Alternatives
update-alternatives --install /usr/bin/java java /var/lib/jenkins/tools/JDK_6/bin/java 99
@r351574nc3
r351574nc3 / newweb.xml
Created August 28, 2012 09:28
TrimWhitespaces
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>trimSpaces</param-name>
<param-value>true</param-value>
@r351574nc3
r351574nc3 / rice-config.xml
Last active October 9, 2015 11:08
Automated Workflow XML Ingestion
kfs-config/work/dev/kfs/staging/workflow/pending/
@r351574nc3
r351574nc3 / Example.jsp
Created August 27, 2012 20:29
Parameterized Values Finder
<jsp:useBean id="paramMap" class="java.util.HashMap" />
@r351574nc3
r351574nc3 / .bash_profile
Created August 14, 2012 08:02
JRebel Usage
MAVEN_OPTS="$MAVEN_OPTS -javaagent:$HOME/jrebel.jar"
export MAVEN_OPTS
@r351574nc3
r351574nc3 / encrypt_password.sh
Created July 26, 2012 21:45
kfs maven plugin usage
eo@jabberwocky~
(14:27:44) [205] echo YOUROWNPASSWORD | openssl pkeyutl -encrypt -pubin -inkey id_rsa.pub | base64
G2waVJEFz4TfFDkghjEQmVLuR7G3B8aOE8S7FeAvcIKRx4L34N9NOXAPzvZktubUirDL1ioYf1PbZwcwqlQsZMMx+xht8WA6EJjLkAt6UZYGaDa9TMUloCLbrI7LaF0a0HmMNvQwjFQUPoSkmHkvi4mfWS7bfx0V0viaz6LQxcQeIGaiYzaMGHWWrEVRpGPD30e0rdvBwVlTL4ztB+kgkfuuZYDSZBsbPeNfJZEZZ4yw0kDx/nybHCt7tYvCD3FtSyQS7QKWk7n01iObdVBIE1Z4UrbgIaci/0iP0mRi8+ytF9w3rRKylTNLahkzru/O1vwPwGYHC0lPJxuZw6J4pVvglObE+ZiWYsL0JCsHkGon+7rZocOnOJCNIMUq+Th4Rq8JNhqXA6V8nuRD6LuzvaDgZiixIyGgtvcg8PskY4y27TkTlUNIGM2X4TGBkJmRsFAfvcaqwBmcGvnh4q54j4BS/eOriBfxk4BWnuwJD+peOl/Bkwa0ws9QCcOP+APxihmNjirpMNXJfaUNSnrc+Hm8SZvB+jgmSHm9SkZOaY6dvdo5auvjYofWMC+bMXASpWwiqpgeiCRfSB6z6ZCbybc/cmZAdUHK1jeG8zf9qIgXxc1pMYEhutei7rJULi9+wkBB2kx/J70ROKUHcuVaII4LOQm6w6XEzA48U4gXhZQ=