Skip to content

Instantly share code, notes, and snippets.

View iversond's full-sized avatar

Dan Iverson iversond

View GitHub Profile
@philipsd6
philipsd6 / install-tmux
Last active February 22, 2021 14:41 — forked from rothgar/install-tmux
Install tmux 2.3 on rhel/centos 7
# Install tmux on rhel/centos 7
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar -xvzf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure --prefix=/usr/local
@ericbisme
ericbisme / hiera.yaml
Last active August 7, 2017 18:32
hiera.yaml
# managed by puppet
---
:backends:
- eyaml
- yaml
:logger: console
:hierarchy:
- "nodes/%{::clientcert}"
@iversond
iversond / touch-icons.pp
Last active March 23, 2017 15:05
Deploy a favicon.zip file to PORTAL.war and signin.html to each site. Uses the PowerShell 4+ command 'Expand-Archive'.
$share_path = "//lm-d1/temp"
$pia_domain_list = hiera('pia_domain_list')
$pia_domain_list.each | $domain_name, $pia_domain_info | {
$cfg_home = $pia_domain_info['ps_cfg_home_dir']
$baseWebPath = "${cfg_home}/webserv/${domain_name}/applications/peoplesoft/PORTAL.war"
file {"io-favicons-zip-${domain_name}":
ensure => $ensure,
#Set Heapsize in WebLogic setEnv.sh
class cu_ps_weblogic::ps_weblogic_setenv (
$ps_config_home = hiera('ps_config_home'),
$pia_domain_name = hiera('pia_domain_name'),
$wl_heapsize = hiera('wl_heapsize'),
$wl_threadpool = hiera('wl_threadpool'),
){
Ini_Subsetting {
path => "${ps_config_home}/webserv/${pia_domain_name}/bin/setEnv.sh",
@nvg
nvg / psunit_base.ppc
Last active February 24, 2022 03:31
peoplecode: PSUnit base
import TTS_UNITTEST:TestBase;
class Test extends TTS_UNITTEST:TestBase
method Test();
method Run();
method Setup();
protected
private
instance string &someValue;
@rgl
rgl / try-vagrant-triggers-experimental.rb
Created May 27, 2019 21:50
an example on how to see which vagrant triggers exist
# NB before running this you need to export an environment variable: export VAGRANT_EXPERIMENTAL='typed_triggers'
# see https://www.vagrantup.com/docs/triggers/configuration.html#trigger-types
# NB to see all triggers you need to edit your vagrant source code:
# sudo vim /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/v2/trigger.rb
# and add a @ui.info to see all trigger action stages, et all:
# NB see https://github.com/hashicorp/vagrant/blob/v2.2.4/lib/vagrant/plugin/v2/trigger.rb
# # Fires all triggers, if any are defined for the action and guest. Returns early
# # and logs a warning if the community plugin `vagrant-triggers` is installed
# #
# # @param [Symbol] action Vagrant command to fire trigger on
@accasey
accasey / update_psoprdefn.sql
Created May 30, 2019 15:19
Updates to PSOPRDEFN handling the VERSION
UPDATE PSVERSION SET VERSION = VERSION + 1 WHERE OBJECTTYPENAME IN ('UPM','SYS')
/
UPDATE PSLOCK SET VERSION = VERSION + 1 WHERE OBJECTTYPENAME = 'UPM'
/
DELETE FROM PSROLEUSER WHERE ROLEUSER = :1 AND ROLENAME LIKE '%%'
/
UPDATE PSOPRDEFN SET VERSION = (SELECT VERSION
FROM PSVERSION
WHERE OBJECTTYPENAME = 'UPM'
)
@tslater2006
tslater2006 / config.json
Created August 2, 2019 01:01
Sample Pivet Config
{
"Environments": [
{
"Name": "MyEnvironment",
"Connection": {
"Provider": "Bootstrap",
"TNS": "DBNAME",
"TNS_ADMIN": "C:\\app\\oracle\\product\\12.2.0\\client_1\\network\\admin",
"Schema": "SYSADM",
"BootstrapParameters": {
@iversond
iversond / shell_template.sh
Last active February 21, 2022 18:45
Shell script template to use when creating new scripts. Borrows work from JR Bing's provision.sh 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
#===============================================================================
#
# FILE: shell_template.sh
#
# USAGE: ./shell_template.sh
#
@joejag
joejag / profile.ps1
Last active October 24, 2022 03:46
Powershell profile
# Install-Module posh-git -Scope CurrentUser -AllowPrerelease -Force
# Install-Module git-aliases -Scope CurrentUser -AllowClobber
# Install-Module PSReadLine -Scope CurrentUser -AllowPrerelease -Force
# Install-Module nvm -Scope CurrentUser
# Copy of the robby russell theme
function Prompt {
if ($?) {
Write-Host '➜' -NoNewline -ForegroundColor Green
}