An example on how to rebuild nginx rpm/deb package with 3rd party module

ngx_version=$(nginx -v 2>&1 | cut -s -f2 -d '/')
ngx_config=$(nginx -V 2>&1 | cut -s -f2 -d':' | head -2 | tail -1 | awk -F '\--with-cc-opt' '{print $1}')
sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev libzip-dev
sudo mkdir ~/build && cd ~/build
sudo git clone git://github.com/arut/nginx-rtmp-module.git
sudo wget http://nginx.org/download/nginx-$ngx_version.tar.gz
sudo tar xzf nginx-$ngx_version.tar.gz && cd nginx-$ngx_version
sudo ./configure $ngx_config --add-module=../nginx-rtmp-module
sudo make
sudo make install

How to Freelance from Iraq

Iraqi citizens to date can’t withdraw money to their bank accounts for reasons that I’m not aware of (My speculations are due to USA Sanctions).

So basically if you have a profession and want to freelance online you will not able to withdraw your income into your bank account.

Continue reading “How to Freelance from Iraq”

[WHMCS] sell in multiple currencies for the same client

So recently I ran into this weird scenario where I had to sell Product A in USD and Product B in EUR for the same client on XSL.TEL because in current WHMCS currency system the client can choose 1 currency at registration and have to create new account using new email to buy a product with another currency.

Continue reading “[WHMCS] sell in multiple currencies for the same client”