<meta property="fc:frame" content="vNext" /> <meta property="fc:frame:image" content="https://blog.flashsoft.eu/images/og/default-og-blog-opt.webp" /> <meta property="fc:frame:post_url" content="https://blog.flashsoft.eu/fc-frame-handler" /> <meta property="fc:frame:button:0:post_redirect" content="Visit Page" /> <meta property="fc:frame:button:0:action" content="link" /> <meta property="fc:frame:button:0:target" content="https://blog.flashsoft.eu/tag/code-example/page/5" /> <meta property="fc:frame:button:1" content="About Author" /> <meta property="fc:frame:button:2" content="About Blog" /> <meta property="fc:frame:button:3" content="Support Blog" />

Tag Code Example

Shred Function Qt C++ on windows

So, I searched for such a function and, I did find some things on O-Stack, but I rewrote what I found because it didn't actually work, I tested this function and it works pretty well, I think it has room for improvement as usual but I thought to share it anyway.

So here it is:

bool QtClAct::shred(const QString & fileName, uint RepeatWrite, bool DeleteFileLink) { if(RepeatWrite &lt; 1) RepeatWrite = 1; QSaveFile file(fileName); QFileInfo fi(file.fileName()); for(int i=0; i &lt; RepeatWrite; i++)...
View full article

Linux Folder / Folders Backup on Yandex

Ok so a little while ago I made a Linux Yandex python script for backing MySQL databases and sync them on Yandex Disk, so if I already did that I thought I should use a part of that script and make a backup script for folders.

Most of the script is self-explanatory, all you have to do is to change the variables before the starting of the class keyword for your own needs. I put some comments that will better explain what you should define in each variable. Most of them are either of type string ...

View full article

MySQL Backup on Yandex Disk with Cron

I wrote a very small python script that works in conjunction with another MySQL backup script to sync your backup on the Yandex disk service.

First, in order to do this, you should have a Yandex client installed. You can get the packages from the Yandex repo at http://repo.yandex.ru/yandex-disk/ .

More specific in Debian/ubuntu case just do a:

wget http://repo.yandex.ru/yandex-disk/yandex-disk_latest_amd64.deb

After that install the Yandex Console client as usual doing:

wget http://repo.yandex....
View full article