Windows 7 SP1 Windows Update stuck checking for updates

Written by leif. Posted in Tips, Windows


This is what I do when I reinstall Windows 7 with SP1 or have issues with Windows update stuck on checking for updates.

If Service Pack 1 is not installed, install it before following this guide.



for 64bit W7 or


for 32bit W7

Download KB-3138612 and save it where you can find it later

Download SUR Tool save it to same place

Restart the PC and disconnect from internet before Windows loads, this is important because at every boot windows will check for updates in the background and this will start the checking for updates hang all over again and will prevent the install of the downloaded packages until it finishes checking, so disconnecting from the internet before Windows loads prevents this.

Once booted install KB-3138612, if reboot is required do so and stay disconnected from internet.

Now install the SUR Tool package, this is a big package and will install many updates along with cleaning up and repairing the Windows update store. It will also cut down on how many more Windows updates will need to be installed later.

After install of SUR package reboot, connect to internet and do a manual Windows Update, it should work much faster now. Even after these fixes I have seen some W7 PC’s take up to an hour to finish checking for updates if launched from Control Panel manually.

If you have other Windows updates issues and the 2 updates above are installed, download this Microsoft Windows Update fixit tool (right click “save link as”) run it and select aggressive mode to completely reset Windows updates. Reboot and try Windows Updates from the Control Panel again.

All downloads [HERE]


Never10 – Disable Windows 10 upgrade

Written by leif. Posted in Programmer, Tips, Windows

Download an execute Never10

Original site

Unattended/automated operation
Version 1.3 of Never10 adds much-requested command-line switches to perform and further automate all Never10 operations. Never10 now offers the following command-line switches:

  • delete ‑ deletes any and all pre-downloaded Windows 10 files. If no Windows 10 files are present, the command’s presence is registered for user-interface suppression, but the command has no other effect.
  • disable ‑ disables the GWX subsystem to prevent all user prompting and pre-downloading of Windows 10. If both ‘disable’ and ‘enable’ are specified (though that makes no sense) this disable command takes precedence and all future Windows Update OS upgrading behavior will be disabled.


Written by leif. Posted in Linux, Tips

  • 644 make a file readable by anyone and writable by the owner
  • go-w deny write permission to group and others.
  • =rw,+X set the read and write permissions to the usual defaults, but retain any execute permissions that are currently set.
  • +X make a directory or file searchable/executable by everyone
    if it is already searchable/executable by anyone.
  • 755
    u=rwx,go=u-w make a file readable/executable by everyone and writable by
    the owner only.
  • go= clear all mode bits for group and others.
  • g=u-w set the group bits equal to the user bits, but clear the
    group write bit.

apt-get commands

Written by leif. Posted in Linux

Installation commands

  • apt-get install <package_name>

    This command installs a new package.

  • apt-get build-dep <package_name>

    This command searches the repositories and installs the build dependencies for <package_name>. If the package is not in the repositories it will return an error.

  • aptitude install <package_name>

    Aptitude is an Ncurses viewer of packages installed or available. Aptitude can be used from the command line in a similar way to apt-get. See man aptitude for more information.


Launch Sublime Text 3 from the command line from OS X

Written by leif. Posted in OS X, Tips

If the path /usr/local/bin does not exist, then create it.

sudo mkdir /usr/local/bin

Create the symbolic link:

sudo ln -s “/Applications/Sublime” /usr/local/bin/subl

close and reopen terminal and then your are set.


Open a Terminal window and run:

sublime ~/Documents


sublime Documents/

or even

# to open the entire current directory
sublime .