Skip to content

Instantly share code, notes, and snippets.

James Murphy jmurphyau

Block or report user

Report or block jmurphyau

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
@jmurphyau
jmurphyau / script-location.sh
Created Sep 18, 2018
Shell Script Location
View script-location.sh
# include this at the top of a script to get script location
script_location=$([[ -d $0 ]] && d=${0}/. || d=$0; ( cd -P "$( /usr/bin/dirname "$d" )" && pwd; ))
@jmurphyau
jmurphyau / genesys-mcp-and-rm-tuning.md
Last active Jun 26, 2018
genesys-mcp-and-rm-tuning
View genesys-mcp-and-rm-tuning.md

Genesys MCP and RM Tuning

Add vm.swappiness = 10 to /etc/sysctl.conf

The recommendation is:

  • Use enough physical memory.
  • Disable the swap or make the swapping rare.

The default value is 60. Reducing the value means Linux uses the swap less.

View click-once-sha1-digest-value.sh
#!/bin/bash
openssl dgst -binary -sha1 "$1" | openssl enc -base64
@jmurphyau
jmurphyau / tomcat-log-retention.md
Last active Jan 18, 2019
tomcat-log-retention.md
View tomcat-log-retention.md

Tomcat Log Retention

Below is information that will assist in configuring log retention for Tomcat.

Version Requirements

Specific versions of Tomcat are required to configure the logging as per the directions in this guide.

  • For version 8.5.x, you require 8.5.16 or newer
  • For version 8.0.x, you require 8.0.45 or newer
@jmurphyau
jmurphyau / copy-wde-logs-to-desktop.cmd
Created Apr 24, 2018
one liner to copy WDE logs from default WDE log directory to the desktop
View copy-wde-logs-to-desktop.cmd
powershell.exe -command "& { $dt=(get-date -UFormat \"%Y-%m-%d-%H%m%S\"); $s=\"$Env:APPDATA\Genesys Telecommunication\InteractionWorkspace\log\*\"; $d=(\"{0}\Desktop\wde-logs-{1}\" -f ($Env:USERPROFILE,$dt)); if ((test-path $d) -eq $false) { md $d > $null; } cp $s $d; write-host \"\"; write-host (\"WDE logs have been copied to {0}\" -f $d) }"
View f5-bgp-info.md
View gax-upload-ip.md

GAX Upload IP

Command

Syntax:

java -jar gaxclc.jar -u:[username] -p:[password] -h:[gax-host]:[gax-port] ip add [install-package]

Example:

@jmurphyau
jmurphyau / gax-plugin-directories.md
Created Apr 18, 2018
Where to put files to install plugins in Genesys Administrator Extensions (GAX)
View gax-plugin-directories.md

GAX Plugin Directories

The paths to install GAX plugins can be found below

Windows

  • [gax-root]\plug-ins
  • [gax-root]\webapp\WEB-INF\lib

Linux

@jmurphyau
jmurphyau / tomcat-log-maxday-settings.md
Last active Apr 18, 2018
Change tomcat log rollover
View tomcat-log-maxday-settings.md

Tomcat maxDay Log Settings

Below is the information required to change the default log retention for Tomcat

conf/logging.properties

Add .maxDays = 14 to each handler, for example:

Before:

You can’t perform that action at this time.