I hereby claim:
- I am mountaindude on github.
- I am goransander (https://keybase.io/goransander) on keybase.
- I have a public key ASALuz07T6sfOgcl3OrCJjJQgThJt1-GMqS7ZjNHjwdQLgo
To claim this, I am signing this object:
| # Node | |
| node --max-old-space-size=1024 app.js # 1Gb | |
| # PM2 | |
| pm2 start app.js --node-args="--max-old-space-size=1024" # 1Gb |
I hereby claim:
To claim this, I am signing this object:
| <# | |
| Run on the Central | |
| #> | |
| # Connect to Qlik Sense | |
| # See https://github.com/ahaydon/Qlik-Cli/wiki/Establishing-a-connection for more connection options | |
| Connect-Qlik | |
| # Add the Node to the Cluster; store the password element of the response for the ZIP as $password | |
| # nodePurpose: 0 (Production) / 1 (Development) / 2 (Both) | |
| # engineEnabled, proxyEnabled, schedulerEnabled, $printingEnabled, $failoverCandidate as options | |
| $password = New-QlikNode -hostname qlikserver2.domain.local -name qlikserver2 -nodePurpose 0 -engineEnabled -proxyEnabled |
| // This Sub enables prettified output of text to the reload progress window of Qlik Sense. | |
| // Use it to get timestamped trace messages, that also have a prefix that makes them easier | |
| // to spot in the reload progress windows and reload logs. | |
| // | |
| // Usage example: | |
| // call NiceTrace ('This is a debug message, including a variable $(vMetaDataQVDPath)\abc.qvd') | |
| sub NiceTrace (vL.Msg) |
| // Define webhook for the Teams channel you're posting to. | |
| // You need to create this webhook in Microsoft Teams, then paste the webhook URL in the string below | |
| let vTeamsWebhook = 'https://outlook.office.com/webhook/......'; | |
| // You need a data connection called "PostMessageToTeams" for this app to reload correctly. | |
| // >>>>>>>>>>>>>>>>>>>>>>>>>>> | |
| // Define subs |
| #!/usr/bin/env bash | |
| set -e | |
| CONTEXT="$1" | |
| if [[ -z ${CONTEXT} ]]; then | |
| echo "Usage: $0 KUBE-CONTEXT" | |
| exit 1 | |
| fi |
| // Restify Server CheatSheet. | |
| // More about the API: http://mcavage.me/node-restify/#server-api | |
| // Install restify with npm install restify | |
| // 1.1. Creating a Server. | |
| // http://mcavage.me/node-restify/#Creating-a-Server | |
| var restify = require('restify'); |