Clear the Windows Update Download cache

You probably need to clear the Windows Update Download cache (I had to do this to get 15046 to appear).

net stop wuauserv
cd %systemroot%\SoftwareDistribution
rmdir /S /Q Download
net start wuauserv
net stop bits
net start bits
net stop cryptsvc
cd %systemroot%\system32
rmdir /S /Q catroot2
net start cryptsvc




"Reclaim Windows 10"

Brilliant :)
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)

Original: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1

Advertising in Windows Explorer (Win10)

Advertising in Windows has reached an exasperating new low


How to turn it off:
In File Explorer go to View > Options > Change Folder and search options.
Go to the View tab and scroll down about 3/4 of the way and turn off the option for 'Show sync provider notifications'.


Dual-boot Ubuntu and real-time clock

It's almost as natural as disabling timedatectl set-local-rtc on Ubuntu dual-boot machines at this point.



Configure vhosts for XAMPP in Ubuntu

After installing XAMPP for Linux I wanted to use my old trick of configuring virtual hosts for Apache.
There is a one-time configuration, and two steps for each virtual host.

One-time configuration is needed to actually use virtual hosts, and to restore access to original XAMPP documents. So here it goes:

1. Open terminal and edit httpd.conf file:
$ sudo nano /opt/lampp/etc/httpd.conf
2. Now find the following line and uncomment it by removing the hash symbol (#) at the beginning:
Include etc/extra/httpd-vhosts.conf
3. Edit httpd-vhosts.conf file:
$ sudo nano /opt/lampp/etc/extra/httpd-vhosts.conf
4. Replace definitions for dummy-host.example.com and dummy-host2.example.com with following:
# Use name-based virtual hosting.
NameVirtualHost *:80

<VirtualHost *:80>  ## Restore access to localhost resources
    DocumentRoot    "/opt/lampp/htdocs/"
    ServerName      localhost

<VirtualHost *:80>  ## Restore access to resources
    DocumentRoot    "/opt/lampp/htdocs/"
5. Restart Apache or reload its configuration. Then check if you can still access XAMPP Dashboard at:
http://localhost and
6. Prepare directory for future virtual hosts, and give your user's group write access to it:
$ sudo mkdir /opt/lampp/vhosts
$ sudo chgrp $(id -n -g) /opt/lampp/vhosts
$ sudo chmod g+rwx /opt/lampp/vhosts

For each virtual host, name resolver needs to be informed about new local domain.
Then virtual host definition has to be added, and directory for host's files created.
Finally after Apache restart all should work.

7. Edit local name resolver hosts file:
$ sudo nano /etc/hosts
8. Add local/development domain, for example "helloapp":    helloapp
9. Edit httpd-vhosts.conf file:
$ sudo nano /opt/lampp/etc/extra/httpd-vhosts.conf
10. Add virtual host, setting correctly paths and names:
<VirtualHost *:80>
    DocumentRoot "/opt/lampp/vhosts/helloapp"
    ServerName   helloapp
    ErrorLog     "logs/helloapp-error.log"
    CustomLog    "logs/helloapp-access.log" combined

    # The same settings as for <Directory "/opt/lampp/htdocs"> in conf/httpd.conf
    <Directory "/opt/lampp/vhosts/helloapp">
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        Options Indexes FollowSymLinks ExecCGI Includes
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        AllowOverride All
        # Controls who can get stuff from this server.
        Require all granted
11. Prepare directory for virtual host, remember about correct path:
(this works only if step 6. has been done, otherwise permission errors can occur)
$ mkdir /opt/lampp/vhosts/helloapp
12. Restart Apache or reload its configuration. Then check if you can access new virtual host at:

See also:


Install Google Chrome in Debian Wheezy XFCE

In order to install chrome, you will need to do the following.

1) Download the Google Chrome Installer ( I am using the 32 bit .deb)

Alternatively, download DEB file directly.
For 32-bit systems:
wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
For 64-bit systems:
wget -c wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

2) As a root install three packages that are required in order to install Chrome:
apt-get install libxss1 libcurl3 

3) Now change the directory to wherever you downloaded Chrome, in my case it went to the default /home/$USER/Downloads folder, and run the following command:
dpkg -i google-chrome-stable_current_i386.deb

4) If you happen to receive errors about missing packages, you can fix it by running:
apt-get -f install

You should now see chrome under the applications menu under Internet Applications.