Commands not to be used on terminal as a root user

First one on list is the infamous 8 characters in that particular order rm -rf / Sometimes we just want to remove the current directory for which the command is rm -rf ./ but you keyboard skips the dot and you end up in a deadzone. Second one would be: ifdown eth0 wow!!, you just disconnected your server from internet.

July 17, 2018 · 1 min · Harshvardhan Malpani

Basics about advertisements and Google Adsense

On 15th Year Anniversary of GOogle Adsense and their partnerships with Publishers, google published a youtube video briefly explaining all the basic keywords related to Adsense. Transcript: 15 words to sum up 15 years? That’s easy! Okay, let’s go. Content Content is at the heart of the web. And publishers? You power that web. Without you that place would be quite empty. Ads? Ads bring the revenue that helps to fund it all while helping you reach your… Goals! Goals like growing your business, doing something you love and sharing it with the world creating… Memories? So many good memories! You’ve told us that Adsense has funded your weddings, helped you buy your homes or hire new teams. We feel part of your… Community. A community that grows with you recommending us. Thank you! Beginnings. It’s been 15 years since we ran our first ads, they were text only back then. Today? Today Adsense is truly global! Urdu, Japanese or French – We speak 45 languages. And counting. Change…is constant, especially on the web. We’ve been evolving with you and your audience needs for the past 15 years, to help you provide the best possible… …Experiences. As the look and feel of websites have improved over the years we built native ads to complement them, while always giving you the… Control. To decide what type of ads will show on your site. Platforms? All of them. Mobile, Video and whatever will come next – we have you covered. Time. Saved. With smart automated ad placements, keeping things simple for you so that you can focus on creating great content. Simplicity. Always. Our team’s goal: making it easier to grow your business. Okay and last but not least. Happy Birthday! Absolutely. 15 years is a milestone we should all celebrate. But the web doesn’t wait so time to get back to work. Can I finish my cake first? ...

July 3, 2018 · 2 min · Harshvardhan Malpani

Receiving money in India | Why PayPal sucks and What are the charges?

So Why is Paypal bad? No, In theory It is not bad. It is an easy mode of payment transfer when comes to my international clients. But being an Indian citizen, why I never prefer Paypal as payment mode. Let us take a look. So, I am going to explain it with an example of payment that I received from United Kingdom. My client sent me 103.60 GBP which at the time of transaction was equivalent to 9334.35 INR. ...

March 3, 2018 · 3 min · Harshvardhan Malpani

Compare two columns in Excel and check the missing values

=IF(COUNTIF($B:$B, $A1)=0, $A1, “”)

October 26, 2017 · 1 min · Harshvardhan Malpani

Correct File Permissions for Magento 1.9x

find . -type f -exec chmod 644 {} \;\ find . -type d -exec chmod 755 {} \;\ find ./var -type d -exec chmod 777 {} \;\ find ./media -type d -exec chmod 777 {} \;\ chmod 777 ./app/etc\ chmod 644 ./app/etc/*.xml

September 26, 2017 · 1 min · Harshvardhan Malpani

How to view current deployment mode Magento2 and change it

php bin/magento deploy:mode:show php bin/magento deploy:mode:set production php bin/magento deploy:mode:set developer

September 26, 2017 · 1 min · Harshvardhan Malpani

Updating Magento 1 via SSH

cd ~/public chmod 750 mage ./mage mage-setup . ./mage config-set preferred_state stable ./mage sync ./mage install https://connect20.magentocommerce.com/community Mage_All_Latest --force php shell/indexer.php reindexall rm -rf downloader/.cache/ var/cache/

September 26, 2017 · 1 min · Harshvardhan Malpani