Skip to content

Instantly share code, notes, and snippets.

View hamzazahidulislam's full-sized avatar
🎯
Focusing

Hamza Zahidul Islam hamzazahidulislam

🎯
Focusing
View GitHub Profile
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 -
@SNNafi
SNNafi / English Date to Bangla Date (Swift)
Last active March 30, 2023 08:24
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];
@amrza
amrza / run.py
Last active May 14, 2024 18:55
How to write RTL(Arabic/Persian) text on images in python.
# 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
@colinvh
colinvh / aws.md
Last active June 28, 2024 20:32
AWS Region Names

Alternative naming schemes for AWS regions

Purpose

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

Schemes