- https://www.iteratorshq.com
This file contains hidden or 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
function sequence(number) { return Array.apply(null, {length: number}).map(Function.call, Number);}; | |
const begin = moment("2018.05.05", "YYYY.MM.DD"); | |
const today = moment(); | |
const daysCount = moment().diff(begin, "days"); | |
const days = sequence(daysCount + 1).map((dayNo) => { | |
return moment(today).subtract(dayNo, "days").format("YYYY.MM.DD"); | |
}) |
This file contains hidden or 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
//Super straightforward on Linux | |
sudo ssh -N -o StrictHostKeyChecking=no \ | |
-i ./certs/output/ssh-private-key \ | |
user@private.host \ | |
-L 5000:127.0.0.1:5000 | |
docker login localhost:5000 --username registry_user --password registry_password | |
// On Docker for Mac docker virtual machine has it's own 127.0.0.1 and can access your macbook localhost only via `host.docker.internal` |
NewerOlder