Archive for September, 2008

bash script accept parameter when called

Monday, September 29th, 2008

example :

#!/bin/bash

echo this is the first parameter supplied $1, and this is script name is $0

FreeBSD - GPG in thunderbird (and also enigmail & pinentry)

Friday, September 26th, 2008
  • install enigmail from /usr/local/share/enigmail/…xpi
  • ln -s /usr/local/bin/gpg /usr/bin/gpg
  • cd /usr/ports/security/pinentry;make install clean

FreeBSD - ports installation bump cause by ports audit

Friday, September 26th, 2008

When installing ports and it complain about “this ports has vulnerabilities“, preventing installation to continue. disable the vulnerabilities checking by “export DISABLE_VULNERABILITIES=true” and retry the installation again.

Drawing shapes in Gimp

Thursday, September 25th, 2008

Ever wonder why Gimp does not have shapes drawing functions? It has, just need to adapt to its way of working.

1. choose the shape,

2. choose the border color,

3.draw the shape then click Edit –> Stroke Selection … and press okay

Voila !

https - SSL protected website

Wednesday, September 17th, 2008

After upgraded to Firefox3, some https (SSL) website is unable to load. But reading the error messages (”Secure Connection Failed”) carefully, it actually have an option to bypass the security check. Here’s how :

- click on the link says “Or you can add an exception”,

- then click on the button “Add Exception …”,

- when the window “Add Security Exception” pops up, click on “Get Certificate” and then “Confirm Security Exception” button.

Voila, the page reloads !!!