Skip to content

Instantly share code, notes, and snippets.

View mdriyad's full-sized avatar

Mostafizur Rahman mdriyad

View GitHub Profile
@mdriyad
mdriyad / box-shadow.html
Created November 16, 2021 10:06 — forked from ocean90/box-shadow.html
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@mdriyad
mdriyad / AndroidManifest.xml
Created September 6, 2020 11:43
Onclick open new activity | Android Studio
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.indexitltd.myapplication">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
@mdriyad
mdriyad / config.php
Created July 26, 2020 15:10
SSLCommerz
<?php
$store_id = "your store id";
$store_passwd = "your store password";
CREATE TABLE IF NOT EXISTS `settings_country` (
`sn` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(80) NOT NULL DEFAULT '',
`nicename` varchar(80) NOT NULL DEFAULT '',
`iso` char(2) NOT NULL DEFAULT '',
`iso3` char(3) NOT NULL DEFAULT '',
`currency` char(3) NOT NULL DEFAULT '',
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) DEFAULT NULL,
@mdriyad
mdriyad / .htaccess
Created June 25, 2020 15:11
How to change my document root folder using an .htaccess file?
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain-name.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.domain-name.com$
RewriteCond %{REQUEST_URI} !folder/
RewriteRule (.*) /folder/$1 [L]
@mdriyad
mdriyad / .htaccess
Last active July 14, 2020 06:08
wordpress default .hatccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
@mdriyad
mdriyad / exim.cof_original
Last active June 30, 2020 00:41
Vestacp exim configuration file
######################################################################
# Runtime configuration file for Exim #
######################################################################
# This is a default configuration file which will operate correctly in
# uncomplicated installations. Please see the manual for a complete list
# of all the runtime configuration options that can be included in a
# configuration file. There are many more than are mentioned here. The
# manual is in the file doc/spec.txt in the Exim distribution as a plain
@mdriyad
mdriyad / 2.js
Last active December 25, 2019 15:07
{
"facebook": {
"attachment": {
"type": "template",
"payload": {
"template_type": "button",
"text": "What action do you want at this stage?",
"buttons": [
{
"type": "postback",
@mdriyad
mdriyad / webhook.php
Created December 23, 2019 16:49 — forked from visitdigital/webhook.php
Very Simple Facebook Chat Bot PHP Webhook Script Example
<?php
$challenge = $_REQUEST['hub_challenge'];
$verify_token = $_REQUEST['hub_verify_token'];
// Set this Verify Token Value on your Facebook App
if ($verify_token === 'testtoken') {
echo $challenge;
}
$input = json_decode(file_get_contents('php://input'), true);
@mdriyad
mdriyad / Buttons_Template.js
Created December 23, 2019 15:44 — forked from Anshul0305/Buttons_Template.js
Facebook Code Snippets
{
"facebook":{
"attachment":{
"type":"template",
"payload":{
"template_type":"button",
"text":"What do you want to do next?",
"buttons":[
{
"type":"web_url",