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
variable "server_ip" { | |
default = "10.0.0.2" | |
} | |
# Terraform documentation | |
# * Provisioner null_resource: https://www.terraform.io/docs/provisioners/null_resource.html | |
# * Provisioner Connections: https://www.terraform.io/docs/provisioners/null_resource.html | |
# Ubuntu issues: | |
# https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1652270 |
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
var mongoObjectId = function () { | |
var timestamp = (new Date().getTime() / 1000 | 0).toString(16); | |
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() { | |
return (Math.random() * 16 | 0).toString(16); | |
}).toLowerCase(); | |
}; |