Skip to content

Instantly share code, notes, and snippets.

View jvanus's full-sized avatar

Jacob Vanus jvanus

  • Albuquerque, New Mexico
View GitHub Profile
@jvanus
jvanus / node_setup18.16
Last active July 19, 2023 23:29
node_setup_18.16
#!/bin/bash
# Discussion, issues and change requests at:
# https://github.com/nodesource/distributions
#
# Script to install the NodeSource Node.js 18.x repo onto a
# Debian or Ubuntu system.
#
# Run as root or insert `sudo -E` before `bash`:
#
# ETA class is used to calculate the time a script will finish
# It needs to be initilized with the total number of units to be processed
# It needs to be called with the current number of of units processed so far
# eg: eta = Eta.new(things.count)
# things.each_with_index do |thing, index|
# puts eta.calc(index) rescue nil
# do_something(thing)
# end
# eta goes first because on index 0 you've processed 0 units
# Usage:
### Keybase proof
I hereby claim:
* I am jvanus on github.
* I am jvanus (https://keybase.io/jvanus) on keybase.
* I have a public key ASAo4mKXV3Hj4bYvajg1A6Oj4cv98w3jZN-7ozIjmgXKVwo
To claim this, I am signing this object: