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
iversond / loadcache.pp
Last active Oct 21, 2019
This manifest can be used to run the LOADCACHE job on a fresh PeopleSoft Image. In your `psft_customizations.yaml` file, add `Cache Settings/ServerCacheMode: 1` to the app server `config_settings` section.
View loadcache.pp
$ps_home_dir = hiera('ps_home_location')
$gem_home = '/opt/puppetlabs/puppet/bin'
exec { 'install-psadmin_plus':
command => "${gem_home}/gem install psadmin_plus",
$appserver_domain_list = hiera('appserver_domain_list')
$appserver_domain_list.each | $domain_name, $app_domain_info | {
iversond / fixdpkbug.pp
Created Oct 21, 2019
Fix a DPK bug that prevents non-ACM app engines from running.
View fixdpkbug.pp
$dpk_location = hiera('dpk_location')
exec { 'fix-dpk-bug':
command => "sed -i 's/ae_program_name=\"PTEM_CONFIG\"/ae_program_name=resource[:program_id]/' ${dpk_location}/puppet/production/modules/pt_config/lib/puppet/provider/psae.rb",
path => '/usr/bin',
iversond / domains.yaml
Last active Sep 18, 2019
Default domain configuration for the DPK. Used with Hiera Hashing to allow environments to overrride/add to the defaults
View domains.yaml
# TNSnames.ora
db_host: "%{hiera('db_server')}"
db_port: "%{hiera('db_port')}"
db_protocol: TCP
db_service_name: "%{hiera('db_name')}"
# Application Servers
iversond /
Last active Sep 5, 2019
Shell script template to use when creating new scripts. Borrows work from JR Bing's in ps-vagabond
#!/usr/bin/env bash
# shellcheck disable=2059,2154,2034,2155,2046,2086
# vim: softtabstop=2 shiftwidth=2 expandtab fenc=utf-8 spelllang=en ft=sh
# USAGE: ./
iversond /
Created Aug 11, 2019 — forked from minniel/
Download Slack Channel/PrivateChannel/DirectMessage History
from slacker import Slacker
import json
import argparse
import os
import shutil
import copy
from datetime import datetime
# This script finds all channels, private channels and direct messages
# that your user participates in, downloads the complete history for
View gist:3ea51d8058df0597fdbd5ebc5ee19e63
// slack2html
// by @levelsio
iversond /
Created Jul 14, 2019
David's Kurtz's wrapper script - using bash instead of ksh -
# (c) David Kurtz 2007
# Script:
# where
# DBNAME is the name of the PeopleSoft datbase with a corresponding TNS entry
# ACCESSID is the schema containing the PeopleSoft database
# ACCESSPSWD is the password to ACCESSID
# PRCSINSTANCE is the process instance number supplied by PeopleSoft
iversond /
Last active Jul 14, 2019
A sample shell script to test the wrapper (from David Kurtz:
#A silly script to test
#(c) David Kurtz 2017
if [ "$PSPRCSLOGDIR" ] ; then
while [ $# -gt 0 ]
iversond /
Last active Jul 14, 2019
ES Cluster setup for demos on a single Linux PI

On a fresh Linux PI installation

Set OS Settings

sudo sysctl -w vm.max_map_count=262144

Download getMOSPatch

iversond / prompt.bashrc
Created Apr 20, 2019
My preferred bash prompt
View prompt.bashrc
PS1=$'\\[\\033]0;\\W\\007\\]\\[\E[1m\\]\\n\\[\E[38;5;166m\\]\\u\\[\E[97m\\] at \\[\E[38;5;136m\\]\\h\\[\E[97m\\] in \\[\E[38;5;64m\\]\\w\\n\\[\E[97m\\]$ \\[\E(B\E[m\\]'
PS2=$'\\[\E[38;5;136m\\]\206\222 \\[\E(B\E[m\\]'
PS4='+ '
You can’t perform that action at this time.