How to Disable Hibernation on Windows 10

Hibernation saves your open documents and programs on your hard-disk into the file C:\hiberfil.sys and then owers off the computer. The file C:\hiberfil.sys is a hidden and system-protected file that is approximately 75% of the total amount of RAM. The problem of hibernation is that it stores in the C:\hiberfil.sys important programs data (such as […]

Disable Windows Defender on Windows 10 via Regedit

Copy this text in a new text file: Windows Registry Editor Version 5.00   [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] "DisableAntiSpyware"=dword:00000001   [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection] "DisableRealtimeMonitoring"=dword:00000001Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] "DisableAntiSpyware"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection] "DisableRealtimeMonitoring"=dword:00000001 Rename the text file to disable-defender.reg Double-click the .reg file and reboot the computer. Now WIndows Defender will be disabled.

Install Latest NVIDIA Drivers for Windows 10

Open this URL in your browser: Enter your NVIDIA graphic card details and click the Search button. BONUS TIP: If you are a creative or business and not a gamer, select: Download Type = Studio Driver (SD) These drivers focuses on stability and wuality.

How to improve security of encrypted hard disks

To avoid your encrypted disk (Truecrypt, Veracrypt, Bitlocker, etc) from being decrypted your first rule should be to use a strong password, then you need to make sure an attacker cannot access data that was saved in the memory, else he can dump the decryption key that was stored in the memory and then remove […]

Get Server IP Address with Ifconfig and IP in Bash

Here is a one-line command to get server remote IP address: Using “ifconfig” checking for “inet”: /usr/sbin/ifconfig | grep "inet " | cut -d: -f2 | awk ‘{ print $2}’ | head -n 1/usr/sbin/ifconfig | grep "inet " | cut -d: -f2 | awk ‘{ print $2}’ | head -n 1 Using “ifconfig” checking for […]

bash: ipconfig: command not found

If you get an error when typing “ifconfig” in the shell console: bash: ipconfig: command not foundbash: ipconfig: command not found Then try to use the full ifconfig path: /usr/sbin/ifconfig/usr/sbin/ifconfig Or better use “ip” command like this: ip addrip addr

Check if a number is within a range in bash

Bash snippet to check if a number is within a range: number=3   if [ "$number" -ge 2 ] && [ "$number" -le 5 ]; then echo "$number is within 2 and 5" finumber=3 if [ "$number" -ge 2 ] && [ "$number" -le 5 ]; then echo "$number is within 2 and 5" fi

Linux Commands to Check HDD from Rescue Mode

Linux commands you can run to check HDD status from Rescue Mode: 1) List disks ls -la /dev/sd* ls -la /dev/md*ls -la /dev/sd* ls -la /dev/md* 2) Try to mount a disk mkdir -p /mnt/md0 mount -t auto /dev/md0 /mnt/md0mkdir -p /mnt/md0 mount -t auto /dev/md0 /mnt/md0 3) Check RAID status with MDADM mdadm –detail […]

Compare Numbers and Integers in Bash

Here is an example bash script to compare numbers: #!/bin/bash   a=123456 b=123456   if [ "$a" -eq "$b" ]; then echo "Numbers are equal"; fi#!/bin/bash a=123456 b=123456 if [ "$a" -eq "$b" ]; then echo "Numbers are equal"; fi Here are all comparison operators: -eq # equal -ne # not equal -lt # less […]

How to Allow USB Encryption with Bitlocker

If you get a Bitlocker group policy conflict when trying to protect a USB removable media with Bitlocker, then you may need to enable a specific option in Group Policy Editor. You need to enable “Allow Bitlocker without a compatible TPM” option: