Convert ngrok request from google colab to python

I have the following code which I run in google colab code : get_ipython().system_raw(‘./ngrok http 8000 &’) ! curl -s http://localhost:4040/api/tunnels | python3 -c \ “import sys, json; print(json.load(sys.stdin)[‘tunnels’][0][‘public_url’])” output (example): https://663af7c1.ngrok.io and then using flask I send API requests to above generated server. My question is How do I convert the code mentioned above…

AWS RDS: strange data consuming

I am experiencing a strange issue: I have a t2.micro AWS RDS instance, but it constantly eat its free space. The current usage of the tables, checked with this query: select table_schema, sum((data_length+index_length)/1024/1024) AS MB from information_schema.tables group by 1 result: # TABLE_SCHEMA, MB mysql, 5.89062500 information_schema, 0.00000000 sys, 0.01562500 performance_schema, 0.00000000 testdb_v6.2, 0.81250000 Please…

Bind mount systemd-nspawn

I’m playing with systemd-nspawn and I’m trying to enable a container at boot with a bind-mount. I’ve pacstraped and initialized the system and can start it on the command line as follows: $ sudo /usr/bin/systemd-nspawn –quiet –boot –link-journal=try-guest –network-veth -U –settings=override –machine=jekyll –bind-ro /home/xyz/Documents/jekyll:/home/jekyll/site –private-users=off and my bind-mount shows up no problem. When I however…