Skip to content

Instantly share code, notes, and snippets.

View boomskats's full-sized avatar

Nikola Markovic boomskats

  • Ewhurst, UK
View GitHub Profile
@boomskats
boomskats / FAASD_MULTIPASS.md
Created June 7, 2020 17:09 — forked from alexellis/FAASD_MULTIPASS.md
FAASD_MULTIPASS.md

Get up and running with your own faasd installation on your Mac

multipass from Canoncial is like Docker Desktop, but for getting Ubuntu instead of a Docker daemon. It works on MacOS, Linux, and Windows with the same consistent UX. It's not fully open-source, and uses some proprietary add-ons / binaries, but is free to use.

For Linux using Ubuntu, you can install the packages directly, or use sudo snap install multipass --classic and follow this tutorial. For Raspberry Pi, see my tutorial here.

John McCabe has also tested faasd on Windows with multipass, see his tweet.

Use-case:

@boomskats
boomskats / runtests.sh
Created November 22, 2017 18:24
Ghetto performance test of some SAS code
#!/bin/bash
# Command line method for evaluating performance of SAS code
# In bash, define a function
notquiteesm() ( $* &>/dev/null & pid="$!"; trap ':' INT; echo 'CPU every second'; while sleep 1; do ps --no-headers -o '%cpu' -p "$pid"; done; kill "$pid"; )
# Create some test SAS code in a .sas file that looks like this
%include '/pub/programs/Allianz-backend/init/bafinit.sas';
%bafinit()
%baf_batch_report(slist=applfram.dholap.clpgpwef);
@boomskats
boomskats / 0_reuse_code.js
Created December 23, 2015 11:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console