Use cURL to check for SSL certificate issues:

curl -sSL -D – https://www.website.com/ -o /dev/nullcurl -sSL -D – https://www.website.com/ -o /dev/null If there are SSL issues this is the output: curl: (60) SSL certificate problem: certificate has expired More details here: https://curl.haxx.se/docs/sslcerts.html   curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To […]

How to test Socks5 proxy with cURL

An effective way to test socks5 proxy with cURL: curl -x "socks5://<user>:<pass>@<ip>:<port>" -ipv4 -k -v https://api.my-ip.io/ip.txtcurl -x "socks5://<user>:<pass>@<ip>:<port>" -ipv4 -k -v https://api.my-ip.io/ip.txt Important is the -ipv4 option to make the name resolving only ask for IPv4 addresses. We noticed that without -ipv4 there may be errors like this: curl: (97) Can’t complete SOCKS5 connection to […]

How to use variables in a sed command

Use double quotes to make the shell expand variables and preserve whitespace: sed -i "s/$var1/abc/g" "$file"sed -i "s/$var1/abc/g" "$file" If you have a slash / in the variable, use different separator: sed -i "s|$var1|abc|g" "$file"sed -i "s|$var1|abc|g" "$file"

Best Socks5 Servers for Linux Debian

Shadowsocks https://shadowsocks.org/en/index.html How to install Shadowsocks: https://upcloud.com/community/tutorials/install-shadowsocks-libev-socks5-proxy/ Microsocks: https://github.com/rofl0r/microsocks Dante: https://www.inet.no/dante/

Error NO_PUBKEY in Google Cloud Debian Packages Update

If you get the following errors with apt-get update: Err:6 http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY FEEA9169307EA071 NO_PUBKEY 8B57C5C2836F4BEB Err:8 http://packages.cloud.google.com/apt google-compute-engine-stretch-stable InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY FEEA9169307EA071 NO_PUBKEY 8B57C5C2836F4BEB Err:10 http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-stretch InRelease […]

MySQL InnoDB log sequence number is in the future

If you see this on /var/log/daemon.log: [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.   [ERROR] InnoDB: Page [page id: space=128, page number=621786] log sequence number 403934013668 is in the future! Current system […]

Delphi OpenSSL DLL binaries

Here you can find OpenSSL DLLs to use with Delphi Indy projects: https://docwiki.embarcadero.com/RADStudio/Rio/en/OpenSSL https://github.com/IndySockets/OpenSSL-Binaries/

Delphi Indy and SSL TLSv1.2

Make sure TLSv1.2 is present in SSL Versions: SSL := TIdSSLIOHandlerSocketOpenSSL.Create(nil); SSL.SSLOptions.SSLVersions := [sslvTLSv1_1, sslvTLSv1_2]; HTTP.IOHandler := SSL;SSL := TIdSSLIOHandlerSocketOpenSSL.Create(nil); SSL.SSLOptions.SSLVersions := [sslvTLSv1_1, sslvTLSv1_2]; HTTP.IOHandler := SSL; Then make sure to update the OpenSSL DLLs: OpenSSL DLLs (x86): openssl-1.0.2u-i386-win32.zip OpenSSL DLLs (x64): openssl-1.0.2u-x64_86-win64.zip Other OpenSSL DLL versions can be found here: https://github.com/IndySockets/OpenSSL-Binaries/ Official Embarcadero OpenSSL […]

Permanently Disable Windows Defender on Windows 10/11

To disable Windows Defender via regedit: 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 To enable Windows Defender via regedit: Windows Registry Editor Version 5.00   [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] "DisableAntiSpyware"=dword:00000000   [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection] "DisableRealtimeMonitoring"=dword:00000000Windows Registry Editor Version 5.00 […]

How to Install Windows 11 on VMWare Workstation

On the first installation step, type SHIFT + F10 to open command prompt. Then type the following commands: REG ADD HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 REG ADD HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 REG ADD HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1 REG ADD HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /t REG_DWORD /d 1 REG […]