Monthly Archives: September 2015

Testing disk speed on Ubuntu

paulao@sd-XXXXX:~$ sudo dd if=/dev/zero of=/root/output conv=fdatasync bs=384k count=1k; rm -f /root/output 16:
1024+0 records in
1024+0 records out
402653184 bytes (403 MB) copied, 1.74116 s, 231 MB/s

paulao@sd-XXXXX:~$ dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync; unlink test
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB) copied, 5.53976 s, 194 MB/s

Amazon Cloud Drive Is Experiencing Problems.

cd_logo

Amazon Cloud Drive Is Experiencing Problems.

Unfortunately Cloud Drive is not responding at the moment. We are working on this and Cloud Drive will be back as soon as possible.


500 Service Unavailable Error

We’re very sorry, but we’re having trouble doing what you just asked us to do. Please give us another chance–click the Back button on your browser and try your request again. Or start from the beginning on our homepage.

How to generate a .htpasswd password with PHP?!

This worked for me.

$new_password = password_hash($old_password, PASSWORD_BCRYPT);

password_hash() creates a new password hash using a strong one-way hashing algorithm. password_hash() is compatible with crypt().
Therefore, password hashes created by crypt() can be used with password_hash().

PASSWORD_BCRYPT – Use the CRYPT_BLOWFISH algorithm to create the hash.
This will produce a standard crypt() compatible hash using the “$2y$” identifier. The result will always be a 60 character string, or FALSE on failure. Supported Options:

http://php.net/manual/en/function.password-hash.php

Remove Apache 2.4 version signature @ Ubuntu 15.04

Forbidden

You don’t have permission to access /galleries/ on this server.

 

Ubuntu 15.04
Apache/2.4.10 (Ubuntu)

Remove Apache version signature
nano /etc/apache2/conf-enabled/security.conf

On ServerTokens uncomment the line with ServerTokens Prod or add it.
Uncomment the ServerSignature Off entry or add it.

Remove PHP version from headers

I guess that by default they are disabled, but in any case you can remove it by editing the php.ini and set expose_php to off.

sudo nano /etc/php5/apache2/php.ini

online.com gifts!

Two weeks ago, ONLINE.NET sent me some gifts.

  • stickers
  • pen
  • tshirt – we host porn –
  • key chain

BTW, I’m a online.net’s client since 29/04/2014.

pjrfigueiredo@sd-696969:~$ uptime
 13:20:17 up 211 days, 21:51, 1 user, load average: 0.57, 0.50, 0.46

This is a uptime from my second machine @ online.net.

graph-yearly_bandwidth-137849

 

fotografia (3) fotografia (1) fotografia