I hereby claim:
- I am ewheeler on github.
- I am evmw (https://keybase.io/evmw) on keybase.
- I have a public key ASBLPnLx7emRelngbk8fppavGyg0HV_O1-Zs1LzGNMNgZwo
To claim this, I am signing this object:
| from typing import TypeVar, Any | |
| K = TypeVar('K') | |
| V = TypeVar('V') | |
| class TrackingDict(dict[K, V]): | |
| """ | |
| A `dict` that keeps track of which keys are accessed. | |
| from https://www.peterbe.com/plog/a-python-dict-that-can-report-which-keys-you-did-not-use |
| .DS_Store | |
| build | |
| node_modules |
| /* | |
| This is an example Overpass query to view administrative boundaries. | |
| 1. Visit the OpenStreetMaps wiki (http://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative) and see which levels are present for your country. If admin_level = N/A, that level is missing. | |
| 2. Go to http://overpass-turbo.eu and centre the map on the country of interest. | |
| 3. Delete the text on the left side of the overpass-turbo page and replace with the contents of this file | |
| 4. Edit the admin_level to the level you want to check - in the example above, the "admin_level" = "8". Press 'Run' to highlight and outline all boundaries for that level. |
| Creating empty dashboard 'RapidPro 2022 messages' from 'RapidPro 2021 messages'... | |
| send: b'POST /api/v1/security/login HTTP/1.1\r\nHost: localhost:8088\r\nUser-Agent: python-requests/2.28.1\r\nAccept-Encoding: gzip, deflate, br\r\nAccept: */*\r\nConnection: keep-alive\r\nContent-Length: 86\r\nContent-Type: application/json\r\n\r\n' | |
| send: b'{"username": "zzz", "password": "xxx", "provider": "db", "refresh": false}' | |
| reply: 'HTTP/1.1 200 OK\r\n' | |
| header: Server: gunicorn | |
| header: Date: Fri, 14 Apr 2023 18:17:10 GMT | |
| header: Connection: keep-alive | |
| header: Content-Type: application/json; charset=utf-8 | |
| header: Content-Length: 287 | |
| header: Set-Cookie: session=8b8af0a2-e2dc-42ae-bdd5-fb78f91b82ec; Expires=Mon, 15-May-2023 18:17:10 GMT; HttpOnly; Path=/; SameSite=Lax |
| // for support before ECMA-262 5th edition ... | |
| if (!Date.now) { | |
| Date.now = function now() { | |
| return +(new Date); | |
| }; | |
| } | |
| // keep track of how many errors have been logged to server | |
| var num_errors = 0; | |
| var max_errors = 10; |
| # create stub, then run flask app in tornado on port 5000 (perhaps with supervisord config below http://supervisord.org/index.html) | |
| #!/usr/bin/env python | |
| from tornado.wsgi import WSGIContainer | |
| from tornado.httpserver import HTTPServer | |
| from tornado.ioloop import IOLoop | |
| from myflaskapp import app | |
| http_server = HTTPServer(WSGIContainer(app)) |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/ruby | |
| # vim: noet noai | |
| require "md5" | |
| user = "rm129" | |
| pass = "adam" | |
| url = "http://192.168.10.1/login" | |
| login = `curl -s #{url}` |
| screen -AdmS redash | |
| screen -S redash -X screen -t flask bin/run ./manage.py runserver --debugger --reload | |
| screen -S redash -X screen -t celery ./bin/run celery worker --app=redash.worker --beat -Qscheduled_queries,queries,celery -c2 | |
| screen -S redash -X screen -t client npm run start |