Here are similar scripts to start/stop instances on EC2 - I use them for the same purposes, to start/stop a development instance.
Posts made by gregr
RE: Creating/Destroying VPS with Pythonista
RE: [Share Code] Touch ID Authentication in Pythonista
@ProfSpaceCadet nice. Although rather than doing
while result == None: pass
while you're waiting for a result (which will likely burn CPU), would probably be better to add a threading.Event, and wait on that event instead of looping.
Creating/Destroying VPS with Pythonista
I've recently been doing a lot of web development using an iPad Pro, using a remote VPS as a development server. I wrote some Pythonista scripts to create and destroy VPS's from saved images, so I can tap a button on my iPad, and the VPS is up and running in about a minute. And since no one wants to keep paying $0.015/hr :-), another tap tears down the VPS.
Right now the scripts are for Linode, and I have some similar ones for AWS/EC2 I'll upload when I get a chance.
Anyway, the scripts are here, including some commentary on how to customize them for your own use:
Or go right to the code if you'd rather:
Hopefully this is useful for someone!
RE: Is it possible to read a file, say txt file, from other app?
To the original question - it would be cool if there was a way to open a file from a document provider in another app. Sort of as described in this blog post, where 1Writer is using the document provider from Working Copy to open a file in-place (i.e. without making a new copy):
RE: Just a pic, smart keyboard attached to ipad pro. Holding down cmd key
Just for another opinion - I absolutely love the smart keyboard. The angle seems good for me, and I like how thin and light it is, when folded up.
I thought I was going to hate it, and go to a bluetooth keyboard - but now you'd have to pry it from my hands. :)
RE: Touch ID in Pythonista 2.0
Well, I do secure the whole device with Touch ID. What makes me nervous, though, is if you hand your unlocked iPad to someone you do trust (family member, etc), and they accidentally tap something they shouldn't.
For example, I have some scripts that do somewhat destructive things, like remove production servers from load balancers. I'd rather not have to type my password every time to run the script - but if I store the password in the keychain, then someone borrowing my iPad could do it by accident.
That said - I understand I could probably work around the "accident" case by adding my own Touch ID check in the script, as suggested earlier. But I'd feel better if there was a system-level thing...
Seems like the ideal thing (for me, anyway!) might be to bring back the master password, but be able to use Touch ID instead of that master password.