Skip to content

Instantly share code, notes, and snippets.

View hungtrinh's full-sized avatar

Hưng Trịnh hungtrinh

  • Ha Noi, Viet Nam
View GitHub Profile
@hungtrinh
hungtrinh / poedit_install.sh
Last active November 9, 2015 06:26 — forked from bancek/poedit_install.sh
Install Poedit 1.8.6 from source on Ubuntu 15.04
wget https://github.com/vslavik/poedit/releases/download/v1.8.6-oss/poedit-1.8.6.tar.gz
tar xf poedit-1.8.6.tar.gz
cd poedit-1.8.6
apt-get install -y build-essential libwxgtk3.0-dev libicu-dev libgtkspell-dev libdb++-dev liblucene++-dev libboost-dev libboost-regex-dev libboost-system-dev libwxgtk3.0-dev
sed -i 's/Version: 3.0.3.4/Version: 3.0.5/' /usr/lib/x86_64-linux-gnu/pkgconfig/liblucene++.pc
./configure
make
make install
@hungtrinh
hungtrinh / php-zf2-resources.md
Last active September 18, 2015 12:21 — forked from AV4TAr/php-zf2-resources.md
A bunch of resources for PHP and Zend Framework 2
@hungtrinh
hungtrinh / Foo.php
Last active September 18, 2015 11:06 — forked from grizzm0/Foo.php
Best practice form/input-filter setup for ZF2
<?php
namespace Application\Entity;
/**
* Class Foo
*
* @package Application\Entity
*/
class Foo
{

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

@hungtrinh
hungtrinh / SmtpAuthentication Check
Created December 30, 2014 10:09
PHP check SMTP authentication without sending email
set_include_path(implode(PATH_SEPARATOR, array(
'/Users/apple/www/zend_compact/library', //point to Zend lib directory
get_include_path()
)));
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
require_once 'Zend/Loader/Autoloader.php';
@hungtrinh
hungtrinh / setup.sh
Last active August 29, 2015 14:12 — forked from boo1ean/setup.sh
#!/usr/bin/env bash
# Install dependencies
yum update -y
yum install -y gcc apr-devel apr-util-devel openssl-devel pcre-devel libxml2-devel libcurl-devel
mkdir setup && cd setup
wget http://mirrors.besplatnyeprogrammy.ru/apache//httpd/httpd-2.4.4.tar.gz
tar -xvf httpd-2.4.4.tar.gz