CMD + Q to close Finder window in OS X


One of the most annoying things that I have encountered while using mac was the inability of os x to close the finder window with the default quit button(cmd+q) . The default button to close finder in os x is cmd+w. But that, for me is a slow process when I want to quit all applications quickly.


There is a simple way to achieve this. As simple as entering two commands in terminal. That commands being

defaults write QuitMenuItem -bool yes

killall Finder

That’s it. You are done. Now you can use cmd+q to quit the finder windows.

Njoy smile

nsurlsessiond consuming bandwidth issue

This issue is mainly due to the icloud and other things such as photos etc are linked. It’s bascially downloading the files from apple servers. It can be bit annoying at times as it consumes most of the bandwidth making us sit idle for hours.

This can be a problem if you are having a limited network connection or you want to download something urgent. Stopping the process won’t help you here as the mac restarts the process as soon as it ends. The only way to disable is to unload the plists.

To do so, either you have to write a shell script to execute the below commands in terminal or you can use the apple script linked below. Apple script bascially runs the terminal commands for you.

Terminal commands are as follows:

 launchctl unload /System/Library/LaunchDaemons/
 launchctl unload /System/Library/LaunchAgents/
 sudo launchctl unload /System/Library/LaunchDaemons/
 sudo launchctl unload /System/Library/LaunchDaemons/

#you can save this as a sh file and execute it too.

Creating AppleScript (If that’s your way wink )
Another method, instead of using the linked applescript, you can create one your on. For that follow the steps.

  1. Open Automator
  2. Select New and select ‘Application’
  3. Search for ‘Run Applescript’ and open it.
  4. Paste the below code
 on run {input, parameters}
     tell application "Terminal"
         do script " echo \"launchctl unload /System/Library/LaunchDaemons/\"" in window 1
         do script " echo \"llaunchctl unload /System/Library/LaunchAgents/\"" in window 1
         do script " echo \"sudo launchctl unload /System/Library/LaunchDaemons/\"" in window 1
         do script " echo \"sudo launchctl unload /System/Library/LaunchDaemons/\"" in window 1
     end tell
end run
  1.  Save it as ‘application’. give a cool name and enjoy

Clear values inside bootstrap modal upon closing

I don’t know whether this is going to be useful for anyone. Since i wanted to share something in the site after a long time, i am putting things. I will be regular now on wink (i hope so)


$('#mymodal').on('', function() {
.find("input[type=checkbox], input[type=radio]")
.prop("checked", "")

Njoy smile

USB Live boot Kali Linux on Mac

Follow the steps to USB Live boot Kali Linux on Mac

1.  Download Kali Linux from

2.  Open Terminal (use spotlight for easier access)

3. Run the following in Terminal (don’t forget to change the path)

hdiutil (e.g.,hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/Kali.iso)

4. The output file will be target.img.dmg. Change it to target.img

5. Insert the pen drive

6. Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2).

7. Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2).

8. Execute sudo dd if=/path/to/target.img of=/dev/rdiskN bs=1m (replace /path/to/target.img with the path where the image file is located.

9. Run diskutil eject /dev/diskN and remove your flash media when the command completes.

10. Restart your Mac and press alt/option key while the Mac is restarting to choose the USB stick.

Page Timer: Chrome extension to see how long i have been on this page

Page Timer is a nice tool from Google which allow us to track the time we spend on a website or tab.

All the data that Page Timer counts is stored in ram and doesn’t store anywhere else. So if you close the tab, you will loose the time.

You can download the extension here:

Enjoy smile