Thursday, January 24, 2013

Friday, January 11, 2013

Management - Request agile developer to submit a feature spec and design spec before beginning a new story

In an agile development environment, developer will collect story owner feature requirement and then design the way to implement. To overview the job to be carry out by developer, team leader have to get a sense of what has been requested and what is being prepared and designed.

Git - Find changes of a file within all local branches

git log --all -- somefile_fullpath

Thursday, January 10, 2013

Tuesday, January 8, 2013

Linux - rsync from local to remote

rsync -au /var/www/confluence/confluence-data/backups -e 'ssh -p 1337' your_name@some_ip:/home/your_name/backups/wiki_backups

Saturday, January 5, 2013

Apache supporting multiple domain websites with single IP

Listen 443
NameVirtualHost *:443
SSLStrictSNIVHostCheck off
<VirtualHost *:443>
DocumentRoot /srv/www/example1.com/
ServerName www.example1.com
...
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /srv/www/example2.com/
ServerName www.example2.com
...
</VirtualHost>

Thursday, January 3, 2013

Create a SSL Cert, sign by Godaddy.com, install on Apache

  • Login VPS, root@ubuntu:~# openssl req -new -newkey rsa:2048 -nodes -keyout your_domain.key -out your_domain.csr
  • Godaddy.com
    • Product > SSL Cert
      • Basic SSL Cert
      • 3 yrs
    • Add to cart
    • Checkout
    • Payment
    • Account > SSL Cert
      • Setup
      • Launch
    • Current Certificates
      • Credits
        • Refresh
      • Request Certificate
        • Choose 3rd party
        • Paste your_domain.csr content to form
        • submit
  • Wait for email.
  • Download cert from Godaddy.com.
    • Select Apache.
  • Copy your_domain.crt and gd_bundle.crt (the CA's bundle file) to VPS, e.g. /etc/ssl/private/
  • Edit /etc/apache2/sites-available/default.ssl
    • SSLCertificateFile /etc/ssl/private/your_domain_com.crt
    • SSLCertificateKeyFile /etc/ssl/private/private.key
    • SSLCACertificateFile /etc/ssl/private/gd_bundle.crt
  • Restart apache.  $> sudo service apache2 restart
  • Done


References:
http://support.godaddy.com/help/article/5269/generating-a-certificate-signing-request-csr-apache-2x
http://support.godaddy.com/help/article/562/requesting-standard-and-wildcard-ssl-certificates
http://support.godaddy.com/help/article/5238/installing-an-ssl-certificate-in-apache

https://help.ubuntu.com/12.04/serverguide/httpd.html
http://www.geocerts.com/install/apache_2

Tuesday, January 1, 2013

Toolbox - Zabbix

Zabbix is the ultimate open source availability and performance
monitoring solution. Zabbix offers advanced monitoring, alerting, and
visualization features today which are missing in other monitoring
systems, even some of the best commercial ones.