Monthly Archive: December 2015

0

[: !=: unary operator expected

In bash, always use the dou­ble bracket con­di­tional com­mand [[ … ]] For exam­ple, #!/bin/bash sex=male if [[ $sex == ‘male’ ]];then echo “sex is male.” elif [[ $sex == ‘female’ ]];then echo “sex…

0

Embed youtube video in wordpress site

The fol­low­ing tem­plate allows you to do the fol­low­ing: Embed a youtube video into Word­Press site, which uses mark­down in its posts. Allows you the size the video’s dimen­sions. Notes: Remove extra space after the…