Monthly Archives: November 2013

Sublime 3 and the Emmet plugin

After installing Sublime 3 and the package control center you should also install the incredible Emmet plugin.

This plugin helps you write HTML / CSS code lightning fast.

For example:
Create a new document in Sublime and save it as index.hml. Inside the sublime editor type

The following HTML document will be generated:

After you press  tab  a default HTML 5 template will be generated. The cursor is positioned at the <title>  tag; this is the most likely item you are going to change. Type your title and move the cursor after the <body>  tag. The type:

After you press tab the following HTML will be generated:

Explanation of the shortcode:
Create an ul  and with that 2 li  items. Within the li  a href  is generated with a class link followed by a sequence number. The {$}  inserts the sequence number as text.

GIT logo

Mount NFS share under Ubuntu

On the server:

Edit the file /etc/exports  file and add the line:



/share  is the location you want to share
hosts  is the specification of hosts you allow access
all_squash  to translate all anonymous id’s (not known on server) to the give anonuid and anongid
no_subtree_check does no checking on the complete subtree of filepermissions (see also here)

After adding or changing an export to the /etc/exports file don’t forget to restart the NFS server:

On the client:

To view the list of exported shares on the server execute the command:


Example of output:

To mount the NFS share local create a new subfolder and execute the command:

This will mount the folder /home on the server local on your /home/ folder.




Send email with PHP script

So you want to send an email through a PHP script. Well that is dead simple (provided you have your smtp server setup correctly). See the code fragment below: