2018-06-11

Safely Remove Unused Kernels In RHEL/CentOS/Fedora

There are three main ways to do it:

  1. Use package-cleanup command from yum-utils
  2. Use Fedora's dnf remove combined with dnf repoquery
  3. Set maximum number of installed kernels in /etc/yum.conf file
First:
# yum install yum-utils
# package-cleanup --oldkernels --count=2
Second:
# dnf remove $(dnf repoquery --installonly --latest-limit 2 -q)
Third:
# vim /etc/yum.conf
installonly_limit=3  #set kernel count

See also:

2018-04-28

Try changing HPET settings to improve your PC's performance

You need to run the following commands on the command line in Windows to enable or disable the exclusive use of the HPET timer.
  • Tap on the Windows-key, enter cmd, right-click cmd.exe in the results listing and select to run the command prompt with administrative privileges.
  • To enable HPET as the only timer run the command:
    bcdedit /set useplatformclock true
  • To disable HPET in Windows run the command:
    bcdedit /deletevalue useplatformclock
https://www.ghacks.net/2013/04/18/try-changing-hpet-settings-to-improve-your-pcs-performance/

AnandTech article about impact of High Performance Event Timer (HPET)
A Timely Discovery: Examining Our AMD 2nd Gen Ryzen Results

Blogger EU Cookie Notice

How to style, change or disable the Blogger EU Cookie Notice
Recently Blogger introduced support for the European Union Cookie Notice. [...]

Read more: https://blog.mridey.com/2015/08/how-to-style-change-or-disable-blogger.html

2018-02-22

The Pros and Cons of Windows 10’s "Fast Startup" Mode

Why You Might Want to Disable Fast Startup

[...] Fast Startup also has its problems, so you should take the following caveats into consideration before enabling it:

  • When Fast Startup is enabled, your computer doesn’t perform a regular shut down. Since applying new system updates often requires a shutdown, you may not be able to apply updates and turn your computer off. Restart is unaffected, though, so it still performs a full cold shutdown and restart of your system. If a shutdown doesn’t apply your updates, a restart still will.
  • Fast Startup can interfere slightly with encrypted disk images. Users of encryption programs like TrueCrypt have reported that encrypted drives they had mounted before shutting down their system were automatically remounted when starting back up. The solution for this is just to manually dismount your encrypted drives before shutting down, but it is something to be aware of. (This doesn’t affect the full disk encryption feature of TrueCrypt, just disk images. And BitLocker users shouldn’t be affected.)
  • Systems that don’t support hibernation won’t support Fast Startup either. Some devices just don’t play well with hibernation. You’ll have to experiment with it to see whether your devices respond well or not.
    When you shut down a computer with Fast Startup enabled, Windows locks down the Windows hard disk. You won’t be able to access it from other operating systems if you have your computer configured to dual-boot. Even worse, if you boot into another OS and then access or change anything on the hard disk (or partition) that the hibernating Windows installation uses, it can cause corruption. If you’re dual booting, it’s best not to use Fast Startup or Hibernation at all.
  • Depending on your system, you may not be able to access BIOS/UEFI settings when you shut down a computer with Fast Startup enabled. When a computer hibernates, it does not enter a fully powered down mode. Some versions of BIOS/UEFI work with a system in hibernation and some do not. If yours doesn’t, you can always restart the computer to access BIOS, since the restart cycle will still perform a full shutdown.
https://www.howtogeek.com/243901/the-pros-and-cons-of-windows-10s-fast-startup-mode/


2017-03-12

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


Reboot.

https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_install/install-of-15042-reboots-at-71-to-15031/a640c8f4-b93c-46fb-9aee-4d302f00eadf

2017-03-11

"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