Skip to content

Instantly share code, notes, and snippets.

View AminulBD's full-sized avatar

Aminul Islam AminulBD

View GitHub Profile
@AminulBD
AminulBD / ambn.php
Created August 30, 2018 15:23
Bangla WordPress Number
<?php
/*
Plugin Name: Bangla Number For WordPress
Plugin URI: https://aminul.net/
Description: Translate all number to bangla.
Version: 1.0.0
Author: Aminul Islam
Author URI: https://aminul.net/
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@AminulBD
AminulBD / bd-geo-code.sql
Last active April 2, 2023 22:19
BD GEO Code SQL Database
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
SET NAMES utf8mb4;
DROP TABLE IF EXISTS `districts`;
CREATE TABLE `districts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
@AminulBD
AminulBD / address.json
Last active February 8, 2019 14:08
Bangladdesh divisions, districts and upazila list in php array and json
{
"Rajshahi": {
"Joypurhat": [
"Akkelpur",
"Joypurhat Sadar",
"Kalai",
"Khetlal",
"Panchbibi"
],
"Bogura": [
@AminulBD
AminulBD / sublime-context-menu-add.reg
Last active February 3, 2024 02:29
Open With Sublime 4 Text in Context Menu (Windows 10)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Sublime Text]
@="Open with Sublime Text"
"Icon"=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,\
00,46,00,69,00,6c,00,65,00,73,00,5c,00,53,00,75,00,62,00,6c,00,69,00,6d,00,\
65,00,20,00,54,00,65,00,78,00,74,00,5c,00,73,00,75,00,62,00,6c,00,69,00,6d,\
00,65,00,5f,00,74,00,65,00,78,00,74,00,2e,00,65,00,78,00,65,00,2c,00,30,00,\
00,00
@AminulBD
AminulBD / bash.sh
Created June 13, 2018 17:45
Cleaning Ignored Files
git rm -r --cached .
git add .
git commit -m "Clean up ignored files"
@AminulBD
AminulBD / translate-strings.php
Created June 12, 2018 12:39
Translate string via CLI with PHP
<?php
$strings = [
'KEY_1' => 'Hello',
'KEY_2' => 'World';
];
$sourceLang = 'en';
$transLang = 'es';
$devMail = 'YOUR_API_MAIL@YOU.com';
@AminulBD
AminulBD / Vagrantfile
Last active May 26, 2018 08:03
Vagrant & VirtualBox Symlink Creation
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@AminulBD
AminulBD / banglaSpellOut.php
Created May 18, 2018 12:23
Spell out money amount in bangla word.
<?php
/**
* Convert number to word in bangla
*
* @param int $number
* @param string $after
* @param string $before
* @return string
*/
function banglaSpellOut($number = 0, $after = '', $before = '')
@AminulBD
AminulBD / README.MD
Created July 1, 2017 12:54
Simple gulp tasks for WordPress theme development.

Copy the package.json and gulpfile in your theme folder "wp-contents/themes/your_theme" and edit package.json and gulpfile as your needs. install node modules by npm install or yarn and then run gulp to start development enviroment with sass and live reload.

Directory structure

  • your_theme
  • sass <- Containing your .scss or .sass files.

Commands

gulp sass sass:watch

@AminulBD
AminulBD / README.MD
Last active September 13, 2023 11:17
BD Domain ability checker with php.

(DOT) .BD DOMAIN ABILITY CHECKER

You can use this as WHMCS or other domain checker to check ability of .bd domains. This is a concept for how to create your own whois server.

WARNING: WHEN YOU USE THIS SCRIPT, YOU KNOW WHAT YOU ARE DOING. I'M NOT RESPONSIVE FOR ANY PROBLEM

First login to your server (Any distro) and install the following dependencies.

For ubuntu user:

apt-get install xinetd dnsutils php-cli