Integrate Disqus on WordPress programmatically

To integrate Disqus programmatically on WordPress single.php just set: var disqus_config = function () { this.page.url = ‘<?php echo get_permalink(); ?>’; // Replace PAGE_URL with your page’s canonical URL variable this.page.identifier = ‘<?php echo intval(get_the_ID()); ?>’; // Replace PAGE_IDENTIFIER with your page’s unique identifier variable };var disqus_config = function () { this.page.url = ‘<?php echo […]

Disable Compression when Encrypting with GNU GPG

By default GPG uses RFC1950 compression when encrypting a file. Use “–compress-algo none” to disable compression on GPG: /usr/bin/gpg –trust-model always –encrypt –compress-algo none –recipient ‘YOUR KEY NAME HERE’ file.tar/usr/bin/gpg –trust-model always –encrypt –compress-algo none –recipient ‘YOUR KEY NAME HERE’ file.tar To run the command in background use: nohup /usr/bin/gpg –trust-model always –encrypt –compress-algo none […]

Minify & Compress CSS with online tools

Compressing CSS code will help you speed-up the loading of your web pages and will also increase your Google page speed score, thus improving your overall SEO rank. Here are a few online tools useful to minify/compress CSS code: CSSReducer.com The best online tool to minify CSS online: https://www.cssreducer.com/ Read also: Unminify CSS and Javascript […]

SMS messages from 1-410-200-500 are a scam

There is a new wave of fraudulent SMS sent from 1-410-200-500 to users located mainly in India, USA and EU. The fraudulent SMS messages contain a malicious URL that redirects users to a fraudulent website used to steal your personal information and credit card, make sure you never click on the link and do not […]

“Google FREE Apple iPhone X Visitor Browser Opinion Survey” Scam

If you got an email with a subject like “Google FREE Apple iPhone X Visitor Browser Opinion” beware that it is a scam! Do not participate in the survey, it is a fraudulent website that push you to purchase other products so the online scammers are paid for each purchase you make. This is the […]

Linux Client Tools that Support TLS (GnuTLS, OpenSSL, Socat, Ncat, Telnet-SSL)

Here are some Linux tools that support TLS/SSL connection: 1) GnuTLS has a TLS client tool on Linux, example: gnutls-cli imap.server.com -p 993gnutls-cli imap.server.com -p 993 * Use -s for STARTTLS 2) OpenSSL supports TLS via s_client option, example: openssl s_client -connect imap.server.com:993openssl s_client -connect imap.server.com:993 * Use -starttls imap or -starttls smtp for STARTTLS […]

How to create a 1GB random file in Linux

You can use OpenSSL to create a 1 GB random file in Linux: openssl rand -out sample.txt -base64 $(( 2**30 * 3/4 ))openssl rand -out sample.txt -base64 $(( 2**30 * 3/4 )) 1 Gigabyte is like 230 bytes (you can use 10**9 for 109 bytes instead). The “* 3/4” section is for base64 overhead, making […]

Prevent less from Clearing the Screen upon Exit on Linux

To prevent less from clearing the screen upon exit you can just use -X option: -X or –no-init Disables sending the termcap initialization and deinitialization strings to the terminal. This is sometimes desirable if the deinitialization string does something unnecessary, like clearing the screen. To make less exit if the content fits on one screen, […]

Open User’s Home Directory from Command-Line on Windows

Open user’s Home folder from Windows command prompt (cmd.exe): cd %HOMEPATH%cd %HOMEPATH% The environment variable %HOMEPATH% is the current user’s home directory, example: C:\Users\User1\C:\Users\User1\ Check out how to open current user’s Desktop folder.

Open User’s Desktop Directory from Command-Line on Windows

Open user’s Desktop folder from Windows command prompt (cmd.exe): cd %HOMEPATH%\Desktopcd %HOMEPATH%\Desktop The environment variable %HOMEPATH% is the current user’s home directory, example: C:\Users\User1\C:\Users\User1\ So %HOMEPATH%\Desktop will open the current user’s Desktop folder: C:\Users\User1\DesktopC:\Users\User1\Desktop