Mine the Harvest

Archive for April, 2013

Netstat connection timers

by on Apr.29, 2013, under Linux

Netstat is so dang useful.  I never knew it had the ability to report connection timers. Netstat, I love you.


How long have those connection been there anyway?

[[email protected] ~]# netstat -tonp
tcp 0 0 ::ffff: ::ffff: TIME_WAIT - timewait (0.00/0/0)
tcp 0 0 ::ffff: ::ffff: TIME_WAIT - timewait (43.72/0/0)

Or hows that keepalive going?

[[email protected] ~]# netstat -tonp | grep ESTABLISHED | grep keepalive
tcp 0 0 ESTABLISHED 13694/postgres keepalive (5846.25/0/0)
tcp 0 0 ESTABLISHED 4132/pgagent keepalive (5116.28/0/0)

Yeah, but what about how long they have been in CLOSE_WAIT?

[[email protected] ~]# netstat -tonp | grep CLOSE_WAIT
tcp 1 0 CLOSE_WAIT 29817/httpd off (0.00/0/0)
tcp 1 0 CLOSE_WAIT 25264/httpd off (0.00/0/0)

Ahhh . . . there is no time out value for CLOSE_WAIT. Darn.

Your current timeout and keepalive settings in seconds:
cat /proc/sys/net/ipv4/tcp_fin_timeout
cat /proc/sys/net/ipv4/tcp_keepalive_time

Leave a Comment more...

Sublime Text and Floobits

by on Apr.18, 2013, under Linux

I’ve been playing around with some collaborative coding tools recently: Etherpad, c9.io, infinoted / Gobby which is pretty cool with the Gedit plugin, etc. These, especially c9.io with it’s GitHub and Heroku integration, are very cool tools.

However, with the exception of the Gedit Collaboration plugin, many collaborative coding sites expect you to use a web editor. While c9.io’s editor is okay, nothing beats editor like vim, kate, etc.

Floobits is a collaborative editing site, but they are creating plugins for editors. One is available for Sublime Text, and one for Vim is in progress. Floobits lets you create public or private “rooms”, import code from github, and edit the content with a native editor. Using this with Sublime Text is pretty cool. If you need to share code or work with someone who is not set up with an editor and Floobits plugin, no problem – they can fall back to using the Floobits web editor. In minutes you an be coding together.

All the above lead me to check out Sublime Text 2, and I have to say – wow. I’m a long time Vim user, and while I love Vim (especially as my sys admin workhorse editor) for long coding stints, Sublime is looking amazingly good. Just check out the slideshow. But when you match Sublime up with git and floobits plugins, it gets even better.

Sublime has some other brilliant features. The ctrl-p function to search all files, and bring them automatically into focus – and then zero in on the function your looking for instantly is pretty much gold. See the screenshots of this in action, as well as other general tips here. I also really like the preview panel for navigating. And it’s fast – really fast.

Though licensed, it’s extremely forgiving. Download for Linux, Windows and OSX and it is fully functional, no expiration. You don’t need a key, or an account, etc. Download and use. If you like it you can purchase a license for $70.

If you want to test drive Sublime Text and Floobits see my guide, which has some tips as the Package Control installer has a bug that requires manually installing Floobits – which is trivial. And or course see Floobits plugin page.

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

RSS RSS My Ramblings

Visit our friends!

A few highly recommended friends...