Skip to content

Instantly share code, notes, and snippets.

Dan Iverson iversond

Block or report user

Report or block iversond

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ExternalDynamicSecurity.peoplecode
Function DynamicSecurity()
Local string &URI, &Protocal, &ServerName, &LogFile, &External, &userID;
Local number &ProtocalLength, &ServerNameEnd, &ServerNameLength;
Local File &MyFile;
/* Get Login URI */
&URI = %Request.ContentURI;
/* Determine if SSL is used */
View IO_RCF_TEST.SampleApp.OnExecute.peoplecode
import PT_RCF:ServiceInterface;
class SampleApp extends PT_RCF:ServiceInterface
method Execute();
end-class;
method Execute
/+ Extends/implements PT_RCF:ServiceInterface.execute +/
MessageBox(0, "Test", 0, 0, "Injecting Code");
@iversond
iversond / psadmin.html
Created Jan 15, 2016
Custom PeopleSoft signon page for two systems. See the project for all the code: https://github.com/psadmin-io/custom_signon_page_2_targets
View psadmin.html
<!DOCTYPE html>
<html dir=ltr lang=en>
<head>
<title><%=138%></title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,user-scalable=yes" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
@iversond
iversond / psadmin.js
Created Jan 15, 2016
Signon JavaScript for the 2 target login page. See the full project here: https://github.com/psadmin-io/custom_signon_page_2_targets
View psadmin.js
function setLogin(defaultURL) {
var docLoc = new String(document.location);
var deepURL = "";
var iLast = docLoc.lastIndexOf("?&");
if (docLoc.length == (iLast + 2)) {
docLoc = docLoc.substring(0, iLast);
}
@iversond
iversond / text.properties
Created Jan 15, 2016
URLs for the Custom Signon Page. View the full project here: https://github.com/psadmin-io/custom_signon_page_2_targets
View text.properties
# psadmin.io customizations
# at the bottom of the file
138=HR92DMO | Login
8999=DEMO
9000=https://hr.psadmin.io/psp/ps/?cmd=login
9001=https://fs.psadmin.io/psp/ps/?cmd=login
@iversond
iversond / psft-setup.ps1
Created Mar 23, 2016
Change the DPK Disk Space Requirements
View psft-setup.ps1
function check_filesystem() {
# -------------------
# Removed Excess Code
# -------------------
ElseIf ("${global:env_type}" -eq "dbtier") {
check_disk_space "${disk_drive}" 75 "Checking if Folder ${global:psft_base_dir} has Enough Space"
}
Else {
# Change the value in this line to adjust the disk space requirements
check_disk_space "${disk_drive}" 80 "Checking if Folder ${global:psft_base_dir} has Enough Space"
@iversond
iversond / site.pp
Created Mar 23, 2016
Change the DPK Role for a machine. In this example, install just the web tier.
View site.pp
node default {
include ::pt_role::pt_tools_pia
}
@iversond
iversond / psft_customizations.yaml
Last active Aug 25, 2016
Enable the WSL and PeopleCode Debugger services when building a PeopleSoft Image.
View psft_customizations.yaml
---
appserver_domain_list:
"%{hiera('appserver_domain_name')}":
os_user: "%{hiera('domain_user')}"
ps_cfg_home_dir: "%{hiera('ps_config_home')}"
template_type: small
db_settings:
db_name: "%{hiera('db_name')}"
@iversond
iversond / WebLogicExtendedHTTPAccessLogGrok
Last active Apr 4, 2016
Custom grok pattern for WebLogic's Extended HTTP Access Log. "c-ip cs-username date time cs-method cs-uri sc-status bytes s-ip cs(user-agent) time-taken"
View WebLogicExtendedHTTPAccessLogGrok
WL_EXTENDED %{IPORHOST:clientip}\t%{USER:auth}\t%{WL_TIMESTAMP:timestamp}\t%{WORD:verb}\t%{NOTSPACE:request}\t%{NUMBER:response}\t%{NUMBER:bytes}\t%{WL_WEB_SERVER:webserver}\t%{QS:useragent}\t%{NUMBER:duration}
WL_TIMESTAMP %{YEAR}-%{MONTHNUM}-%{MONTHDAY}\t%{TIME}
WL_WEB_SERVER %{IPORHOST:server}\:%{NUMBER:port}
@iversond
iversond / MigratedObjectsThisWeek.sql
Last active Apr 6, 2016 — forked from dlprice/ProjectView.sql
Modified the "PeopleSoft Project View" to show the objects migrated to a database in the last 7 days (Oracle).
View MigratedObjectsThisWeek.sql
SELECT p.projectname,
p.lastupdoprid,
p.lastupddttm,
CASE PI.OBJECTTYPE
WHEN 0
THEN 'Records'
WHEN 1
THEN 'Indexes'
WHEN 2
THEN 'Fields'
You can’t perform that action at this time.