Add An Auto Incrementing Number To Each Selection In Sublime Text

Writing by on Thursday, 2 of February , 2017 at 9:06 pm

The Increment Selection is a nifty package to add auto incrementing numbers to your selection in Sublime Text.

  • Select the Numbers that need the auto increment
  • Shortcut to auto-increment selection is Cmd + Ctrl + i

Click the visual below to see Sublime Text Magic

Leave a comment

Category: Tips and Tricks

Recover a corrupted gz

Writing by on Wednesday, 14 of October , 2015 at 7:13 am

Sometimes you might be able to salvage a corrupted gzip. Typically this trick always works on most log files.

$ gunzip corrupted.gz
gunzip: corrupted.gz: unexpected end of file
gunzip: corrupted.gz: uncompress failed

Use the -c option that outputs to console, but redirect to a new salvaged file. Then gzip the salvaged file to recover it.

$ gunzip -c corrupted.gz > salvaged
$ gzip salvaged

You can now delete the corrupted gz file and use the salvaged version.

Leave a comment

Category: Linux,Tips and Tricks

Download an entire AWS S3 bucket or file

Writing by on Tuesday, 24 of March , 2015 at 5:32 am

AWS CLI to the rescue. It’s really quick and easy. Install AWS CLI, add your keys to the credentials and then fire away.

Here are some of mine

alias s3ls=’function _s3ls(){ aws s3 ls s3://”$@” ; }; _s3ls’
alias s3get=’function _s3get(){ aws s3 cp s3://”$@” . ; }; _s3get’
alias s3getdir=’function _s3getdir(){ aws s3 cp s3://”$@” . –recursive ; }; _s3getdir’

Leave a comment

Category: Tips and Tricks

Show full path in Sublime Text

Writing by on Saturday, 28 of February , 2015 at 6:23 pm

If you want to see the full path to the currently open file on the title bar add “show_full_path”: true to the Settings JSON.

Sublime Text -> Preferences -> Settings – User
“show_full_path”: true

Leave a comment

Category: Tips and Tricks

Formula to convert Epoch Timestamps to Readable Date in Excel

Writing by on Thursday, 20 of November , 2014 at 1:47 am

If you have several epoch times that you want to convert to human readable date then here’s a great post from on converting Unix Timestamps.

In a nutshell … you use the provided formula and then format to date.


For Pacific

Right Click the Cell –> Format Cells –> Date

Leave a comment

Category: Tips and Tricks

Delete Selective or Filtered History from Chrome

Writing by on Tuesday, 11 of November , 2014 at 9:20 pm

If you’re having trouble selecting entries one at a time (because there’s no Select All option available) then here’s a quick workaround to selectively clear your Google Chrome History.

  • In the Chrome Address Bar type chrome://history
  • To Filter and Delete Selective history, enter search criteria and hit Search History
  • There’s no Select All Option but here’s a workaround …
  • Select the first entry from where you want deletion to begin
  • Scroll down to the end or desired entry and Shift Click that item
  • Scroll up top and hit Remove Selected Items

That should be quicker than individually selecting the entries.

Leave a comment

Category: Tips and Tricks

Shivdev Kalambi's Blog

Shivdev Kalambi is a Software Development Manager, previously a Principal Software Engineer at ArcSight/HP. With over 16 years' experience in software development, he's worked on several technologies and played different roles and contributed to all phases of projects. Non-tech activies include Ping-pong, Rock Climbing and Yoga at PG, Golf, Skiing, Swimming & a beer enthusiast.