This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| from pprint import PrettyPrinter | |
| import requests | |
| pp = PrettyPrinter() | |
| def query(search) | |
| url = f"https://wwwapi.lcsc.com/v1/search/global-search?keyword={search}" | |
| r = requests.get(url) | |
| pp.pprint(r.json()) |
| import hashlib | |
| SCOPEID = '0000000000000000' | |
| Model = 'SDS2000X+' | |
| # Note that 'AWG' should be used for the 'FG' option | |
| # If you have the 100 MHz model, then first upgrade it to 200 MHz, then 350 MHz and finally 500 MHz | |
| bwopt = ('25M', '40M', '50M', '60M', '70M', '100M', '150M', '200M', '250M', '300M', '350M', '500M', '750M', '1000M', 'MAX', 'AWG', 'WIFI', 'MSO', 'FLX', 'CFD', 'I2S', '1553', 'PWA') | |
| hashkey = '5zao9lyua01pp7hjzm3orcq90mds63z6zi5kv7vmv3ih981vlwn06txnjdtas3u2wa8msx61i12ueh14t7kqwsfskg032nhyuy1d9vv2wm925rd18kih9xhkyilobbgy' |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| #!/usr/bin/env python | |
| import argparse | |
| import visa, sys | |
| from pyvisa.constants import StatusCode | |
| from PIL import Image | |
| from cStringIO import StringIO | |
| def screendump(device, filename): |
| ### Keybase proof | |
| I hereby claim: | |
| * I am bmjjr on github. | |
| * I am bmjjr (https://keybase.io/bmjjr) on keybase. | |
| * I have a public key ASBc8rlNdvGrooCxI_lxC-u01gob6MDg-qWJIJ-EATom-go | |
| To claim this, I am signing this object: |
Demonstrate use of fixture with Flask-SQLAlchemy and Flask-Testing.
February 13, 2011
Ron DuPlain <[email protected]>
Post any feedback to: [email protected]
Get this gist:
git clone git://gist.github.com/824472.git Flask-SQLAlchemy-Fixture cd Flask-SQLAlchemy-Fixture
| @manager.command | |
| def runserver(host="127.0.0.1", port=8000): | |
| """Run a gevent-based WSGI server.""" | |
| port = int(port) | |
| wrapped_app = app | |
| if app.config.get("DEBUG", True): | |
| wrapped_app = werkzeug.debug.DebuggedApplication(app) | |
| server = WSGIServer(listener=(host, port), application=wrapped_app, |
| https://home-assistant.io/atom.xml | |
| https://engineering.hellofresh.com/feed | |
| http://hundredminutehack.blogspot.com/feeds/posts/default | |
| http://rightfootin.blogspot.com/feeds/posts/default | |
| https://devblogs.nvidia.com/parallelforall/feed | |
| http://www.androidxu.com/feeds/posts/default | |
| http://journalpanic.com/index.xml | |
| http://robbygrodin.com/feed | |
| https://snarky.ca/rss | |
| https://www.ossblog.org/feed |