Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Iverson iversond

View GitHub Profile
@iversond
iversond / slack_history.py
Created Aug 11, 2019 — forked from minniel/slack_history.py
Download Slack Channel/PrivateChannel/DirectMessage History
View slack_history.py
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
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@iversond
iversond / psft.sh
Created Jul 14, 2019
David's Kurtz's wrapper script - using bash instead of ksh - http://www.go-faster.co.uk/scripts/psft.sh
View psft.sh
#!/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
@iversond
iversond / shell_sample.sh
Last active Jul 14, 2019
A sample shell script to test the psft.sh wrapper (from David Kurtz: http://blog.psftdba.com/2017/02/process-scheduler-shell-script.html)
View shell_sample.sh
#!/bin/bash
#A silly script to test psft.sh
#(c) David Kurtz 2017
if [ "$PSPRCSLOGDIR" ] ; then
cd $PSPRCSLOGDIR
fi
(
while [ $# -gt 0 ]
@iversond
iversond / installES.md
Last active Aug 25, 2020
ES Cluster setup for demos on a single Linux PI
View installES.md

On a fresh Linux PI installation

Set OS Settings

sudo sysctl -w vm.max_map_count=262144

Download getMOSPatch

@iversond
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='+ '
View gist:01c5a80e0a85d040229be50761b652e1
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@iversond
iversond / domains.yaml
Last active Nov 21, 2021
Default domain configuration for the DPK. Used with Hiera Hashing to allow environments to overrride/add to the defaults
View domains.yaml
---
# TNSnames.ora
tns_admin_list:
"%{hiera('db_name')}":
db_host: "%{hiera('db_server')}"
db_port: "%{hiera('db_port')}"
db_protocol: TCP
db_service_name: "%{hiera('db_name')}.psadmin.io"
# Application Servers
@iversond
iversond / common.yaml
Created Jan 22, 2019
Common configuration shared across all DPK environments
View common.yaml
---
ensure: present
env_type: midtier
server_type: "%{::ps_role}"
domain_type: "%{::ps_role}"
region: "%{::region}"
peoplesoft_base: c:/psft
peoplesoft_base_norm: "c:\\psft"
unicode_db: false
@iversond
iversond / applyPT856Upgrade.ps1
Created Aug 31, 2018
Powershell script to run the PeopleTools 8.56 Upgrade job headlessly. A few assumptions with the script: All manual steps are marked as complete.; your PT Client installs are at c:\client-8.xx.xx
View applyPT856Upgrade.ps1
<#PSScriptInfo
.SYNOPSIS
Apply the PeopleTools 8.56 Upgrade Project
.DESCRIPTION
Automate the Change Assistant job that applies the PTU856 project to a database.
.PARAMETER DATABASE
Which database to encrypt the password
.PARAMETER PT_VERSION
PeopleTools version to apply
.PARAMETER CA_BASE