Skip to content

Instantly share code, notes, and snippets.

View arifulhb's full-sized avatar
💡
Side project https://www.laptoplist.com

Ariful Haque arifulhb

💡
Side project https://www.laptoplist.com
View GitHub Profile
"""""""""""""""""""""""""""""""""""""
" Allan MacGregor Vimrc configuration
"""""""""""""""""""""""""""""""""""""
set nocompatible
syntax on
set nowrap
set encoding=utf8
"""" START Vundle Configuration
[su_row][su_column size="1/2"]
Pros
[su_list icon="icon: share" icon_color="#548c4d"]
List item
[/su_list]
[/su_column][su_column size="1/2"]
@arifulhb
arifulhb / ecuador.json
Created May 6, 2018 06:02
Ecuador Province and Cantons list.
[
{
"Province SN": 1,
"Province": "Azuay",
"cantons": [
{
"Canton": "Camilo Ponce Enríquez",
"Capital": "Camilo Ponce Enríquez"
},
{
# 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]
# block google analytics spam
# Block Baidu spider
User-agent: Baiduspider
User-agent: baiduspider
User-agent: Baiduspider-video
User-agent: Baiduspider-image
User-agent: Baiduspider+
Disallow: /
# BLOCK Yandex
User-agent: Yandex
@arifulhb
arifulhb / .vimrc
Created July 24, 2016 09:43 — forked from JeffreyWay/.vimrc
Laracasts: Vim Mastery - Episode 3 .vimrc progress
syntax enable
colorscheme desert
"-------------General Settings--------------"
set backspace=indent,eol,start "Make backspace behave like every other editor.
let mapleader = ',' "The default leader is \, but a comma is much better.
set number "Let's activate line numbers.
'use strict';
module.exports = function () {
return {
created: function (obj, message) {
return {
status: true,
httpStatus: 201,
message: message,
@arifulhb
arifulhb / unixtimestamptojavascriptdate
Created March 4, 2015 07:38
unix timestamp to javascript date
var ep = '1424901599';
var date = new Date(ep*1000);
var iso = date.toLocaleString();
alert(iso)
@arifulhb
arifulhb / .htaccess
Created January 22, 2015 07:21
CodeIgniter .htaccess for folder
<IfModule mod_rewrite.c>
RewriteEngine on
Options -Indexes
RewriteBase /foldername/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /foldername/index.php/$1 [L]
AddOutputFilter DEFLATE css js
ExpiresActive On
@arifulhb
arifulhb / .htaccess
Created January 19, 2015 10:35
A simple .htaccess for CodeIgniter
<IfModule mod_rewrite.c>
RewriteEngine on
Options -Indexes
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>