Quantcast
Channel: BryMayor.com » brynayrb
Browsing all 10 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Create Basic Custom Payment Method in Magento

This is the basic payment method tutorial and does not cover if there is a payment integration. First we need to decide on a unique code for the payment method, in the following example, I used the...

View Article



How to Create Multiple Virtual Hosts in Ubuntu

Assuming you already have installed LAMP on your Ubuntu machine, here are the steps in creating multiple virtual hosts. If Apache mod_rewrite module is not yet enabled, you can do so by typing the...

View Article

Syntax for a Secure Copy (SCP)

SCP allows files to be copied from, to, or between different hosts. It uses SSH for data transfer and it provides the same authentication and level of security as that of SSH. Following are some...

View Article

How to Reduce Video Size in Ubuntu

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec – the leading audio/video codec library. See the documentation for a complete feature...

View Article

How To Create a MySQL Database and Set Privileges to a User

In this tutorial, I will explain how to create a database as well as the user. Given that your have an access to the database, we are going to create a database called jungle which will be accessible...

View Article


List of Magento Admin Form Fields

On our previous post, we learned how to create Magento Adminhtml grids. All the codes below should be written in the class Foo_Bar_Block_Adminhtml_Baz_Edit_Form (assuming it doesn’t have tabs) inside...

View Article

Magento Custom Controller Layout

You will need some debugging techniques to get the handle of your controller. In your controller: Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles()); Output: array(5) { [0] =>...

View Article

Ubuntu Apache Error Log

tail -f /var/log/apache2/error.log   Always think twice before hitting the Enter key… The post Ubuntu Apache Error Log appeared first on BryMayor.com.

View Article


gzip Compress and Remove Definer on MySQLDump

Code snippet to compress MySQLdump and remove the definer.   mysqldump -uuser -p database | sed -e "s/DEFINER=[^*]*\*/\*/" | gzip > database.sql.gz cat database.sql | sed -e "s/DEFINER=[^*]*\*/\*/"...

View Article


Send Mail from Linux Terminal in One Line

Using the default mail system of Unix: echo "I am the body." | mail -s "Thus, I am the subject." recipient@example.com     The post Send Mail from Linux Terminal in One Line appeared first on...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images