Skip to content

Instantly share code, notes, and snippets.

View ColonelBundy's full-sized avatar

Marcus ColonelBundy

  • Sweden
View GitHub Profile
@ColonelBundy
ColonelBundy / Node.JS 8.9.4 - V8 6.1.534.50
Last active September 12, 2023 15:54
Promise vs Callback vs Async/await benchmark 2018
Doxbee sequential
benchmarking ./doxbee-sequential/async-bluebird.js
{"time":428,"mem":60.38671875,"errors":0,"lastErr":null}
benchmarking ./doxbee-sequential/async-es2017-native.js
{"time":591,"mem":98.82421875,"errors":0,"lastErr":null}
benchmarking ./doxbee-sequential/async-es2017-util.promisify.js
{"time":479,"mem":69.7734375,"errors":0,"lastErr":null}
benchmarking ./doxbee-sequential/callbacks-baseline.js
{"time":149,"mem":29.99609375,"errors":0,"lastErr":null}
@ColonelBundy
ColonelBundy / flynn-install.sh
Created June 28, 2017 00:42
Flynn install with manual ZFS install
#!/bin/bash
#
# A script to install Flynn from a TUF repository.
FLYNN_HOST_CHECKSUM="${FLYNN_HOST_CHECKSUM:="35f61a5a014108614b9a97a85424759ee71818b3f4ea02e75cee5bbb8c143c98dc5c273dfbcd21199f2eea0558605b16e3a78d39202f1adea06c080af2161eb3"}"
usage() {
cat <<USAGE >&2
usage: $0 [options]
@ColonelBundy
ColonelBundy / scaleway-zfs-install.sh
Created June 28, 2017 00:34
Scaleway ZFS Ubuntu Install - kernel 4.9.20-sda1
# Determine versions
arch="$(uname -m)"
release="$(uname -r)"
upstream="${release%%-*}"
local="${release#*-}"
# Get kernel sources
mkdir -p /usr/src
wget -O "/usr/src/linux-${upstream}.tar.xz" "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${upstream}.tar.xz"
tar xf "/usr/src/linux-${upstream}.tar.xz" -C /usr/src/