Incorporates changes by 0mnius.
The intent is to define terse, standards-supported names for AWS regions.
| { | |
| "html.format.wrapLineLength": 40, | |
| "workbench.editor.enablePreview": false, | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "eslint.format.enable": true, | |
| "editor.formatOnSave": true, | |
| "[html]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[liquid]": { |
| 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 - |
| /// 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]; |
| #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 |
| # Tested on Python 3.6.1 | |
| # install: pip install --upgrade arabic-reshaper | |
| import arabic_reshaper | |
| # install: pip install python-bidi | |
| from bidi.algorithm import get_display | |
| # install: pip install Pillow | |
| from PIL import ImageFont |
Incorporates changes by 0mnius.
The intent is to define terse, standards-supported names for AWS regions.