This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Escape any variables that are not passed by Terraform ($$) | |
$hostname = "${hostname}" | |
# Set NODENAME Env Var | |
[Environment]::SetEnvironmentVariable("NODENAME", $hostname) | |
[Environment]::SetEnvironmentVariable("NODENAME", $hostname, [System.EnvironmentVariableTarget]::Machine) | |
# Add hosts Entry | |
# This is needed so the pt_pia status checking works | |
# The cloned instance does not update hosts, so we do it ourselves |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Remove PRCS Request Submitted notifications | |
update sysadm.PSPTPNCOLLEVTS set event_name = ' ' where PTPNCOLLNAME = 'PRCSPTPNCOLLECTION'; | |
commit; | |
-- Validation: Collection PRCSPTPNCOLLECTION should have no event_name set | |
select * from sysadm.PSPTPNCOLLEVTS where PTPNCOLLNAME = 'PRCSPTPNCOLLECTION'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$dpk_location = hiera('dpk_location') | |
case $::osfamily { | |
'windows': { | |
exec { 'fix-dpk-bug': | |
command => "(gc ${dpk_location}/puppet/production/modules/pt_config/lib/puppet/provider/psae.rb) | %{ \$_ -replace \"ae_program_name=`\"PTEM_CONFIG`\"\", \"ae_program_name=resource[:program_id]\" } | set-content ${dpk_location}/puppet/production/modules/pt_config/lib/puppet/provider/psae.rb", | |
provider => powershell, | |
} | |
} | |
'RedHat', 'linux': { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ps_home_dir = hiera('ps_home_location') | |
$oracle_home_location = hiera('oracle_server_location') | |
$tns_dir = hiera('tns_dir') | |
case $::osfamily { | |
'windows': { | |
$gem_home = 'c:/program files/puppet labs/puppet/bin' | |
exec { 'install-psadmin_plus': | |
command => "${gem_home}/gem install psadmin_plus", | |
provider => 'powershell' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
#=============================================================================== | |
# | |
# FILE: shell_template.sh | |
# | |
# USAGE: ./shell_template.sh | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# (c) David Kurtz 2007 | |
# Script: psft.sh | |
# | |
# Syntax: psft.sh DBNAME ACCESSID ACCESSPSWD PRCSINSTANCE | |
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#A silly script to test psft.sh | |
#(c) David Kurtz 2017 | |
if [ "$PSPRCSLOGDIR" ] ; then | |
cd $PSPRCSLOGDIR | |
fi | |
( | |
while [ $# -gt 0 ] |