Kriptonium

Sunday, January 29, 2017

Test desktop and mobile view and score with Google - testmysite

Alhamdulillah, Syukran katsiraa..it is 2017 and I am still breathing. Yeah, lot thing happen and changes all around the globe including us.

I found a new website by Google called testmysite. Here, you can test any website how it work with desktop and mobile view. Yeap, mobile friendly website is the most important thing nowaday since the largest web visitor are coming from mobile device.



Thank you Google for wonderful tool for us to design and serve better website, fast and mobile friendly.

Saturday, December 24, 2016

Rsync .ssh keys and permissions

I've had the same ssh keys for years. I just rsync them to a new system when I get one. I always seem to end up with mucked up permissions moving them around and never seem to remember how the permissions were set. Here's my reminder.
~/.ssh 700
~/.ssh/authorized_keys 600
~/.ssh/config 644
~/.ssh/id_dsa 600
~/.ssh/id_dsa.pub 644
~/.ssh/known_hosts 644

Saturday, November 26, 2016

Ubuntu - ApacheBench

$ sudo apt install apache2-utils
$ ab -c 50 -n 5000 http://kriptonium.com/

Fix Apache Error: Could not reliably determine the server’s fully qualified domain name

$ sudo systemctl status apache2
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: inactive (dead)
     Docs: man:systemd-sysv-generator(8)

Nov 26 00:48:49 kripx systemd[1]: Stopped LSB: Apache2 web server.
Nov 26 00:49:04 kripx systemd[1]: Starting LSB: Apache2 web server...
Nov 26 00:49:04 kripx apache2[8738]:  * Starting Apache httpd web server apache2
Nov 26 00:49:04 kripx apache2[8738]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the ' ServerName' directive globally to suppres

Just open apache2.conf via your terminal
$ sudo nano /etc/apache2/apache2.conf

Put ServerName localhost at end of the file, then restart you Apache service.