by doitwithcode | Jan 20, 2020 | Bash, Blog, Linux
Suppose you have a variable below how would you increment that variable by 1 in Bash x=0 You can use let x++ If we want to loop through a number of items while incrementing the x variable, we can use the for loop below: for name in Lisa Lilly Lousa ; do echo $x $name...
by doitwithcode | Nov 29, 2019 | Blog, Linux, Python
cURL is very useful for performing network requests. An example of a GET request to fetch a post from jsonplaceholder is below curl https://jsonplaceholder.typicode.com/posts/1 The result of the cURL request is as follows { “userId”: 1, “id”:...
by doitwithcode | Aug 26, 2019 | Blog, Linux, MySQL, PHP, Python
There are various methods for installing Apache, MySQL, and PHP on your local machine be it Mac or Windows. These methods include installing WAMP, MAMP or XAMPP. You can, however, install AMPPS, and in addition to having Apache, MySQL, and PHP, you get the following...
by doitwithcode | Aug 20, 2019 | Blog, Linux, Python
Centos 7 by default comes with Python 2. You can confirm this by typing the following command python –version The screenshot above shows Python 2.7.5 To install Python 3, first, add the Inline with Upstream Stable repository by running sudo yum install -y...