Skip to content

Instantly share code, notes, and snippets.

View Reda-ELOUAHABI's full-sized avatar

Reda El Ouahabi Reda-ELOUAHABI

View GitHub Profile
@Reda-ELOUAHABI
Reda-ELOUAHABI / last_business_day_of_month.js
Created October 31, 2022 11:37 — forked from arch1t3ct/last_business_day_of_month.js
Javascript (Node.js) function for getting last working/business day of the month.
/**
* Finds last working/business day of the month.
*
* Not tested for cross-browser compability. Works in Node.js though.
*
* EXAMPLES:
*
* 1. Returns last day of the last month of the current year:
*
* var result = lastBusinessDayOfMonth();
@Reda-ELOUAHABI
Reda-ELOUAHABI / alb.tf
Created September 5, 2023 13:21 — forked from ketzacoatl/alb.tf
Terraform example ALB w/ target groups for an ASG
# Security Group for ALB
resource "aws_security_group" "atlassian-alb" {
name = "${var.name}-load-balancer"
description = "allow HTTPS to ${var.name} Load Balancer (ALB)"
vpc_id = "${module.vpc.vpc_id}"
ingress {
from_port = "443"
to_port = "443"
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]