Skip to content

Instantly share code, notes, and snippets.

View r351574nc3's full-sized avatar

Leo (중광) Przybylski r351574nc3

View GitHub Profile
@r351574nc3
r351574nc3 / kfs-overlay-pom-ed1.xml
Created February 27, 2012 19:12
rSmart Overlay POM File
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!--
The default build of this project targets a servlet 2.4 web container. Profiles are provided for
targeting different environments.
-->
<modelVersion>4.0.0</modelVersion>
<groupId>com.rsmart.kuali</groupId>
@r351574nc3
r351574nc3 / kfs-public-pom.xml
Created March 2, 2012 06:59
Overriding kuali POM distributionManagement Settings
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
...
...
<distributionManagement>
<repository>
<id>Maven Central</id>
<url>http://repo1.maven.org/</url>
</repository>
<site>
@r351574nc3
r351574nc3 / core-pom.xml
Created March 19, 2012 06:24
kc-3.2 pom changes
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!--
The default build of this project targets a servlet 2.5 web container.
-->
<modelVersion>4.0.0</modelVersion>
<groupId>org.kuali.kra</groupId>
<artifactId>kc-parent</artifactId>
@r351574nc3
r351574nc3 / DemonstrationGradeEncryptionServiceImpl.java
Last active October 6, 2015 21:17
External Decryption for Kuali
/*
* Copyright 2006-2008 The Kuali Foundation
*
* Licensed under the Educational Community 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
*
* http://www.opensource.org/licenses/ecl2.php
*
* Unless required by applicable law or agreed to in writing, software
@r351574nc3
r351574nc3 / PropertyLoadingFactoryBean#decryptProps
Created July 8, 2012 02:01
Decrypting KFS Passwords on-the-fly
protected void decryptProps(final Properties props) {
final String keystore = props.getProperty("keystore.filename");
final FileInputStream fs = new FileInputStream(keystore);
final KeyStore jks = KeyStore.getInstance("JCEKS");
jks.load(fs, storepass.toCharArray());
fs.close();
final String storepass = props.getProperty("keystore.password");
final Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");
@r351574nc3
r351574nc3 / convert-to-pem.sh
Created July 8, 2012 03:05
openssl commands
r351574nc3@behemoth~
(20:22:31) [369]ssh-keygen -f /Users/r351574nc3/.ssh/id_rsa -e -m pem > id_rsa.pem
@r351574nc3
r351574nc3 / ec2_cleanup.sh
Created July 13, 2012 07:47
ec2-automation
#!/bin/bash
cat <<EOF
################################################################################
# Starting Snapshot and Volume Cleanup #
################################################################################
EOF
export EC2_PRIVATE_KEY=/home/ubuntu/.ssh/pk-7QMDI7QEWSI2MKKOA3GZSII4F54PW2TU.pem
export EC2_CERT=/home/ubuntu/.ssh/cert-7QMDI7QEWSI2MKKOA3GZSII4F54PW2TU.pem
@r351574nc3
r351574nc3 / gist:3135024
Created July 18, 2012 08:23
kfs maven archetype usage
% mvn archetype:generate -DarchetypeGroupId=org.kualigan.maven.archetypes -DarchetypeArtifactId=kfs-archetype -DarchetypeVersion=0.0.9 -DgroupId=org.kuali -DartifactId=kfs-tem -DpackageName=org.kuali -B -e
@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=
@r351574nc3
r351574nc3 / .bash_profile
Created August 14, 2012 08:02
JRebel Usage
MAVEN_OPTS="$MAVEN_OPTS -javaagent:$HOME/jrebel.jar"
export MAVEN_OPTS