Blog

Add a new blog
September 14

Setup sass & gulp

Must have ruby if it is not already installed. # sudo apt-get install ruby   Install SASS # sudo gem install sass   Install GULP ( assuming you have node.js installed) # npm install --global gulp-cli # npm init # npm install --save-dev gulp   Install GULP for SASS # npm install --save-dev gulp-sass   Create gulpfile.js with following script 'use strict'; var gulp = require('gulp'); var sass = require('gulp-sass'); gulp.task('sass', function() { gulp.src('./scss/**/*.scss') ...

April 7

Speed up your web with google pagespeed module - mod_pagespeed

Speed up your web with:   https://developers.google.com/speed/pagespeed/module/download#supported-platforms ...

April 6

Iframe resize

Iframe resize.    https://github.com/davidjbradshaw/iframe-resizer     ...

March 29

LAMP on Ubuntu 14.04

sudo apt-get update && sudo apt-get upgrade Install apache sudo apt-get install apache2 Install mysql sudo apt-get install mysql-server Run secure mysql connection mysql_secure_installation Install PHP sudo apt-get install php5 php-pear sudo apt-get install php5-mysql Once PHP5 is installed, tune the configuration file located in /etc/php5/apache2/php.ini to enable more descriptive errors, logging, and better performance. The following modifications provide a good starting point: /etc/php5/apache2/php.ini error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR error_log = /var/log/php/error.log max_input_time = 30 Create...

March 28

mysql add db user

In order to connect remotely you have to have MySQL bind port: 3306 to your machines IP in my.cnf. Then you have to have created the user in both localhost and '%' wildcard and grant permissions on all DB's as such . See below: my.cnf #Replace xxx with your IP Address bind-address = xxx.xxx.xxx.xxx then CREATE USER...

March 28

How Extend a AWS EC2 instance volume size

https://www.youtube.com/watch?v=LqgE1igqJG0 ...

February 23

laravel setup

Fast installation Use composer command to install your laravel app: # composer create-project --prefer-dist laravel/laravel my_site    Once you have the new app, setup your apache to point to your new app with your domain (I am going to skip the Apache setting for domain here). Mostly, you will need to permission for two folders: # chown -R www-data:www-data /my_site/storage # chown -R www-data:www-data /my_site/boostrap/cache (or,...

Send us a message. We will reply as soon as we can.