Skip to content

Instantly share code, notes, and snippets.

View devenes's full-sized avatar
☁️

Enes devenes

☁️
View GitHub Profile
@devenes
devenes / numero.py
Created March 24, 2022 13:02
First Factorial
def FirstFactorial(numero):
numero = int(input("Enter a number: "))
i = 1
if(numero == 0):
return "1"
for i in range(1, numero):
numero = numero*i
@devenes
devenes / send_mail.ipynb
Last active March 26, 2022 13:09
The goal here is to make it as simple and painless as possible to send emails.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@devenes
devenes / aws_eks.tf
Last active May 1, 2022 17:36
Terraform main file for creating AWS EKS cluster with minimum requirements.
provider "aws" {
profile = "default" # (Optional) This is the AWS profile name as set in the shared credentials file
region = "us-east-1" # (Required) AWS region
}
resource "aws_eks_cluster" "example" {
name = "a-cluster" # (Required) Name of the cluster
role_arn = "arn:aws:iam::123:role/eks-poc-eks-cluster-role" # (Required) ARN of the IAM role that provides permissions for the Kubernetes
vpc_config { # (Required) Configuration block for the VPC associated with your cluster
@devenes
devenes / StringChallenge.js
Last active March 29, 2022 00:06
String Challenge
// - String Challenge -
// Have the function StringChallenge(str) read the str parameter being passed which
// will contain the written out version of the numbers 0 - 9
// and the words "minus" or "plus" and convert the expression into an actual final number written out as well.
// For example: if str is "foursixminustwotwoplusonezero" then this converts to "46 - 22 + 10"
// which evaluates to 34 and your program should return the final string threefour.
// If your final answer is negative it should include the word "negative."
// Examples:
// Input: "onezeropluseight"
// Output: oneeight
@devenes
devenes / aws_cli_cheat_sheet.md
Created April 30, 2022 01:16
AWS CLI Cheat Sheet by Enes Turan

AWS CLI Cheat Sheet by Enes Turan

sudo hostnamectl set-hostname aws-cli
bash
@devenes
devenes / terraform_plan.yml
Created May 3, 2022 01:51
Terraform Infrastructure Plan
name: "Terraform Infrastructure Plan"
on:
push:
branches:
- "*"
jobs:
terraform:
name: "Terraform Plan"
@devenes
devenes / Hybrid Cloud Conference - Backend Services for Containers.md
Created May 5, 2022 02:21
Hybrid Cloud Conference - Backend Services for Containers Practice Questions

Hybrid Cloud Conference - Backend Services for Containers

Practice Questions

  • 1 Who is the primary audience for the Make Your Solution into a Backend Service on OpenShift® track?

    • Independent Software Vendors (ISVs)
  • 2 Which of these is not a goal of the Make Your Solution into a Backend Service on OpenShift® track?

@devenes
devenes / AWS Practice Questions.md
Created May 5, 2022 02:22
AWS Practice Questions

AWS

Practice Questions

  • True or False: The AWS CloudFormation change sets feature can be used to preview the changes in a CloudFormation stack before applying an Update Stack call, and a user is 100 percent resilient against deletion accidents in their stack operations if they use change sets.

    • False
  • True or False: Operational best practices include consulting the AWS Documentation for Update Requires on the attributes of resources that will be changed, and using DeletionPolicy: Retain or DeletionPolicy: Snapshot on resources used for storing customer data.

@devenes
devenes / apache-userdata.sh
Created May 5, 2022 02:31
Sample user data for Apache server
#!/bin/bash
yum update -y
yum install -y httpd
yum install -y wget
cd /var/www/html
wget https://raw.githubusercontent.com/awsdevopsteam/route-53/master/N.virginia_2/index.html
wget https://raw.githubusercontent.com/awsdevopsteam/route-53/master/N.virginia_2/N.Virginiatwo.jpg
systemctl start httpd
systemctl enable httpd

Tcpdump

Tcpdump is a commandline tool that is used to dump traffic on a network. This tool comes in hand when you want to analyse network captures within the command line. Basically it can do most of the wireshark job.

NOTE This guide might not be complete it just serve as a reference to me.

Additional Note & Reference