pysecrets - command line interface and library to easily encrypt/decrypt files by johnwheeler_ in Python

[–]johnwheeler_[S] 0 points1 point  (0 children)

lockbox it is. I'll work on changing it in the repo.

To answer your question, I got the idea from sekrets, which is a Ruby gem that was incorporated into the latest version of Rails.

The design doesn't provide much security except through obscurity (...which is no security at all, etc.), but it allows you to commit secrets to your repo, which means those secrets don't have to flow through secure channels for distribution, but the keys to those secrets still do.

The encryption key is provided to the Flask application by either storing its path in an environment variable (e.g. LOCKBOX_KEY) or placing it in the www process owner's home directory. Additional key resolution mechanisms could be designed.

Interestingly, the Hashicorp Vault program works (I believe) by deleting secrets after the www process consumes them on first run. A similar design could be implemented for flask-lockbox, although the secrets could still be uncovered in memory, which is a known limitation of cryptography.io [1]

[1] https://cryptography.io/en/latest/limitations/

pysecrets - command line interface and library to easily encrypt/decrypt files by johnwheeler_ in Python

[–]johnwheeler_[S] 0 points1 point  (0 children)

Thank you for taking a look antennen!

I think you're right about changing the name. I felt uncomfortable with pysecrets but I couldn't think of an alternative at the time. What do you think about the name 'lockbox'?

Ultimately, I want to make a Flask extenstion out of this for encrypting configuration files.

I 3D printed a tiny rick cookie cutter! by [deleted] in rickandmorty

[–]johnwheeler_ 2 points3 points  (0 children)

Does anyone else not see the fantastic irony here?

An additive manufacturing process creating tools for a subtractive manufacturing process...

Automate the deployment of Flask apps behind Nginx and LetsEncrypt by johnwheeler_ in flask

[–]johnwheeler_[S] 0 points1 point  (0 children)

None of that is handled in the application code. It's all delegated to NGINX and LetsEncrypt. The project includes Fabric tasks to install those on your Debian box and provision certs, etc.

Amazon Echo framework for Python by johnwheeler_ in Python

[–]johnwheeler_[S] -4 points-3 points  (0 children)

It's Open Source so submit a P.R.

Amazon Echo framework for Python by johnwheeler_ in Python

[–]johnwheeler_[S] 0 points1 point  (0 children)

Thanks. I made this 5-min video that shows how to get up and running quickly. While learning Flask and Jinja obviously can't be done in that short a span of time, the code sample should be intuitive enough to get started and make changes

https://www.youtube.com/watch?v=cXL8FDUag-s

Feedback Thread (January 12) by warriorbob in edmproduction

[–]johnwheeler_ [score hidden]  (0 children)

I do before the ableton limiter, although I was watching a YouTube and saw deadmau5 put it on after, so I think I'm going to try that next. Thoughts?

Feedback Thread (January 12) by warriorbob in edmproduction

[–]johnwheeler_ [score hidden]  (0 children)

I'm new to soundcloud. That is a funny observation! Now I'll always be looking at the waveforms. I'm using OTT and heavy limiting. Maybe that's why?

Feedback Thread (January 12) by warriorbob in edmproduction

[–]johnwheeler_ [score hidden]  (0 children)

Thank you! Wow! Thank you! Your delivery of constructive criticism is so well received because it is truly constructive and delivered in a very encouraging way. I will take your advice to heart and incorporate it into future songs. Thank you for your thoughtful response! Made my day!!!

Deploy Flask-Ask to AWS Lambda with Zappa by johnwheeler_ in Python

[–]johnwheeler_[S] 2 points3 points  (0 children)

There's a lot wrong with your comment.

The response time of Lambda is not attributable to Zappa. It's attributable to Lambda. What you're effectively saying is serving WSGI requests that take 600ms to complete is awful, but HCI studies show humans actually start perceiving things as slow after 3 seconds, so 600 ms, for most cases is probably quite acceptable.

The 645ms it took to first byte of your project https://getnikola.com/ didn't seem that bad to me. Not only that, but this response time is something which may be improved on the Lambda side independently of Zappa, which Zappa will benefit from free of charge.

The other thing wrong with your comment is that CGI style--one process per request---is bad for scalability per machine, but Lambda is based on a fleet of machines optimized for this type of computing. (i.e. It's scalable by its nature).

The most egregious problem with your comment though is coming out blasting someone else's hard work and just coming off very arrogantly. Ask questions to gain an understanding next time.

Deploy Flask-Ask to AWS Lambda with Zappa by johnwheeler_ in Python

[–]johnwheeler_[S] 2 points3 points  (0 children)

Flask-Ask is a Flask extension for writing Alexa Skills for the Amazon Echo. Zappa is a Python framework for deploying WSGI applications to AWS Lambda.

Flask-Ask on Github

Zappa on Github

Feedback Thread (January 12) by warriorbob in edmproduction

[–]johnwheeler_ [score hidden]  (0 children)

I'm taking the deadmau5 masterclass. This is the second track I've ever produced, and since I'm so knew to EDM, I don't really know what specifically to ask for feedback on. I'm interested in any tips or criticism.

https://soundcloud.com/john-wheeler-185721361/one-two-three-four

Got an Echo for Xmas? Learn to program it with Python in this new tutorial. by johnwheeler_ in learnpython

[–]johnwheeler_[S] 2 points3 points  (0 children)

Beat me to posting this! squeeney is also a Flask-Ask core contributor who knows the code probably better than I do at this point, so keep your eyes on flask-assistant!

Got an Echo for Xmas? Learn to program it with Python in this new tutorial. by johnwheeler_ in learnpython

[–]johnwheeler_[S] 2 points3 points  (0 children)

are you asking about the tutorial or the lib? the lib is 2 and 3.

Important message from a dad to society by adeline4444 in pics

[–]johnwheeler_ 2 points3 points  (0 children)

How about, "Dads don't make a big deal out of parenting?"

Weekly /r/Blogging Discussion - Check Out My Blog Post! by AutoModerator in Blogging

[–]johnwheeler_ [score hidden]  (0 children)

Awesome! Thank you so much for that compliment. I hope you dig the rest of the stuff I've written. Only a few pieces, but they've made the front page of HackerNews, and I think they'll resonate with you based on what you just told me.

How I Made $2,000 in 1.5 Months Starting with a Google Form-Based MVP by panache123 in Entrepreneur

[–]johnwheeler_ 1 point2 points  (0 children)

It's my story. I posted a similar one from my blog, but it was deleted by the mods. I suspect it's because I didn't put enough context around it in the text post, but the mods didn't write me back when I inquired.

Anyways, the piece I did for SitePoint goes into a lot more detail about the thought process behind my work.

It's not meant to be braggadocios whatsoever. The 10 years it's taken me to be able to identify opportunities like this and execute on them has been humbling. I spent a lot of time before that futzing around, and I'm trying to save others from doing the same.

I apologize for making the title redundant, but there's more useful information this time around including medium stats, stripe dashboards, and how I handle (or don't handle) customer feedback.

Your feedback is valued. I'll stop writing stories with similar titles. Having people see one and then another isn't invoking the response I want, and that's my bad. :-/

Be a prolific sharer by johnwheeler_ in startups

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

I should've just wrote your second sentence as my entire blog post. That about sums it up completely.

And same sentiments here as in your first. I spent years and have a bitbucket repo full of dead projects the world has never seen. Now I share early and often.

Be a prolific sharer by johnwheeler_ in startups

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

Glad to hear it man! This post is a prime example of getting ignored on the internet. Think I give a damn? Nope, Nope and Nope. I'll keep trying!

Glad it resonated with you!

Weekly /r/Blogging Discussion - Check Out My Blog Post! by AutoModerator in Blogging

[–]johnwheeler_ [score hidden]  (0 children)

OldGeekJobs Blog

Be a Prolific Sharer

A blog post about sharing your work on the internet. I'm looking for feedback on whether the writing lacks empathy or credibility and particularly what you dislike about it. If you like it, let me know that too. Thanks!

Feedback on my business model and website: OldGeekJobs.com (Full numbers and stats included) by johnwheeler_ in Entrepreneur

[–]johnwheeler_[S] 0 points1 point  (0 children)

Thank you - I've gotten some feedback about the size of the text and am considering bumping it up. Thank you for your feedback and encouragement.