Worst Passwords of 2015

Two years ago I posted “The Worst Password of 2012.”

The use of insecure passwords hasn’t changed very much. Here are the worst passwords of 2015. The passwords in RED were also on the list for 2012 so if you are using one of these passwords then change it now.

1. 123456
2. password
3. 12345678
4. qwerty
5. 12345
6. 123456789
7. football
8. 1234
9. 1234567
10. baseball
11. welcome
12. 1234567890
13. abc123
14. 111111
15. 1qaz2wsx
16. dragon
17. master
18. monkey
19. letmein
20. login
21. princess
22. qwertyuiop
23. solo
24. passw0rd
25. starwars

This is a very helpful comic strip about selecting secure passwords from XKCD.

password

<=> PHP7 and Magento (M)

magento-php7

I finally installed PHP7 this weekend and ran some Magento local dev sites. The speed increase is impressive! It’s so much faster that it should be a mandatory requirement.

There’s only a couple of minor quirks, like not having dl() support which killed a couple of the extensions that had copy-protection on one site.  There’s a couple of small things to do to make PHP7 work but it’s covered below.  If you’re ready to take the Magento/PHP7 plunge and are using Ubuntu then this is how you can do it.

First, you have to remove your php5 install.

Remove php5

Warning: This will remove php5 from your system completely. 

sudo apt-get purge php5-*

Add the PHP7 repository

sudo add-apt-repository ppa:ondrej/php

sudo apt-get update

Install PHP7

sudo apt-get install php7.0

Install PHP7 components

sudo apt-get install php7.0-cli php7.0-common libapache2-mod-php7.0 php7.0 php7.0-mysql php7.0-fpm php7.0-curl php7.0-json php7.0-cgi php7.0-mcrypt

sudo service php7.0-fpm restart

sudo service apache2 restart

The Magento PHP7 Fix

Inchoo has this ready in an easy to install extension: https://github.com/Inchoo/Inchoo_PHP7

You may also need:

sudo apt-get install php7.0-intl php7.0-xsl php7.0-gd

(Thanks to Dave Moore for the tip)

 

Common problems with Magento after installing PHP7

If Apache is dumping plain text php instead of rendering it then be sure that you’ve installed libapache2-mod-php7.0.

sudo apt-get install libapache2-mod-php7.0

sudo service php7.0-fpm restart

sudo service apache2 restart

Getting a white page or error about mcrypt in Magento?

sudo apt-get install php7.0-mcrypt

sudo service php7.0-fpm restart

sudo service apache2 restart

 

php7

Dr. Horrible’s Traceroute

horrible

 

Dr. Horrible’s Sing-A-Long Blog is great.  Someone set up a series of hops that can be seen with a traceroute.  Here’s the whole thing when it works:

horribletraceroute

 

Here is as far as it gets for me:

13 bad.horse (162.252.205.130) 89.856 ms 89.849 ms 91.998 ms
14 bad.horse (162.252.205.131) 98.748 ms 96.610 ms 98.771 ms
15 bad.horse (162.252.205.132) 106.758 ms 109.627 ms 111.734 ms
16 bad.horse (162.252.205.133) 115.985 ms 117.089 ms 116.059 ms
17 he.rides.across.the.nation (162.252.205.134) 126.142 ms 127.243 ms 100.983 ms
18 the.thoroughbred.of.sin (162.252.205.135) 110.806 ms 116.876 ms 114.169 ms
19 he.got.the.application (162.252.205.136) 121.451 ms 126.479 ms 121.535 ms
20 that.you.just.sent.in (162.252.205.137) 127.869 ms 132.238 ms 132.122 ms
21 it.needs.evaluation (162.252.205.138) 137.586 ms 137.481 ms 141.631 ms
22 so.let.the.games.begin (162.252.205.139) 151.420 ms 151.885 ms 149.410 ms
23 a.heinous.crime (162.252.205.140) 134.791 ms 135.484 ms

It timed out here but still very cool.

Netgear A6100 WiFi USB Mini Adapter install for Ubuntu/Lubuntu

nic2nic1

 

Operating System: Lubuntu 14.10

My laptop’s internal wireless adapter decided to start acting up a few weeks ago.  I tried to deal with it but the frequent disconnections were affecting my ability to work efficiently.  I needed an external wireless card but I wanted the smallest possible one that I could find.

I picked one up at my local Walmart for about $34. This thing is very small and fits extra snugly into the USB port.  So snug that it makes me think I’m going to pull the case off of it when removing it from the port.  It’s pretty solid though.  I don’t intend on ever removing it so it’s fine with me.

I run Lubuntu on my main laptop.  It’s a very fast OS without a lot of bells and whistles.  What it lacks in special effects it makes up for in speed.

When I plugged in the Mini Adapter nothing happened. It wasn’t showing up on the wireless monitor at all. The instructions I found on Google were easy to follow and worked right away with no problems so I wanted to share them here.

 

Start by plugging in the adapter.

Open a terminal and run:

sudo apt-get install –reinstall linux-headers-$(uname -r) build-essential

After it finishes, go to a system that has an internet connection and navigate to the following Github page:

https://github.com/abperiasamy/rtl8812AU_8821AU_linux

Download the repo from the button labeled “Download ZIP” on the right-hand side of the page.  Copy the file to the system that the Mini Adapter is located.

Unzip the file you downloaded then cd to the folder it creates.

Run the following commands:

make
sudo make install
sudo modprobe 8812au

After everything completes, unplug then replug your USB card.

That’s all! Now you can connect to your network.

I’ve been running this adapter for a few days and it works perfectly.  It’s easily 5x-10x faster than my laptop’s failing built in wireless card. There were some areas of my house I couldn’t get a connection before but now it’s fast no matter where I am.

Thank you to the people that took the time to figure this out and share it with the community!

Source: http://ubuntuforums.org/showthread.php?t=2235778
Contributor name: Hadaka

and

Source: http://askubuntu.com/questions/368015/problem-with-building-compiling-a-driver-for-edimax-wireless-adapter-ew-7822uac
Contributor: http://askubuntu.com/users/19421/chili555

 

Commodore OS Vision

I installed Commodore OS Vision on one of my old laptops last night.  Overall it’s a nice little linux-based OS.  The speed and graphics were impressive!    It was really neat hearing the old SAM voice reading the license agreement and playing some of the old midi style music from the extras disc.  You can get it free here:  http://www.commodoreusa.net/CUSA_OS_Vision.aspx

Script to backup a database

Create a filed called “database_backup.sh

Put the following code in that file:

#!/bin/bash
filename=`date ‘+%m%d%y’`
mysqldump -u YOUR_USERNAME -p YOUR_DATABASE_NAME —password=YOUR_DATABASE_PASSWORD > /PATH_TO_SAVE_FILE
-backups/database-$filename.sql
echo Database backup completed for $filename.

Replace YOUR_USERNAME, YOUR_DATABASE_NAME, YOUR_DATABASE_PASSWORD and PATH_TO_SAVE_FILE with the values appropriate for your database and backup file save locations.

Either with FTP or SSH, change the file permission to 755.  In SSH this can be accomplished by running this command:

chmod 755 database_backup.sh

You can run the command by typing:

./database_backup.sh

You can set this up in crontab to run the command once per day at 1AM by doing the following:

crontab -e

This will open vi to allow you to add to the cron jobs.

Add this to the cron by typing “i” or hitting the INSERT key, then paste:

0 1 * * *     /PATH_TO_FILE/database_backup.sh

Replace PATH_TO_FILE with the path to your database_backup.sh file.  If you’re in the folder you can type pwd to get the full path.

Hit : (colon) and w to save the file, then : (colon) and q to quit.  If it updates successfully you’ll see crontab: installing new crontab.

Now every day your database will be backed up.  Be sure to use a location BELOW web root so the file won’t be accessible from the web.