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

Delete a Junction from Command-Line on Windows

On Windows 7 and Windows 10 you can delete a junction from command-line. You can use rmdir (rd) to delete junctions on Windows ,example: cmd /c "rmdir C:\Server\"cmd /c "rmdir C:\Server\" If rmdir gives you Access Denied error, try to use fsutil: fsutil reparsepoint delete "C:\Server\"fsutil reparsepoint delete "C:\Server\" More info here: Fsutil reparsepoint | […]

How to fix Warning: the ECDSA host key differs from

If you get this error while setting up password-less SSH with ssh-copy-id: Warning: the ECDSA host key for ‘server’ differs from the key for the IP address ‘192.168.1.122’ Warning: the ECDSA host key for ‘server’ differs from the key for the IP address ‘192.168.1.122’ Try to remove the cached key for the server IP address: […]

Email addresses associated with suspicious online shops

Here is a list of email addresses associated with suspicious and potentially fraudulent online shopping websites that sell counterfeit products or that just get your money without sending you anything. Most of these shopping sites are operated by people located in China. wholesalenewhat@gmail.com support1@webmicroshop.com anweiler@discontseason.com surpport@cctmalls.com livechat.kc@gmail.com service@ezvmall.com system@ezvmall.com bag@list-customs-service.com service.negozio.italian@gmail.com service@mx2.commerce-line.info alex@promt-reply.com nina@promotion-town.com alex@promt-reply.com […]

Suspicious online shops from helpandserving@gmail.com

Looks like the email helpandserving@gmail.com is associated to thousands of online shopping websites created with Shopify that sell mostly anything, from hair wigs, to drones and other tech goods. But are these websites safe? From my own personal point of view, I would say they are suspicious and I would not buy anything from them. […]

YouCompress: Reduce file size of images, videos, PDF, MP3

Do you need to quickly compress image, video, PDF and MP3 files online? You can do that with YouCompress.com! It is a free web application that lets you compress media files and PDF files online, quickly and easily. It supports most popular file extensions, including MP4, MOV, MP3, PDF, PNG, JPEG, JPG and GIF. Best […]

Force Apt-get to use IPv4 on Debian Linux

In some VPS or servers you may get errors when doing apt-get due to IPv6. To force apt-get to use IPv4 just type this command: echo ‘Acquire::ForceIPv4 "true";’ | tee /etc/apt/apt.conf.d/99force-ipv4echo ‘Acquire::ForceIPv4 "true";’ | tee /etc/apt/apt.conf.d/99force-ipv4 The setting will be permanent.