Skip to content

Instantly share code, notes, and snippets.

Playing with FHIR

Bell Eapen dermatologist

Playing with FHIR
View GitHub Profile
pirate /
Last active Oct 8, 2020
Backup a docker-compose project, including all images, named and unnamed volumes, container filesystems, config, logs, and databases.
#!/usr/bin/env bash
### Bash Environment Setup
# set -o xtrace
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
View Singularity cheat sheet
// Create a Singularity image from a Docker image that is in the Docker hub
// where /tmp/ is the folder where the image will be created and ubuntu:14.04
// is the docker image used to convert to the Singularity image
docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp/:/output \
--privileged -t --rm \
singularityware/docker2singularity \
alexellis /
Last active Oct 7, 2020
Run multiple minikube Kubernetes clusters on Ubuntu Linux with KVM

Ramp up your Kubernetes development, CI-tooling or testing workflow by running multiple Kubernetes clusters on Ubuntu Linux with KVM and minikube.

In this tutorial we will combine the popular minikube tool with Linux's Kernel-based Virtual Machine (KVM) support. It is a great way to re-purpose an old machine that you found on eBay or have gathering gust under your desk. An Intel NUC would also make a great host for this tutorial if you want to buy some new hardware. Another popular angle is to use a bare metal host in the cloud and I've provided some details on that below.

We'll set up all the tooling so that you can build one or many single-node Kubernetes clusters and then deploy applications to them such as OpenFaaS using familiar tooling like helm. I'll then show you how to access the Kubernetes clusters from a remote machine such as your laptop.


  • This tutorial uses Ubuntu 16.04 as a base installation, but other distributions are supported by KVM. You'll need to find out how to install
matteocrippa /
Last active Oct 21, 2020
Flutter Cheatsheet


A quick cheatsheet of useful snippet for Flutter


A widget is the basic type of controller in Flutter Material. There are two type of basic Widget we can extend our classes: StatefulWidget or StatelessWidget.


StatefulWidget are all the widget that interally have a dynamic value that can change during usage. It can receive an input value in the constructor or reference to functions. You need to create two classes like:

ozancaglayan /
Created Mar 29, 2018
pytorch cnn image encoder
# -*- coding: utf-8 -*-
# author: Ozan Caglayan
from collections import OrderedDict
import torch
from torchvision import models
from torchvision.models.vgg import cfg as vgg_cfg
althonos / setup.cfg
Last active Oct 13, 2020
A `setup.cfg` template for my Python projects
View setup.cfg
name = {name}
version = file: {name}/_version.txt
author = Martin Larralde
author-email =
home-page ={name}
description = {description}
long-description = file:
AshikNesin / base64-form-data.js
Last active Aug 26, 2020
Base64 image to multipart/form-data
View base64-form-data.js
const base64 = 'data:image/png;base65,....' // Place your base64 url here.
.then(res => res.blob())
.then(blob => {
const fd = new FormData();
const file = new File([blob], "filename.jpeg");
fd.append('image', file)
// Let's upload the file
// Don't set contentType manually →
package com.example.controllers.dashboard;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
ntamvl /
Last active Jul 27, 2020
Install Multiple Java Versions on macOS High Sierra

Install Multiple Java Versions on macOS High Sierra

Install Homebrew Cask

On Mac, Homebrew is the de-facto package manager, and Homebrew Cask is the app manager. I’m going to use Cask to install Java 7 and 8.

Install Homebrew Cask first if you haven’t:

brew update
brew tap caskroom/cask
charlesreid1 /
Last active Jun 29, 2020
Download the Large-scale CelebFaces Attributes (CelebA) Dataset from their Google Drive link
# Download the Large-scale CelebFaces Attributes (CelebA) Dataset
# from their Google Drive link.
# CelebA:
# Google Drive:
python3 0B7EVK8r0v71pZjFTYXZWM3FlRnM
You can’t perform that action at this time.