Skip to content

Instantly share code, notes, and snippets.

Avatar

Nikola Markovic boemska-nik

View GitHub Profile
View 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:

@boemska-nik
boemska-nik / runtests.sh
Created Nov 22, 2017
Ghetto performance test of some SAS code
View runtests.sh
#!/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);
@boemska-nik
boemska-nik / 0_reuse_code.js
Created Dec 23, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console