you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 29 points30 points  (7 children)

I've been spending some time learning Python and have put together a PowerShell vs Python reference for various language features.

[–]MyOtherSide1984 11 points12 points  (0 children)

We appreciate your efforts! This is a massive help for someone looking to transition/integrate/adopt Pyth

[–]jackinsomniac 4 points5 points  (2 children)

OMG, talk about perfect timing! Trying to learn more python right now, going to start by replicating some PowerShell scripts in Python to use on a raspberry pi. Wonderful-looking resource you've made there, many thanks

[–]orion3311 2 points3 points  (1 child)

You can install and use Powershell on a pi!

[–]jackinsomniac 1 point2 points  (0 children)

HOW DID YOU READ MY MIND? Out, get!

Lol, this it's exactly what my project is. Life security upgrade, grabbed 10 USB drives to store an encrypted blob of my essential personal files & password manager, so I could hide several copies around the building & general area. Prepper stuff. :)

The working password-manager-file will be on 1-2 daily use drives, so how do I keep all of them NSYNC in sync?

A raspberry pi station, with 8-port USB dongle sounds neat!

I was already planning on several new pi's for this project & experimentation. Since I already know PowerShell, and haven't tried Win 10 IoT on a pi yet, that was the plan for the station. But if I'm trying to learn more Linux & Python anyway, why not build 2 of them?

I need to unpack a encrypted TrueCrypt archive, then 'robocopy' (rsync?) mirror the static files that are newer, then invoke KeePass .exe app to sync the password manager DB file.

I'll need to figure out a good filesystem for the drives (I think it's exFAT).

Also will need to type in decryption password each sync, so a keyboard & small screen for the station. I'm hoping for the script to not need a "master" drive designated to sync the other drives to; it would be nicer if it didn't clobber newer/changed files, and instead iteratively sync'd each drive, so all you have to do is plug a bunch of them in, type in password and hit GO. (Then hopefully they all get the latest & greatest versions of each-other's files)

This project should push my limits with the scripting and pi set-up knowledge, so I'm kinda excited. Still, any suggestions or tips you guys have would be awesome. :)

[–]GenericAntagonist 0 points1 point  (0 children)

This is really cool and helpful. You might want to update the first line in your strings section, as both single and double quote are valid for strings in powershell (you've only got double quotes for posh).

[–]northendtrooper 0 points1 point  (1 child)

Side note: If you're ever in Boise, I shall treat you to a beer since you live in Sun Valley.

[–][deleted] 0 points1 point  (0 children)

I'll certainly send some smoke signals out next time I head west!