Skip to content

Instantly share code, notes, and snippets.

@s-h-a-d-o-w
s-h-a-d-o-w / deploy_caprover.sh
Created October 3, 2019 21:16
Deploy CapRover
# This script might be outdated at some point - refer to the links to update it
# https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository
sudo apt-get update
sudo apt-get --yes install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
@s-h-a-d-o-w
s-h-a-d-o-w / process-listers.js
Last active May 11, 2018 16:05
Node.js benchmark code for comparing process listers (example: Spotify.exe)
const Benchmark = require('benchmark');
const WmiClient = require('wmi-client');
const {snapshot} = require("process-list");
const ps = require('ps-node');
const suite = new Benchmark.Suite;
let wmi = new WmiClient();
// Purpose: See which is fastest at retrieving a suitable data set, not necessarily narrowed down to
// the data actually needed yet.