git – using multiple remote URLs

When using Git for version control, many people use GitHub as a place to hold remote repositories and push their repositories there. I recently started using BitBucket also and wanted to be able to simultaneously update my GitHub and BitBucket repositories when changes were made. To begin, rename your current remote (most likely named origin) to a different name. I’d rename this to the name of the service you are using, such as Github or bitbucket....

September 19, 2019 · 1 min · 168 words · Akhil Jalagam

mysqld – Got packet bigger than ‘max_allowed_packet’ bytes when dumping table `memcache` at row

Add --max_allowed_packet=512M to your mysqldump command. Or add max_allowed_packet=512M to [mysqldump] the section of your my.cnf Note: it will not work if it is not under the [mysqldump] section…

September 17, 2019 · 1 min · 29 words · Akhil Jalagam

Cron job for Automatic Feed updates in Openvas

To get updated content from the feeds you need to run the following scripts (in this order) on a daily base # crontab -e If there is any issue during the sync the scripts should give you additional info.

September 6, 2019 · 1 min · 39 words · Akhil Jalagam

How to Redirect HTTP to HTTPS in apache

Install modules Enable modules Method 1 using rewrite module RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] </VirtualHost> Method 2 using redirect method Redirect permanent / https://www.yourdomain.com/ </VirtualHost>

September 4, 2019 · 1 min · 29 words · Akhil Jalagam

How to use HiDPI(4K) resolution in Linux for all applications

HiDPI (High Dots Per Inch) displays, also known by Apple’s “Retina Display” marketing name, are screens with a high resolution in a relatively small format. They are mostly found in high-end laptops and monitors. update this ~/.Xresources reboot or re-login to system

September 2, 2019 · 1 min · 42 words · Akhil Jalagam