Generating SSH public/private key pair (Windows)

Few of my newbie friends sometimes finds it hard to Generate the SSH Public Key on Windows system.  Below I have shared few direct steps to achieve the same.

To generate an SSH public key:

1.  Download PuTTYgen to your computer.

2.  To run the application, double-click the PuTTYgen icon.

3.  Select the SSH-2 RSA option, set the number of bits in the generated key to 2048, and then click Generate.

Install GIT

Here are few steps to follow in order to install GIT versioning on your local machine e.g. in Ubuntu.

Installation

sudo apt-get install git

Configuration

git config --global user.email "you@example.com"
     git config --global user.name "Your Name"

Basic usage

File Upload Limit in php.ini

Greetings Friends !

Today, I would like to quote a one stop updates for settings changes for increasing the File Upload Limits in Ubuntu.

With apache2 and php5 installed you need to make three changes in the file php.ini

sudo vi /etc/php5/apache2/php.ini

Vi Editor Handling

Vi Editor is one of basic editing utility provided by Unix or Ubuntu systems.

Here, I will give some basic directions or cue pointers per say for more efficient usage of vi editor.

To use the vi /path/to/file command to open an existing file with Vi. The vi /path/to/file command also works if the file doesn’t exist yet; 
Vi will simply create a new file and write it to the specified location when you save.
 
 By default with above command, vi will open the file, It looks like you can just start typing, but you CAN'T

Installing composer on Ubuntu

Just a simple straight to the point steps for installing composer on your Ubuntu Machine.

Access MySQL in Network

The other day, I was just wondering, what if I want to give access to MySQL on my machine to one of my friend who is in LAN.  Well, it was just as simple as it could be.

To give access to other users in network so that they can access the MySQL on your machine, all you need to do is :

 

1. In  MySQL configuration file (ideally located at /etc/mysql/my.cnf), give the IP address to "bind-address"
    e.g.  bind-address = 172.27.141.81

2. Give previleges to that particular IP or all(by giving %) for particular user to do the needful in MySQL.

Anonymous functions in PHP

Anonymous functions, also known as closures, allow the creation of functions which have no specified name.

Anonymous functions are useful when using functions that require a callback function like array_filter or array_map do:

      $arr = range(0, 10);
      $arr_even = array_filter($arr, function($val) { return $val % 2 == 0; });
      $arr_square = array_map(function($val) { return $val * $val; }, $arr);

Otherwise you would need to define a function that you possibly only use once:

A Minute Manager – The Second Secret

Second Secret is “A Minute Praising”. Yes, you heard it. It’s a minute praising.

Being a Minute Manager, one should make it very clear to its subordinate on very first day that he(manager) know that it will be a lot easier for him(subordinate) to do well if he gets crystal clear feedback from the manager on how he was doing.

A Minute Manager

The other day, I was having a sip of coffee whilst enjoying view in my garden, I saw bunch of people working in my patio with their in charge yelling at them for doing some work in-correctly. And it suddenly struck with the topic in my mind to discuss with you pals. So here we are today discussing How a Good Manager should be.. I guess my this post would interests many New as well as prospective Managers...

Pages

Subscribe to RSS - sandipte's blog