I made a change in the blogger configuration to ease the later work when blogging. It is possible that older entries are not correctly formatted.

Showing posts with label tool. Show all posts
Showing posts with label tool. Show all posts

Sunday, 10 June 2012

Simple script to install some packages for my server

#! /bin/bash

#CMD='apt-get -y install %s';
CMD='echo %s';
REGEXP='(#.*|^\s*$)'



function installPackage(){
PERFORM_CMD=`printf "${CMD}" $1`;
echo ${PERFORM_CMD};
${PERFORM_CMD};
}


function installPackages(){
while read line
do
if [[ $line =~ $REGEXP ]]; then
continue;
fi
installPackage $line;
done <$1 } # for PACKAGE_LIST in installfiles.txt; do installPackages ${PACKAGE_LIST}; done



Monday, 3 May 2010

Zen Coding

Zen Coding is an utility to generate simple HTML skeleton structures using a path like expression with some syntactic enhancement. From the demos, it is really quite impressive, because in this way one can generate quite quickly complex HTML structures.

I read the entry on slashdot.org and then followed the link to this blog.

Though I still need to try it. I am amazed. I have to make it work in eclipse and emacs (aswell as perhaps vi).