Skip to content

Instantly share code, notes, and snippets.

View rabbah's full-sized avatar
🦖
creating for a serverless future

rodric rabbah rabbah

🦖
creating for a serverless future
View GitHub Profile
@rabbah
rabbah / nim.js
Created August 25, 2020 06:07
Nimbella Node SDK
/*
* Copyright 2018 - present Nimbella Corp
* All Rights Reserved.
*
*/
var redis = require("redis")
var bluebird = require("bluebird")
function makeRedisClient() {
@rabbah
rabbah / nimhowto.md
Last active June 26, 2020 14:54
nimbella quick start

download nimbella cli

Full reference manual available here.

  • On Windows, download and run the Windows installer.
  • On Mac, download and run the Mac installer.
  • On Linux, run the following script: curl https://apigcp.nimbella.io/downloads/nim/nim-install-linux.sh | sudo bash

get help

nim doc

@rabbah
rabbah / state.md
Last active July 16, 2019 17:19
actions using transient state

A login action, saves a session state token, redirects to OAuth sign-on.

const redis = require('nim').redis()

function login(auth0, args) {
    const state = generateSessionToken()
    const {code_verifier, code_challenge} = verifierAndChallenge()

    return redis
@rabbah
rabbah / rcverify.sh
Last active March 19, 2019 21:22
Verifies release candidates for openwhisk
#!/bin/bash
# This script will download the release candidate artifacts and verify
# they are properly signed and authentic. The script assumes you have
# curl, git, python and gpg already installed and that your gpg is trusted.
# the location providing the distribution
DIST=https://dist.apache.org/repos/dist/dev/incubator/openwhisk
# the artifact being released