Skip to content

Instantly share code, notes, and snippets.

View mapsi's full-sized avatar

Angel Psiakis mapsi

View GitHub Profile
@mapsi
mapsi / .bashrc
Last active February 22, 2016 06:39
My .bashrc for Mac OSX 10.9.1
## Colorize the ls output ##
alias ls='ls -G'
## Use a long listing format ##
alias ll='ls -la'
## Show hidden files ##
alias l.='ls -d .*'
## Colorize the grep command output for ease of use (good for log files)##
@mapsi
mapsi / Testing_model_static_methods_in_controller_actions.md
Last active December 23, 2015 10:49
Testing model static methods in controller actions

Testing model static methods in controller actions

Imagine we have a model called Accounts which contains a static find() method.

class Accounts extends MyModel
{
    public static function find($param)
    {
        // ...
@mapsi
mapsi / installing_phalconphp_on_centos62.md
Last active January 15, 2022 06:00
Copy-Paste documentation of how to install phalcon on Phalcon on CentOS 6.2

#Installing Phalcon on CentOS 6.2 64bit

Install build tools

sudo yum install gcc make  
sudo yum install php-devel  

Compile Phalcon

@mapsi
mapsi / installing_couchbase_php_extension_centos62.md
Last active December 19, 2015 19:38
Couchbase PHP extension copy-and-paste quickstart for a standard CentOS 6.2 64bit LAMP stack

#Installing Couchbase PHP extension on CentOS 6.2 64bit

Install libraries and stuff

sudo wget -O/etc/yum.repos.d/couchbase.repo http://packages.couchbase.com/rpm/couchbase-centos62-x86_64.repo  
sudo yum check-update  
sudo yum install -y  libcouchbase2 libcouchbase-devel

Install Couchbase extension