Skip to content

Instantly share code, notes, and snippets.

View iversond's full-sized avatar

Dan Iverson iversond

View GitHub Profile
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 */
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 January 15, 2016 19:40
Custom PeopleSoft signon page for two systems. See the project for all the code: https://github.com/psadmin-io/custom_signon_page_2_targets
<!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 January 15, 2016 19:41
Signon JavaScript for the 2 target login page. See the full project here: https://github.com/psadmin-io/custom_signon_page_2_targets
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 January 15, 2016 19:44
URLs for the Custom Signon Page. View the full project here: https://github.com/psadmin-io/custom_signon_page_2_targets
# 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 March 23, 2016 13:36
Change the DPK Disk Space Requirements
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 March 23, 2016 13:36
Change the DPK Role for a machine. In this example, install just the web tier.
node default {
include ::pt_role::pt_tools_pia
}
@iversond
iversond / psft_customizations.yaml
Last active November 21, 2021 01:01
Enable the WSL and PeopleCode Debugger services when building a PeopleSoft Image.
---
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 April 4, 2016 20:21
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"
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 April 6, 2016 13:23 — forked from dlprice/ProjectView.sql
Modified the "PeopleSoft Project View" to show the objects migrated to a database in the last 7 days (Oracle).
SELECT p.projectname,
p.lastupdoprid,
p.lastupddttm,
CASE PI.OBJECTTYPE
WHEN 0
THEN 'Records'
WHEN 1
THEN 'Indexes'
WHEN 2
THEN 'Fields'