Skip to content

Instantly share code, notes, and snippets.

View hasibomi's full-sized avatar

Hasibur Rahman Omi hasibomi

View GitHub Profile
[
{"name": "Afghanistan", "code": "AF"},
{"name": "Åland Islands", "code": "AX"},
{"name": "Albania", "code": "AL"},
{"name": "Algeria", "code": "DZ"},
{"name": "American Samoa", "code": "AS"},
{"name": "Andorra", "code": "AD"},
{"name": "Angola", "code": "AO"},
{"name": "Anguilla", "code": "AI"},
{"name": "Antarctica", "code": "AQ"},
@hasibomi
hasibomi / states_hash.json
Created January 6, 2017 17:55 — forked from mshafrir/states_hash.json
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
@hasibomi
hasibomi / amazon-ec2-ftp.md
Created November 1, 2017 09:58 — forked from gunjanpatel/amazon-ec2-ftp.md
amazon ec2 LAMP and FTP installation and setup
@hasibomi
hasibomi / gitcom.md
Created January 1, 2018 08:32 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
@hasibomi
hasibomi / validate-email.php
Created February 22, 2018 18:55 — forked from MikeRogers0/validate-email.php
How to validate an email address with PHP
<?php
function validEmail($email){
// Check the formatting is correct
if(filter_var($email, FILTER_VALIDATE_EMAIL) === false){
return FALSE;
}
// Next check the domain is real.
$domain = explode("@", $email, 2);
return checkdnsrr($domain[1]); // returns TRUE/FALSE;
@hasibomi
hasibomi / README.md
Last active October 4, 2021 14:23 — forked from geolimber/README.md
Install Python3.9.4 and Apache mod_wsgi on Debian (AWS Lightsail, EC2)

Install latest Python and Apache mod_wsgi on Debian (AWS Lightsail, EC2)

Step 1. Download python binaries

wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz
tar zxvf Python-3.9.7.tgz
cd Python-3.9.7

Step 2. Configure building python from sources

@hasibomi
hasibomi / CountryCodes.json
Created July 3, 2022 06:08 — forked from anubhavshrimal/CountryCodes.json
Country and Dial or Phone codes in JSON format
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"