17 Linux curl command usage examples

curl

cURL is a computer software project and it produces two products – libcurl and curl.

libcurl

A free and easy-to-use client-side URL transfer library, supporting DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP.

libcurl supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading, kerberos, HTTP form based upload, proxies, cookies, user+password authentication, file transfer resume, http proxy tunneling and more!

curl

A command line tool for getting or sending files using URL syntax. Since curl uses libcurl, curl supports the same wide range of common Internet protocols that libcurl does.

Continue reading »

How to Optimize a MySQL Database using phpMyAdmin?

phpMyAdmin

Optimizing Table in database is just like the doing Disk Defragmentation in your PC.

Optimize Table should be used if you have deleted a large part of a table or if you have made many changes to a table with variable length rows, such as VARCHAR, TEXT, BLOB or VARBINARY columns. Deleted rows are maintained in the linked list and insert operations reuse the old row positions. You can use “Optimize Table” to reclaim unused space and defragment the data file for optimal performance. If a lot of changes have been made to a table, optimizing the table can sometimes significantly improve performance.

Continue reading »

How to Add a Smooth Scroll to Top Effect in WordPress using jQuery

Wordpress

We had discussed “How to Add Smooth Page Scroll to Top using jQuery” in one of our previous posts. Now lets see how to implement the same in Wordpress.

Step 1: Paste the below HTML any where in your theme’s footer.php file.


<a href="#" id="scrolltotop" title="Back to top">Back to top</a>

Continue reading »

How to install .deb packages in Ubuntu?

Ubuntu

Debian (.deb) packages are the packages that are used in Ubuntu. You need to have administrative privileges to install a .deb file.

To install .deb files from shell/command prompt you can use the dpkg command. dpkg is a package manager for Debian based systems. It can install, remove, and build packages, but unlike other package management system’s it can not automatically download and install packages and their dependencies.

Continue reading »

MySql data directory size is very large, how to fix?

MySql

My C:\ drive partion space was almost full, so I tried to analyse junk data on my machine to free some space. I noticed that MySql ‘data’ folder was using around 16GB. Further looking into the data folder I noticed that many mysql binary log files had been created and they were occupying GBs of the space.

After cleaning the log file the ‘data’ folder size reduced to ~6GB.

Continue reading »

What is better, curl or wget?

curl vs wget

Both cUrl and Wget can be used to download files, but the question comes which one to use. cUrl and Wget have some similarities and as well as differentiating factors, the one to use depends on your need.

Continue reading »

How to disable admin notification popup window in Magento?

Notification Popup

In Magento when you log in to admin, many times you would have seen a pop up window with messages like a new magento version is available, a security fix is available etc. These are the notification message from Magento webiste.

You can view all these messages received in admin by going to Admin >> System >> Notifications; the popup displays the latest message received.

Continue reading »

What are WordPress Post Formats, why & how to use them?

Wordpress

Post Formats is a theme feature introduced in Wordpress with version 3.1, means it will only be available if your theme supports it. A post format is a meta information that can be used by themes to categorize the posts to present them differently.

Continue reading »

Magento System Requirements

Magento

Magento is an open source e-commerce platform built on PHP/MySql. It uses parts of the PHP Zend Framework. Like any other software, Magento also has certain system requirements which must be met in order to install and run it.

Lets go through the list of requirements which must be met for successful setup and functioning of Magento.

Continue reading »

How to disable all local modules easily in Magento

Disable Local Modules

All of our custom developed modules are stored in the app/code/local folder. If in case an error has not been logged in error log files and to troubleshoot we want to check whether one of our custom modules is causing problems or not, so in that case we should first disable all local modules and see if the site is working or not.

Continue reading »

Back to top