Author: Kavit

0

Bash scripting missing ‘]’

If you have the simple script like the following : #!/bin/bash if [ $foo = ‘bar’]; then echo ‘Foo is equal to bar’ fi And when you run the script, if you get the...

0

Error: listen EADDRINUSE

EADDRINUSE – stands for error: address already in use. It means you have a server listening on the same port. To solve this problem you have to kill the process running on that port....

0

How to create scripts in terminal

Follow three simple steps to automate your terminal. Create a script Set the permissions Execute the script Create a script test.sh $vi test.sh ls -la echo ‘Hello Bash!’ Set the permissions $sudo chmod 777...

0

How to create a permanent “alias”?

Follow three simple steps to create alias for your command line. cd ls -la vi .bashrc Append your favorite alias at the bottom of the file. Below are some of my favorite aliases. #...

0

[: !=: unary operator expected

In bash, always use the double bracket conditional command [[ … ]] For example, #!/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 following template allows you to do the following: Embed a youtube video into WordPress site, which uses markdown in its posts. Allows you the size the video’s dimensions. Notes: Remove extra space after...

1

Setup remote selenium driver

Do you want your Jenkins plan to run your functional automation tests to run against remote selenium host? Do you need help in setting up remote selenium host? Then this tutorial will teach you...

0

Uncaught SyntaxError: Unexpected token u

Do you see the following error in your console and wonder what’s wrong? Uncaught SyntaxError: Unexpected token Most likely, this error occurs when the input given to the JSON.parse() can not be converted to...