Category: Linux, Windows, Mac
Linux Truncate (Log)File
Commands to empty logfile : 1. :>logfile – If logfile does not exist, this will create an empty log file, otherwise it will empty the existing file. 2. cat /dev/null > logfile – This is equivalent to above command. Command
Alter AWS S3 file permissions using S3 cmd
How to alter permissions of all files or files with a specific extension via s3 command line client tool (Linux)? S3 command line tool (S3 cmd) allows us to alter permissions of files and files with specific extensions inside S3
Mysql access denied error for user root@localhost in XAMPP
Problem: Mysql access denied error for user root@localhost when using in XAMPP server (windows) even when credentials are correct. Solution: Actually the problem is not in code, the issue is that by-default mysql in xampp allowed passwordless authentication in mysql, so
Upgrade to php 5.6 and apache 2.2 to apache 2.4.17 in ubuntu 12.04
These are the steps to upgrade to PHP 5.6: Add the PPA containing version 5.6 of php for Ubuntu 12.04: sudo apt-add-repository ppa:ondrej/php5-5.6 sudo apt-add-repository ppa:ondrej/php5 Run these command in terminal to upgrade php : sudo apt-get update If everything
Open specific local Outlook window from .msg file
C# : Triggering the Local Outlook for forward, reply and reply all actions from existing .msg file For the desktop based applications when user is dealing with the store outlook files in msg format we can open local outlook when
Some Useful Developer tools and Extensions in the chrome browser
Every developer/designer should be aware of some developer tools and extensions available in the chrome browser. Chrome developer tools provide deep visibility into the web pages. We can check layout, performance loading issues and also debug Javascript issues with breakpoints.
find: paths must precede expression
In Linux bash you may face an error while using wildcard * to search files. For e.g. trying to search all jar files with the following command: find. -name *.jar will give following error: find: paths must precede expression Usage:
Microsoft Outlook Email Rules
Microsoft Outlook Rules Rules are very helpful in setting the behavior of MS outlook. Rules can be used for many different purposes. For example : you can automatically send a reply to all the emails which you receive. you
Migrate AWS EC2 machine using Snapshot Sharing
How to migrate an EC2-machine from one AWS account to another aws account? Solution: To migrate EC2 machine, there are following main steps: Create Snapshot of the existing machine drives. Migrate the EC2 machine. Upgrade/downgrade migrated machine configuration. Step 1: Create
