Update The system
sudo yum -y updateInstall the Platform Development Tools
sudo yum -y groupinstall "Development Tools"| 'use strict'; | |
| var elasticsearch = require('elasticsearch'); | |
| var Promise = require('bluebird'); | |
| var log = console.log.bind(console); | |
| var client = new elasticsearch.Client({ | |
| host: 'localhost:9200', | |
| log: 'trace' |
| // --- Compiling --- | |
| $ wget http://download.redis.io/releases/redis-2.8.3.tar.gz | |
| $ tar xzvf redis-2.8.3.tar.gz | |
| $ cd redis-2.8.3 | |
| $ make | |
| $ make install | |
| // --- or using yum --- | |
| $ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| $ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm |
Update The system
sudo yum -y updateInstall the Platform Development Tools
sudo yum -y groupinstall "Development Tools"| sudo yum install libmpc-devel mpfr-devel gmp-devel | |
| cd ~/Downloads | |
| curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2 -O | |
| tar xvfj gcc-4.9.2.tar.bz2 | |
| cd gcc-4.9.2 | |
| ./configure --disable-multilib --enable-languages=c,c++ | |
| make -j 4 | |
| make install |
| yum install libmpc-devel mpfr-devel gmp-devel | |
| cd /usr/src/ | |
| curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.3/gcc-4.9.3.tar.bz2 -O | |
| tar xvfj gcc-4.9.3.tar.bz2 | |
| cd gcc-4.9.3 | |
| ./configure --disable-multilib --enable-languages=c,c++ | |
| make -j `grep processor /proc/cpuinfo | wc -l` | |
| make install |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: nginx | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: nginx init.d dash script for Ubuntu or other *nix. | |
| # Description: nginx init.d dash script for Ubuntu or other *nix. | |
| ### END INIT INFO |
| [Unit] | |
| Description=The NGINX HTTP and reverse proxy server | |
| After=syslog.target network.target remote-fs.target nss-lookup.target | |
| [Service] | |
| Type=forking | |
| PIDFile=/var/run/nginx.pid | |
| ExecStartPre=/usr/sbin/nginx -t | |
| ExecStart=/usr/sbin/nginx | |
| ExecReload=/bin/kill -s HUP $MAINPID |
| user apache; | |
| worker_processes 4; | |
| error_log logs/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 2048; | |
| } |
| <?php | |
| /** | |
| * File: SimpleImage.php | |
| * Author: Simon Jarvis | |
| * Modified by: Miguel Fermín | |
| * Based in: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php | |
| * | |
| * This program is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU General Public License | |
| * as published by the Free Software Foundation; either version 2 |
Let Google cache and resize your images.
Resized and Cached:
Original: