Negations in Regex

Writing by on Friday, 26 of May , 2017 at 6:43 pm

If you are in the situations where you know what NOT to look for, but everything else is considered a match, then you need to negate the pattern and use something like this as explained on this permonks thread.

^(?:(?!PATTERN).)*$
^(?:(?!nope|no|not|never|negate|negation).)*$

Here’s an example in Sublime Text.

Leave a comment

Category: Uncategorized

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

zsh: non-standard shell error

Writing by on Tuesday, 24 of January , 2017 at 7:34 pm

If you’ve installed zsh and getting the non-standard shell error

$ chsh -s /usr/local/bin/zsh
chsh: /usr/local/bin/zsh: non-standard shell

You need to add /usr/local/bin/zsh to /etc/shells

$ sudo vim /etc/shells
Password:

# Add the following and save
/usr/local/bin/zsh

Leave a comment

Category: Mac

Favorites in the Finder Sidebar not showing in the Mac Open Dialog

Writing by on Thursday, 5 of January , 2017 at 7:52 pm

If your Favorites in the Finder Sidebar not showing in the Mac Open Dialog, per Apple.StackExchange running the following from command line would make them show up. Note you’re running sudo and hence need root access.

cd ~/Library/Preferences && sudo find com.apple.finder.plist* -exec rm {} \; && killall Finder

Leave a comment

Category: Apple,Mac

Sublime Text SFTP Package Server Locations

Writing by on Thursday, 30 of June , 2016 at 6:59 am

Sublime Text SFTP is an amazing and very nifty package to update remote files. I’ve been using it for a while now and the location where the SFTP Server Location where the config settings to the hosts are stored.

Now it’s different for different versions, but if you’re on a Mac then you may want to Setup a Server and save the config under
~/Library/Application Support/Sublime Text 3/Packages/User/sftp_servers. Sublime Text will not be able to detect the servers if they’re not stored in that location. You may want to find the folder sftp_servers which can be in /Library or ~/Library.

Leave a comment

Category: Linux,Mac

Mission Control suddenly stops working

Writing by on Friday, 3 of June , 2016 at 6:44 am

Just run killall Dock. This article from App Exchange explains the details.

killall Dock

Don’t know the root cause for it, but workarounds work great!

Leave a comment

Category: Apple,Mac

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.