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/com.apple.nsurlstoraged.plist
 launchctl unload /System/Library/LaunchAgents/com.apple.nsurlsessiond.plist
 sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlsessiond.plist
 sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist

#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/com.apple.nsurlstoraged.plist\"" in window 1
         do script " echo \"llaunchctl unload /System/Library/LaunchAgents/com.apple.nsurlsessiond.plist\"" in window 1
         do script " echo \"sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlsessiond.plist\"" in window 1
         do script " echo \"sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist\"" 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('hidden.bs.modal', 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 www.kali.org/downloads/

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.