Skip to content

Instantly share code, notes, and snippets.

View phpfour's full-sized avatar

Mohammad Emran phpfour

View GitHub Profile
@phpfour
phpfour / .gitconfig
Created February 6, 2014 08:53
.gitconfig
[user]
name = Emran Hasan
email = phpfour@gmail.com
[core]
autocrlf = input
excludesfile = ~/.gitignore_global
filemode = false
[push]
default = simple
@phpfour
phpfour / config.sql
Last active August 29, 2015 13:57
Docudex config
INSERT INTO `configurations` (`config_key`, `config_value`, `locked`)
VALUES
('documentpath1', '{UPLOAD_DIR}/documents', 0),
('system.file.maxsize', '10240', 0),
('system.paths.repository.default', 'documentpath1', 0),
('system.paths.staging', '{WEB_ROOT}/staging', 0),
('system.paths.upload', '{WEB_ROOT}/uploads', 0),
('user.profile.image', '{WEB_ROOT}/uploads/user/image', 0);
backend default {
.host = "127.0.0.1";
.port = "80";
}
sub vcl_recv {
if (req.http.Cache-Control ~ "no-cache") {
return (pass);
}
@phpfour
phpfour / calorie.txt
Created May 28, 2014 09:36
জেনে নিন আপনার দৈনিক ক্যালরির চাহিদা কত
মহিলাদের জন্য ফর্মূলা,
দৈনিক ক্যালরি=[৬৫৫+(৯.৬xকেজিতে আপনার ওজন)+(১.৮xসেন্টমিটারে আপনার উচ্চতা)-(৪.৭x আপনার বয়স)] x “পরিশ্রমের পরিমান”
পুরুষদের জন্য ফর্মূলা,
দৈনিক ক্যালরি= [৬৬+(১৩.৭xকেজিতে আপনার ওজন)+(৫xসেন্টমিটারে আপনার উচ্চতা)-(৬.৮xআপনার বয়স)] x“পরিশ্রমের পরিমান”
(সেন্টিমিটারে উচ্চতা জানা না থাকলে, এই লিঙ্ক থেকে বের করে নিন-
http://goo.gl/m8WUM)
“পরিশ্রমের পরিমান” এর জায়গায় নীচের চার্ট থেকে মান বসানঃ
@phpfour
phpfour / patient.json
Created August 5, 2014 12:11
MCI Patient JSON
{
"nid": 1234568930163,
"uid": 11111114111,
"first_name": "dfdfdf",
"middle_name": "Ali",
"last_name": "Hosssain",
"full_name_bangla": " হোসেন মন্ডল",
"fathers_name_bangla": "dfdfdf",
"fathers_first_name": "Akhtartest",
"fathers_middle_name": "Hossaine",
@phpfour
phpfour / mci.sql
Last active August 29, 2015 14:11
MCI Patient Table
CREATE TABLE `patient` (
`health_id` varchar(255) NOT NULL DEFAULT '',
`national_id` varchar(255) DEFAULT NULL,
`uid` varchar(255) DEFAULT NULL,
`bin_brn` varchar(255) DEFAULT NULL,
`given_name` varchar(255) DEFAULT NULL,
`sur_name` varchar(255) DEFAULT NULL,
`full_name_bangla` varchar(255) DEFAULT NULL,
`address_line` varchar(255) DEFAULT NULL,
`division_id` varchar(255) DEFAULT NULL,
@phpfour
phpfour / gist:c70dbfa6a45dd9be09d0
Created January 20, 2015 07:20
Server Preparation
# Ubuntu 12.04
sudo locale-gen en_US
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get install build-essential apache2 git mysql-server curl
sudo apt-get install php5 php5-dev php-pear php5-intl php5-gd php5-mysql php-apc
# CentOS
Food
Electronics
- Computers
-- Desktops
-- Laptops
--- Core i7
--- Core i3
- Consumer Electronics
- Industrial Electronis
Clothing
@phpfour
phpfour / SlimMvc.php
Created January 20, 2012 09:27
An MVC style use of Slim.
<?php
require 'Slim/Slim.php';
class SlimMvc extends Slim
{
public function __construct($userSettings = array())
{
parent::__construct($userSettings);
$this->init();
@phpfour
phpfour / bootstrap.php
Created February 2, 2012 17:51
Kohana Bootstrap (comment less, clean version)
<?php defined('SYSPATH') or die('No direct script access.');
class Bootstrap
{
public static function run()
{
self::loadKohanaCore();
self::loadKohanaExtension();
self::setDefaultTimezone();
self::setDefaultLocale();