Skip to content

Instantly share code, notes, and snippets.

View task4-auth.dart
import 'LogIn.dart';
import 'package:flutter/material.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'HomePage.dart';
class IntroScreen extends StatefulWidget {
@override
_IntroScreenState createState() => _IntroScreenState();
}
View task4-main.dart
import 'RegistrationPage.dart';
import 'LogIn.dart';
import 'first-screen.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'HomePage.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
View task9.py
import os
import pyttsx3 as psy
import speech_recognition as sr
print('''
\t\t\t\t\t\t\tCommands Available:\n
\t\t\t\t\t\t\t1. Linux Commands Menu
\t\t\t\t\t\t\t2. Setup Hadoop cluster
\t\t\t\t\t\t\t3. Docker Commands Menu
\t\t\t\t\t\t\t4. AWS configuration Menu
View rds.tf
module "db" {
source = "terraform-aws-modules/rds/aws"
version = "~> 2.0"
identifier = "demodb"
engine = "mysql"
engine_version = "5.7.19"
instance_class = "db.t2.micro"
allocated_storage = 5
View instances.tf
resource "aws_instance" "webservers" {
count = "${var.instance_count}"
ami = "${var.webservers_ami}"
instance_type = "${var.instance_type}"
security_groups = ["${var.sg_id}"]
subnet_id = "${var.instance_subnet_id}"
}
View elb.tf
# Create a new load balancer
resource "aws_elb" "terra-elb" {
name = "terra-elb"
#availability_zones = ["${var.azs}"]
subnets = "${var.subnet_id}"
security_groups = ["${var.sg_id}"]
listener {
instance_port = 80
View variables.tf
variable "aws_region" {
default = "ap-southeast-1"
}
#variable "vpc_cidr" {
# default = "172.31.0.0/16"
#}
#variable "subnets_cidr" {
# type = list(string)
View variables.tfvars
aws_region="ap-south-1"
webservers_ami="ami-0e8e39877665a7c92"
sg_id="sg-040bb199e4dc62b01"
instance_type="t2.micro"
subnet_id=["subnet-042ded657db2e5d7f", "subnet-098ebd6cc26a1c9fe"]
instance_count=1
instance_subnet_id="subnet-042ded657db2e5d7f"