Site Sponsors:
Return of the Piranha 
Got a cheap, NEW-name Micro SD card. Should have known better, but - after avoiding so many NAND 'knock-offs & outright scams - the card looked genuine?

Yikes. The chips did not even have the decency to die - just trashed my data after working fine for the first bank.

Pure evil.

Knowing what I know from my security & robotics days, I had to either chip it, or get a refund. Times being what they are, we opted for the cash back.

Yet using `dd` and /dev/urandom would have taken days (~150 GB / day!)

So we updated ye olde 'Piranha wipe to gen the files - one group per PID.

Took three 'fish' a few hours to trash 400GB - (odd number of K - yet another sign that the card was untrustworthy!)

Thought I would share the code.

Enjoy the journey,

-- Randall

[ view entry ] ( 653 views )   |  permalink  |  related link
Whose STILL better @Python? 
Apologies for previous posts on political topics - I hate to care so much about non-technical issues - but I do.

Maybe you do, too?

Getting back to what we all know and love, surely the best way to push a post BACK, be to push something onto the stack, BEFORE it?

With such a laudable goal placed FIRMLY in mind, allow me to note that - even though Python 2.7 is decidedly deprecated - how, even at this late stage in the game - Ubuntu has the hands-down BEST Python 3 support for Apache2.

I cannot understand how tenured veterans are yet in denial over the ultimate demise of the 2.x standard... over the epoch, that pattern of deprivation has taken place over, and over, over, and over .. and over (!) again?

Indeed, Python 3 "just works" so well out-of-the-box (*) that I recently gave up at even trying to get the LAMP2 (Python3 + PHP) 'stack to work under CentOS 7. --At the day's ending, turn-key is ever so much to be preferred, 'oer toss-and-turn!


... we are even running Ubuntu 16.04 - even as so decidedly dated - upon our clouds ... to absolutely great effect!

GO - DADDY, GO! (That pun ... intended!)


Note: Following the previous ('how to' link, below) we yet (P2) had to:
apt search php7
apt search libapache2-mod-php7
-then, with respect to our option set, and in as much as php -v was a dud:
apt-get install php
apt-get install libapache2-mod-php7.0

To be followed by the requisite:
systemctl restart apache2

(*) (how to)

[ view entry ] ( 1260 views )   |  permalink  |  related link
Clone File Dates & Times 
I would be willing to wager that anyone who copies files on Linux has been stung by this one: After copying your files from one place, to another, you notice that the file dates & time have been changed?

While there are many ways to deal with the problem, few I have seen allow us to create a snapshot of the "good" file data (mtime) so as to apply them over several other copies... especially when we have thousands of files, scattered about different (let alone, multiple!) cloned-tree locations?

Submitted for your enjoyment therefore, we felt the need to share our '' strategy with you.

All we need do is to (1) create a snapshot of the good-tree, then (2) apply those dates over the destination tree. Upon (2), the script will replace the source, with the destination folder-location & then apply the snapshot source file's date & time to the destination file.

By way of a bonus, any (1) can be used over many (2)s.

Source Code:

Students who are interested in learning how to work with file information in Python 3 on Windows, Linux, macOS and elsewhere will also enjoy our Python 3000 training opportunity.

Note: For our purposes, we wanted the mtime of the source, to become the mtime + atime on the destination. --Your mileage might vary?

Google Fodder: touch recursive delta fix stat apply recover recovery

[ view entry ] ( 664 views )   |  permalink  |  related link

| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Next> Last>>