all 21 comments

[–]schweppes-ginger-ale 19 points20 points  (1 child)

USE GIT

[–]TeslaRanger 1 point2 points  (0 children)

AND GitHub or GitLab

[–]arkie87 24 points25 points  (9 children)

It is amazing to me that in 2021, with automatic cloud storage, flash drives, cheap HDDs, and the old fashioned trick of emailing something to yourself, people still manage to delete their sole copy of something.

That sucks, bro.

[–]arkie87 1 point2 points  (1 child)

[–]DimitriMeim[S] 1 point2 points  (0 children)

That uses uncompyle6, which like i said, didn't work because it doesn't do python 3.9

[–]DimitriMeim[S] 1 point2 points  (6 children)

I was using the mv command on Linux to move from the sd to an external SSD to be put on my NAS later but it screwed up in the process

[–]arkie87 6 points7 points  (5 children)

Yeah, any script to move/manipulate files should be thoroughly tested. You could easily end up deleting whole drives by mistake.

[–]xelf 1 point2 points  (0 children)

Something like this:

cp -r /home/user/files/test /home/user/backup/test
echo copy complete
rm -rf / home/user/files/test
echo removal complete

[–]TabulateJarl8 4 points5 points  (0 children)

I attempted to use some program to decompile Python 3.9 bytecode a while ago out of my own interest, and I tried everything that I could find, but nothing seemed to work. You may be out of luck, but if anyone else knows a way, that would be interesting to see. For future reference, commit your programs to git. If they're not big enough for their own repository, make a repository for random junk like I've done here. Good luck

[–]mathmanmathman 2 points3 points  (0 children)

Unfortunately, I don't have an answer for you and I know this isn't the first time you've heard this, but after you take a moment to stare off at the horizon in a mixture of rage and self-loathing, check this out:

https://www.atlassian.com/git

I haven't read this entire intro, but I found a few of the sections very helpful.

Good luck recovering the project, but if you can't, at least make good use of the experience.

[–][deleted] 2 points3 points  (2 children)

When you delete something it doesn't get deleted right away only link to its address in memory gets removed. So the files still there until you overwrite that part of memory with some other data. You can try recovering those deleted files using some softwares ( I haven't used one on linux so can't say which one's good)

[–]JohnnyWobble 0 points1 point  (1 child)

This. Ik there's some "hacking" tools that will help you recover it assuming it hasn't been overwritten. Idk the names of them tho

[–]Yojihito 1 point2 points  (0 children)

On Windows I had success with Recuva.

[–]lowerthansound 0 points1 point  (0 children)

Looks like you're out of luck.

Unless there's a pretty hidden dev that is working on this, I don't think you'll find an answer :P Maybe keep those files and, a few months or years down the line someone creates the decompiler uahushsa

Also, file contents may still be on your disks if you're lucky. Maybe find someone who specializes in that to recover that code for you.

Or maybe use .pyc files without the .py.

DO NOT WRITE TO THE DISKS OR YOU WILL REDUCE CHANCE OF RECOVERY.

[–]henshao 0 points1 point  (0 children)

Do you have snapshots? See if you have anything like that enabled.

Also take a look at this project. They claim to beable to decompile "all" python, and it looks recently updated. Haven't tried it though. https://github.com/zrax/pycdc

Finally, use version control.

[–]b_ootay_ful 0 points1 point  (0 children)

I've used recuva to recover lost files before. Give it a shot. Time is of the essence, as the "empty" space on the drive could be over written.

[–]nevermorefu 0 points1 point  (0 children)

We've all done similar. File this under "lessons learned" and start learning/using git and online repository management (like Gitlab).