This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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`: | |
# |