Install VC_Redist 2015 Silently with InnoSetup

First, download latest VC Redist 2015-2019 installer from here: (Download Links) Visual Studio 2015, 2017 and 2019 In this example we will download x86: vc_redist.x86.exe Rename it to VC_redist_2015_2019_x86.exe and place it inside \Redist\ folder. In InnoSetup add this below [Files] section: ; VC++ redistributable runtime. Extracted only if needed, by checking if they are […]

InnoSetup Pass License Key as Custom Parameter

Place this code inside CurStepChanged() within ssPostInstall step: //allow usage of command-line parameter /LICENSEKEY=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX //and copy the key in a file license.key in installation folder if ExpandConstant(‘{param:licensekey|none}’) <> ‘none’ then begin SaveStringToFile(ExpandConstant(‘{app}’)+’\license.key’, ExpandConstant(‘{param:licensekey|none}’), False); end;//allow usage of command-line parameter /LICENSEKEY=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX //and copy the key in a file license.key in installation folder if ExpandConstant(‘{param:licensekey|none}’) <> ‘none’ […]

Debian Apt-get N: Repository Changed Its Version

If you get this message after apt-get update on a Debian server: N: Repository ‘http://mirrors.online.net/debian buster InRelease’ changed its ‘Version’ value from ‘10.4’ to ‘10.5’N: Repository ‘http://mirrors.online.net/debian buster InRelease’ changed its ‘Version’ value from ‘10.4’ to ‘10.5’ Then just run this once: apt-get update –allow-releaseinfo-changeapt-get update –allow-releaseinfo-change

Example Linux server error logs when CPU is faulty

Error messages displayed in the SSH shell: Message from syslogd@server at Aug 8 11:27:49 … kernel:[4665156.435610] NMI: IOCK error (debug interrupt?) for reason 61 on CPU 0.   Message from syslogd@server at Aug 8 11:28:08 … kernel:[4665175.398187] NMI: IOCK error (debug interrupt?) for reason 61 on CPU 0.   Message from syslogd@server at Aug 8 […]

Output multiple Linux commands into columns

You can run multiple Linux commands and get the output for each command delimited by a column: paste -d’|’ <(echo "$VAR1") <(echo "$VAR2") <(echo "$VAR3") <(echo "$VAR4")paste -d’|’ <(echo "$VAR1") <(echo "$VAR2") <(echo "$VAR3") <(echo "$VAR4") You can also run commands “inline” inside $(), example: paste -d’|’ <(echo $(pwd)) <(echo $(id))paste -d’|’ <(echo $(pwd)) <(echo […]

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: https://www.nvidia.com/Download/index.aspx?lang=en-us 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 […]