Wordpress: How to send email using wp_email()
wp_mail() is a wrapper function available in wordpress core that can send emails using wordpress configuration. You can use wp_mail() to send emails from wordpress/woocommerce plugins and themes.
Wordpress: Schedule a hook to be triggered by at the specified interval.
Wordpress core offer hook Schedules functionality. We can shedule custom events using wp_schedule_event() and wp_next_scheduled() hooks which will be triggered by WordPress at the specified interval.
Customize Bash prompt
Linux bash prompt can be customized, here is my customized bash prompt. I used below entry in ~/.bashrc file
How to convert audio files to and from SBC codec format in Linux
SBC is a digital audio format used for transferring audio between Bluetooth host and output devices like headphones or loudspeakers. This article explains how to convert audio files to and from SBC codec format in Linux.
Hugo: frontmatter title block code snippet for Visual Studio Code
In VSCode, Code Snippets are templates that make it easier to enter repeating code patterns, such as loops or conditional-statements. Learn how to use code snippets to generate frontmatter title block for Hugo
PHP: How store css or js code in a variable using Heredoc
Learn how to use PHP Heredoc to create dynamic css/js code for your frontend
How To decode captcha using opensource ocr tools
With simple open source tools you can automate the process of decoding captcha with zero programming knowledge.
Linux: arm gcc cross compiler fails with error No such file or directory
After updating the Linux OS of a system from 32bit to 64bit OS. After which the ARM cross compiler failed to work. the cross compiler that worked earlier was not working, here is the solution for it.
How to backup and restore Hard disk boot sector
This article is for advance user like kernel developer or a System Administrator. In a special occation you may need to backup of the boot sector of a PC (or restore the boot sector from file to hard disk).
How to use if else in latex
Latex does not offer if/else, but Tex offer the ability to have conditional if/else statements, Here is a small snippet how to use it.