
iTerm2 is a replacement for Terminal and the successor to iTerm. It works on Macs with OS 10.5 (Leopard) or newer. Its focus is on performance, internationalization, and supporting innovative features that make your life better.
My new server has a Ubuntu 14.04 LTS.
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic x86_64)

sudo passwd root
adduser demo
Sh*t!,
The installation of my Ubuntu on my dedicated server was in French!
LANG="fr_FR.UTF-8"
This is how I’v changed it.
/etc/default/locale
LANG="en_US"
LANGUAGE="en_US:en"
~/.pam_environment
LANG=en_US
LANGUAGE=en_US
Testing download speed........................................
Download: 499.98 Mbits/s
Testing upload speed..................................................
Upload: 196.86 Mbits/s
Testing download speed........................................
Download: 475.47 Mbits/s
Testing upload speed..................................................
Upload: 213.55 Mbits/s
Testing download speed........................................
Download: 466.27 Mbits/s
Testing upload speed..................................................
Upload: 215.19 Mbits/s
Using http://www.digitalwhores.net/linux/how-to-test-server-speed-in-your-consoleterminal/
Ever since google published its research paper on map reduce, you have been hearing about it. Here and there. If you have uptil now considered map-reduce a mysterious buzzword, and ignored it, Know that its not. The basic concept is really very simple. and in this tutorial I try to explain it in the simplest way that I can. Note that I have intentionally missed out some deeper details to make it really friendly to a beginner.
Read the full article http://ksat.me/map-reduce-a-really-simple-introduction-kloudo/
In a client work, I need to force download a MP4 file on some special occasions.
PHP was the solution – in my case -.
This is the small script that I’v placed in download.php – the important stuff -.
Before I have a file_exist condition and other stuffs… but this is the RAW material!
header ("Content-type: octet/stream");
header ("Content-disposition: attachment; filename=".$filename.".mp4;");
header("Content-Length: ".filesize($myFile));
ob_clean();
readfile($myFile);
Some of the MP4 files were beeing downloaded! Other weren’t. sh*t!
The problem was a PHP Fatal error!
[03-May-2014 08:09:18] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 429363201 bytes) in /web/sites/user/domain.com/download.php on line 30
Well!, there are 3 ways to solve this.
ini_set('memory_limit','128M');
.htaccessphp_value memory_limit 128M
First solution is the best option, since the other 2 might not work due to security settings.
This solution we don’t need to increase PHP memory limit.
This will read 8kb of file and push it to the client AND not the full file!
header ("Content-type: octet/stream");
header ("Content-disposition: attachment; filename=".$filename.".mp4;");
header("Content-Length: ".filesize($myFile));
ob_clean();
$handle=fopen($_REQUEST['file'], 'rb');
while (!feof($handle))
{
echo fread($handle, 8192);
flush();
}
fclose($handle);
The normal file type for MP4 is video/mp4.
This way the browser will try to play it and won’t download it.
We can force .htaccess to change it and force the download.
Lets say that we want to force the download when the URL has a ?dl.
RewriteCond %{QUERY_STRING} dl
RewriteRule .*\.mp4 - [T=application/octet-stream]
This way .htaccess www.domain.com/video.mp4?dl and change the file type to application/octet-stream – the one that forces the download.
This is how we can block access to a folder between 13 and 15 o’clock.
RewriteCond %{TIME_HOUR} ^(13|14|15)$
RewriteRule ^.*$ – [F,L]
The hours are based on 24 hours in a day from 0 to 23.
This avoids us to start every PHP with require ‘header.php’; or ending it with require ‘footer.php’; .
# Prepend the file php_value auto_prepend_file "/real/path/to/file/header.php" # Append file to bottom of page php_value auto_append_file "/real/path/to/file/footer.php"
Baruwa (swahili for letter or mail) is a web 2.0 MailScanner front-end.
It provides an easy to use interface for managing a MailScanner installation. It is used to perform operations such as releasing quarantined messages, spam learning, whitelisting and blacklisting addresses, monitoring the health of the services etc. Baruwa is implemented using web 2.0 features (AJAX) where deemed fit, graphing is also implemented on the client side using SVG, Silverlight or VML. Baruwa has full support for i18n, letting you support any language of your choosing.
It includes reporting functionality with an easy to use query builder, results can be displayed as message lists or graphed as colorful and pretty interactive graphs.
Custom MailScanner modules are provided to allow for logging of messages to the mysql database with SQLite as backup, managing whitelists and blacklists and managing per user spam check settings.
Baruwa is open source software, written in Python/Perl using the Django Framework and MySQL for storage, it is released under the GPLv2 and is available for free download.
Read the Docs hosts documentation, making it fully searchable and easy to find. You can import your docs using any major version control system, including Mercurial, Git, Subversion, and Bazaar. We support webhooks so your docs get built when you commit code. There’s also support for versioning so you can build docs from tags and branches of your code in your repository. A full list of features is available.
It’s free and simple. Read the Getting Started guide to get going!