Москва +79265649543 mixail.bondarev@gmail.com
- основное МАИ, 2005, аэрокосмический факультет
- hexlet, javascript, back&front
- otus, devOps
Backend | |
ORM - TypeScript | |
RPC - gRPC | |
WF - NestJS | |
Entities(ORM): | |
User { id: number, name: string } |
Москва +79265649543 mixail.bondarev@gmail.com
project = "name_your_project" | |
public_key_path = "~/.ssh/authorized_keys" | |
private_key_path = "~/.ssh/authorized_keys" | |
disk_image = "name_image" |
variable project { | |
description = "Project ID" | |
} | |
variable region { | |
description = "Region" | |
default = "europe-west1" | |
} | |
variable zone { |
output "app_external_ip" { | |
value = "${google_compute_instance.app.network_interface.0.access_config.0.assigned_nat_ip}" | |
} |
provider "google" { | |
version = "1.4.0" | |
project = "${var.project}" | |
region = "${var.region}" | |
} | |
resource "google_compute_instance" "app" { | |
name = "name_your_instanse" | |
machine_type = "g1-small" | |
zone = "${var.zone}" |
{ | |
"variables": { | |
"project_id": null, | |
"source_image_family": null, | |
"machine_type": "f1-micro" | |
}, | |
"builders": [ | |
{ | |
"type": "googlecompute", | |
"project_id": "{{ user `project_id` }}", |
{ | |
"variables": { | |
"project_id": null, | |
"source_image_family": null, | |
"machine_type": "f1-micro" | |
}, | |
"builders": [ | |
{ | |
"type": "googlecompute", | |
"project_id": "{{ user `project_id` }}", |
{ | |
"project_id": "your project_id", | |
"source_image_family": "ubuntu-1604-lts" | |
} |
bad_films = ['Titanic',] | |
good_films = ['Matrix',] | |
ARGV.each do |el| | |
if bad_films.member? el | |
puts "#{el} is a bad movie" | |
elsif good_films.member? el | |
puts "#{el} is a good movie" | |
else | |
puts "Haven't seen #{el} yet" | |
end |