Skip to content

Instantly share code, notes, and snippets.

View hamzazahidulislam's full-sized avatar
🎯
Focusing

Hamza Zahidul Islam hamzazahidulislam

🎯
Focusing
View GitHub Profile
#Install IIS Feature
Install-WindowsFeature -Name Web-Server -IncludeManagementTools
#Install FTP feature
Install-WindowsFeature -Name Web-Ftp-Server -IncludeAllSubFeature -IncludeManagementTools -Verbose
#Creating new FTP site
$SiteName = "Demo FTP Site"
$RootFolderpath = "C:\DemoFTPRoot"
$PortNumber = 21
@hamzazahidulislam
hamzazahidulislam / English Date to Bangla Date (Swift)
Created March 27, 2023 12:06 — forked from SNNafi/English Date to Bangla Date (Swift)
Convert English Date to Bangla Date i.e. 22/03/2021 -> ৮ চৈত্র, ১৪২৭ in Swift. This is only for Bangladesh.
/// Convert English date to Bangla date. This is only for Bangladesh. WestBengla have different method
struct BanglaDate {
private let date: Date
private let calendar = Calendar(identifier: .gregorian)
private let dateComponents: DateComponents
private let timeZone = TimeZone(identifier: "Asia/Dhaka")!
private let banglaMonths = ["বৈশাখ","জ্যৈষ্ঠ", "আষাঢ়","শ্রাবণ","ভাদ্র", "আশ্বিন","কার্তিক","অগ্রহায়ণ","পৌষ","মাঘ", "ফাল্গুন","চৈত্র"]
private let banglaSeasons = ["গ্রীষ্ম", "বর্ষা", "শরৎ", "হেমন্ত", "শীত", "বসন্ত"]
private let banglaWeek = ["রবিবার", "সোমবার", "মঙ্গলবার", "বুধবার", "বৃহস্পতিবার", "শুক্রবার", "শনিবার"]
private var totalDaysInMonth = [31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30];
@hamzazahidulislam
hamzazahidulislam / English Date to Bangla Date (Swift)
Created March 27, 2023 12:06 — forked from SNNafi/English Date to Bangla Date (Swift)
Convert English Date to Bangla Date i.e. 22/03/2021 -> ৮ চৈত্র, ১৪২৭ in Swift. This is only for Bangladesh.
/// Convert English date to Bangla date. This is only for Bangladesh. WestBengla have different method
struct BanglaDate {
private let date: Date
private let calendar = Calendar(identifier: .gregorian)
private let dateComponents: DateComponents
private let timeZone = TimeZone(identifier: "Asia/Dhaka")!
private let banglaMonths = ["বৈশাখ","জ্যৈষ্ঠ", "আষাঢ়","শ্রাবণ","ভাদ্র", "আশ্বিন","কার্তিক","অগ্রহায়ণ","পৌষ","মাঘ", "ফাল্গুন","চৈত্র"]
private let banglaSeasons = ["গ্রীষ্ম", "বর্ষা", "শরৎ", "হেমন্ত", "শীত", "বসন্ত"]
private let banglaWeek = ["রবিবার", "সোমবার", "মঙ্গলবার", "বুধবার", "বৃহস্পতিবার", "শুক্রবার", "শনিবার"]
private var totalDaysInMonth = [31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30];
@hamzazahidulislam
hamzazahidulislam / aws.md
Created December 2, 2022 17:36 — forked from colinvh/aws.md
AWS Region Names

Alternative naming schemes for AWS regions

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Schemes

sudo apt-get update && sudo apt-get upgrade -y
--------- INSTALL DOCKER ---------
sudo apt install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER
--------- Adding Kubernetese Repository -----
sudo curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -