Skip to content

Instantly share code, notes, and snippets.

View jmurphyau's full-sized avatar

James Murphy jmurphyau

View GitHub Profile
import Ember from 'ember';
export default Ember.Object.extend({
previousUnauthorizedTransition: null,
token: null,
username:null
});
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
login: function(a,b,c,d) {
var me = this, data = this.getProperties('username','password');
Ember.$.post('/admin/login',data).then(function(response) {
me.session.set('token',response.substring(0,50));
console.log("token inside controller.login",me.session.get('token'));
export default Ember.Object.extend({
previousUnauthorizedTransition: null,
token: localStorage.token,
username:null,
tokenChanged: function() {
localStorage.token = this.get('token');
}.observes('token')
})
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@jmurphyau
jmurphyau / gax-plugin-directories.md
Created April 18, 2018 02:42
Where to put files to install plugins in Genesys Administrator Extensions (GAX)

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 April 18, 2018 02:43
Change tomcat log rollover

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:

@jmurphyau
jmurphyau / gax-upload-ip.md
Created April 18, 2018 03:37
GAX Upload IP

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 / f5-bgp-info.md
Last active April 23, 2018 07:06
F5 BGP Info
@jmurphyau
jmurphyau / copy-wde-logs-to-desktop.cmd
Created April 24, 2018 00:16
one liner to copy WDE logs from default WDE log directory to the desktop
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) }"
@jmurphyau
jmurphyau / click-once-sha1-digest-value.sh
Created May 11, 2018 05:17
Click Once SHA1 Digest Value
#!/bin/bash
openssl dgst -binary -sha1 "$1" | openssl enc -base64