03/29/11

Bacula Cancel Job Script

This script when execute will grab all scheduled job and running job and cancelling all of them through Bacula interface. It’s useful for people who need to cancel job before the start of working days.

I initially wrote this for my company use.Now I’m sharing the love with everyone else.Releasing under GPL 2.

cancel_job.sh.tar

07/2/10

CodeIgniter Tag for Geany

I compile a codeigniter tag file for Geany.I’m no expert in codeigniter,so if i make any mistake/suggestion/changes,please let me know.

Releasing under GPL 2,so feel free to do any modification on it.Please inform me if you did,I’ll like to have a better version

codeigniter.php.tags


08/22/09

Increase Mplayer volume

You can also put all these configurations in the config file: ( ~/.mplayer/config )

# Write your default config options here!
softvol=1
softvol-max=400
#stop-xscreensaver=1
zoom=1
vm=1

03/6/09

Garmin ActiveTrack(NVM) to GPX

This web app was release in conjunction with my GF’s birthday.Happy Birthday Darling!!

Garmin Active Track (GARMIN_ATRK.NVM) contain users’ tracklog. Tracklog could be use to improve open maps such as malfreemaps.com .If you have problems exporting GARMIN_ATRK.NVM through Mapsource or doesn’t have mapsource installed,this web app will help you.

Download the source here (GPL)

*Special thanks to an unknown Russian who figure out the formula and MalFreeMaps for the free maps.MFM ROCKS!!


02/19/09

Building Ubuntu FreeRadius 1.1.7 with EAP/TLS/TTLS support

Ubuntu do not have freeradius1 is their repo.It’s annoying considering most of the online guide/config for freeradius TTLS is on freeradius1.Moreover,due to licensing issue,Ubuntu do not support EAP/TLS/TTLS by default.

This is the steps to get a freeradius1 with EAP/TLS/TTLS deb

1. Download from freeradius.org. during time of writing it’s 1.1.7 wget -c ftp://ftp.freeradius.org/pub/radius/freeradius-1.1.7.tar.gz

2. extract it into a directory. tar xvf freeradius-1.1.7.tar.gz

3. change directory cd freeradius-1.1.7

4. check debian/rules nano debian/rules.Ensure this line is uncomment and “buildssl” contain –with-rlm_eap_peap –with-rlm_eap_tls –with-rlm_eap_ttls
modulepackages = krb5 ldap mysql iodbc postgresql
buildssl = --with-rlm_eap_peap --with-rlm_eap_tls --with-rlm_eap_ttls --with-rlm_sql_postgresql_lib_dir=`pg_config --libdir` --with-rlm_sql_postgresql_include_dir=`pg_config --includedir`

5. check debian/control nano debian/control and ensure libssl-dev is in the build depends Build-Depends: debhelper (>= 4.2.32), dpatch (>= 2), autotools-dev, libtool (>= 1.5), libltdl3-dev, libpam0g-dev, libmysqlclient15-dev | libmysqlclient14-dev | libmysqlclient-dev, libgdbm-dev, libldap2-dev, libsasl2-dev, libiodbc2-dev, libkrb5-dev, libperl-dev, snmp, libsnmp9-dev | libsnmp5-dev | libsnmp4.2-dev, libpq-dev | postgresql-dev, libssl-dev

6. install packages that are required for compiling apt-get install build-essential fakeroot

7. install freeradius dependency apt-get build-dep freeradius

8. in freeradius-1.1.7 run dpkg-buildpackage -rfakeroot

9. cd ..;ls *.deb these are the deb file you had compiled freeradius_1.1.7-0_i386.deb
freeradius-dialupadmin_1.1.7-0_all.deb
freeradius-iodbc_1.1.7-0_i386.deb
freeradius-krb5_1.1.7-0_i386.deb
freeradius-ldap_1.1.7-0_i386.deb
freeradius-mysql_1.1.7-0_i386.deb
freeradius-postgresql_1.1.7-0_i386.deb

10. to install either packages dpkg -i freeradius_1.1.7-0_i386.deb or dpkg -i [package_name.deb]

just in case if need a dh for certs openssl dhparam -check -text -5 512 -out dh

01/27/09

Export Mapking G12 POI to KML/GPX

Mapking G12 is an application that normally reside on Personal Navigation Device (PND)/Windows CE/symbian.It lacks of features such as “export favorite POI”.This is a converter to convert the binary POI to useful POI.

How to get PPGPOINE.DAT

Go to SDcard -> MagaNavi -> USER -> PPGPOINE.DAT

 

Download the source here (GPL)


01/19/09

Convert Mapking R12 to G12 (Symbian & PND)

  1. Get UltraEdit
  2. Download Mapking R12 map
  3. Edit with UltraEdit
  4. On Line 0×0020/00000020h replace with the Header of your desired software

MapKing R12 Map File Header,
Line 0×0020
E5 A8 E9 A8 FB A8 E1 A8 E9 A8 F7 A8

Papago G12 Map File Header,
Line 0×0020
F8 A8 F8 A8 EF A8 99 A8 9A A8 98 A8

Mapking G12 Map (PND,WinCE) File Header
line 0×0020
E3 A8 90 A8 EF A8 9A A8 A8 A8 E5 A8

Mapking G12 Map (Symbian) File Header
line 0×0020
E5 A8 E9 A8 FB A8 E1 A8 E9 A8 F7 A8

01/19/09

Rooting GPS Bay 3303

This is how I did it on my GPS Bay 3303.

Step 1. Create a new file called shell.ini
Step 2. Paste this in

/windows/explorer.exe

Step 3. Copy it into SD card and run “Navigation”
**Note:this step will disable navigation until u delete shell.ini from SD card or you can open it from windows explorer by looking for “MobileNavigator”

01/19/09

Converting GTRACK.BIN to KMZ

This is steps that I used to get the track log

I’m using Mapking G12,so i’m not sure whether this steps apply for other version

  1. Go to Advanced -> Display Setting -> Track Log (enable it)
  2. Select “Navigation” and drive around with/without destination
  3. If you select “Map View”,you should see dots on the map.That’s your track log.
  4. Go to SD Card -> MagaNavi (this folder might be different) -> user.Copy GTRACKMP.BIN to your pc.
  5. Go to this site http://www.noktek.com/~gps/log2kml.htm upload GTRACKMP.BIN and you’ll get a kmz file which could be easily read by text editor.
01/19/09

MMU VPN With VPNC

Install VPNC
host:# apt-get install vpnc

Configure VPNC

host:$ su
host:$ vpnc
Enter IPSec gateway address: vpn.mmu.edu.my
Enter IPSec ID for vpn.mmu.edu.my: mmuvpn
Enter IPSec secret for mmuvpn@vpn.mmu.edu.my:63100
Enter username for vpn.mmu.edu.my: v511xxxx@studmlk
Enter password for v511xxxx@studmlk@vpn.mmu.edu.my:
[your MMU Unix password]
VPNC started in background (pid: 14755)…

OR

host:$ su
host:$ cd /etc/vpnc/
host:$ ‘wget’ http://blog.zyrax.net/wp-content/uploads/mmuvpn.conf
host:$ vpnc mmuvpn.conf
Enter username for vpn.mmu.edu.my: v511xxxx@studmlk
Enter password for v511xxxx@studmlk@vpn.mmu.edu.my:
[your MMU Unix password]
VPNC started in background (pid: 14755)…

What is my Unix ID and Password?
Read Here

Where you get the IPSec Secret?
IPSec Secret is the same for everyone who is following this tutorial.
It’s just for reference.I used this.