Skip to content

Instantly share code, notes, and snippets.

sudo apt-get update --fix-missing \
&& sudo apt-get install -y --no-install-recommends python2.7 build-essential git curl clang openssl libssl-dev pkg-config \
&& mkdir -p ~/pkg-fetch \
&& mkdir -p ~/pkg-fetch/cache \
&& mkdir -p ~/pkg-fetch/precompile \
&& curl --silent -L --fail https://github.com/zeit/pkg-fetch/archive/master.tar.gz | tar --strip 1 -xz -C ~/pkg-fetch \
&& mkdir -p ~/pkg-fetch/opt/node \
&& curl --silent -L --fail https://nodejs.org/dist/v8.3.0/node-v8.3.0-linux-armv7l.tar.xz | tar --strip 1 -xJ -C ~/pkg-fetch/opt/node \
&& mkdir -p ~/pkg-fetch/opt/yarn \
&& curl --silent -L --fail https://yarnpkg.com/latest.tar.gz | tar --strip 1 -xz -C ~/pkg-fetch/opt/yarn \
{
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
"name": "AMAZON.HelpIntent",
"samples": [
"what can I do"
@sqrtofsaturn
sqrtofsaturn / octoblu-flows.txt
Last active August 22, 2017 16:39
Alexa Skill Beta Testing
https://skills-store.amazon.com/deeplink/tvt/a68d537307c46ec1fbefa23f6c59674d50c464d5310ea3731b112902358546e10b199aff17aa956dda4d122d3eeb582ceaccdfbad8a33dd52a9fe8ad6d56b66f286ed9c101cfdf3526f2b461e4aa76df552b66d041cfdd790612b5e446b9beaf7c2b9ccd67dbc289602c8e3cbeff2171
https://alpha.xendesktop.eng.citrite.net/Citrix/ExternalWeb
@sqrtofsaturn
sqrtofsaturn / count-xd-sessions.ps1
Created July 17, 2017 22:19
Count Active XenDesktop Sessions
Add-Type -Path "C:\Program Files (x86)\Citrix\ICA Client\WfIcaLib.dll"
$ICA = New-Object WFICALib.ICAClientClass
$SessionsEnum = $ICA.EnumerateCCMSessions()
$SessionsCount = $ICA.GetEnumNameCount($SessionsEnum)
$obj = New-Object PSObject
Add-Member -InputObject $obj -MemberType NoteProperty -Name sessionsCount -Value $SessionsCount
Write-Host ($obj | ConvertTo-JSON)
INTRODUCTION
Workflow for OAuth2 with Citrix Octoblu SmartSpaces should follow the
"Authorization Code Grant" process as described in section 4.1 of RFC6749.
(see https://tools.ietf.org/html/rfc6749.html#section-4.1)
In summary, the following steps will occur:
(A) The user is directed to an authorization endpoint.
(B) The authorization server authenticates the user and verifies or
apm install linter-shellcheck
brew install shellcheck
# Add `-e SC2045,SC2124,SC2063` to "Additional Executable Parameters" in atom
@sqrtofsaturn
sqrtofsaturn / ab-test-meshblu-status.sh
Created January 6, 2017 20:12
AB Test Meshblu Status
ab -k -s 100 -n 100 https://meshblu-http.octoblu.com/status
@sqrtofsaturn
sqrtofsaturn / connector-status-explanation.md
Last active November 14, 2016 19:39
connector status explanation

When the connector is responding to pings:

  • the online checks error, the status is 'connector error'
  • the online check responds with a {running: true}, the status is 'connector is running'
  • the online check responds with a {running: { $ne: true } }, the status is 'connector is responding to pings'

When the connector is not responding to pings:

  • the connector-runner is connected via meshblu-socket.io, the status is 'thing is online'
  • the connector-runner is not connected via meshblu-socket.io, the status is 'thing is offline'
1 129.5
2 592.75
3 157
4 518.25
5 -137.25
6 892.25
7 691.5
8 1919
9 748.5
10 1051.75