Display summary statistics for each protocol on Linux

Yesterday, I received a question about getting summary statistics about network protocols over Linux terminal; After I replied it, I thought I may write a blog post about it in details.

The question I received on twitter and my reply read as:

 - Q. How do I display summary statistics for each protocol on Linux ?
 - A. Using netstat command to display summary statistics for each protocol.
Continue Reading

SYNC Sublime text 3 settings across multiple Mac OSX computers with Dropbox

I use Sublime Text 3 for development and all other text-editing needs. It’s great editor with functionalities that I didn’t see in any other editor. Give it a Try if you didn’t already.

Unfortunately it does not provide any way to keep settings in sync between computers and I would really like if it looks and behaves in very consistent way. The good news is that, it’s really easy to implement such feature using Dropbox, an online service that gives you free space and synchronizes that space between all your computers.

Continue Reading

Never say thank you

Never Say Thank You.

And while you are at it, stop saything things like:

  • Got it
  • OK
  • Uh huh
  • Yep

Not in general, just to emails.

Continue Reading

Sending a message to all users on LINUX system

This is a very nice tech tip that can be used on any UNIX system and Linux distribution.

This tutorial will show you how to send a message to all logged in users and make it pop on their terminals. This is very useful in the case of sending an alert, or just a regular message informing about something.

To send a message to all users on Linux system, you can use wall command, which sends a message to everybody logged in with their mesg permission set to yes. The message can be given as an argument to wall (a text file holding the message itself in this case), or it can be sent to wall’s standard input. When using the standard input from a terminal, the message should be terminated with the EOF key (usually Control-D).

Continue Reading

Un-Delete a branch in git

This tutorial will show you how to un-delete a branch from the remote repository, if you happen to delete it by mistake. This tutorial will work even if you used the -D option while deleting which stands for force delete.

$ git branch -D an_important_branch
Continue Reading