Skip to content

Instantly share code, notes, and snippets.

View DuranIsrael's full-sized avatar

Duran Israel DuranIsrael

View GitHub Profile
@DuranIsrael
DuranIsrael / FizzBuzz.py
Created July 19, 2022 03:44
FizzBuzz Challenge
number = int(input("please enter a number: "))
FizzBuzz = False
while not FizzBuzz:
number = int(input("please enter a number: "))
num = number
if num % 3 == 0 and num % 5 == 0:
FizzBuzz = True
print("FizzBuzz")
@DuranIsrael
DuranIsrael / web-scraper.py
Created July 7, 2022 23:15
Python webscraping app
# First we need to import our libraries needed for this demo
from bs4 import BeautifulSoup
import requests
import pandas as pd
#here we are requesting the webiste and storing it in a variable
url = "https://pogotrainer.club//"
results = requests.get(url)
results.raise_for_status() #this will print in error should there be an issue with the website
@DuranIsrael
DuranIsrael / .gitignore
Created June 20, 2022 23:42
CICD Pipeline demo source code
.terraform*
@DuranIsrael
DuranIsrael / backend.tf
Created June 20, 2022 18:32
Main files for AWS Pipeline Demo
terraform {
backend "s3" {
bucket = "ditf-s3-storage"
encrypt = true
key = "terraform.tfstate"
region = "us-east-1"
}
}
provider "aws" {
@DuranIsrael
DuranIsrael / random_number.py
Last active June 19, 2022 06:24
Python Random Number Game
#import the random module
import random
#create a variable for the random number
number = random.randint(0, 100)
end_of_game = False #as log as this is false the While loop will continue to loop until the conditions are met.
while not end_of_game:
user_input = int(input("Guess the random number: ")) #create a variable that allows user input
@DuranIsrael
DuranIsrael / main.tf
Created June 1, 2022 01:52
Terraform EC2 Modul Parent
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.27"
}
}
required_version = ">= 0.14.9"
}
@DuranIsrael
DuranIsrael / instance.tf
Last active March 11, 2024 19:10
Terraform EC2 Module
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.27"
}
}
required_version = ">= 0.14.9"
}
@DuranIsrael
DuranIsrael / main.tf
Created May 27, 2022 03:25
Terraform_DynamoDB
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.27"
}
}
required_version = ">= 0.14.9"
}
provider "aws" {
@DuranIsrael
DuranIsrael / maint.tf
Last active June 12, 2022 02:15
Terraform_Docker_Centos
#time to launch our AWS resources beginning with the vpc
resource "aws_vpc" "wk_20" {
cidr_block = var.cidr_block
instance_tenancy = "default"
tags = {
Name = "wk_20"
}
}