Bash script for using awscli rds-data cli for querying RDS db and outputting to CSV with jq
DB_NAME=my-db \
SQL_FILE=./my-query.sql \
RDS_CLUSTER_ARN=arn:aws:rds:::cluster: \| FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 | |
| RUN apt update -y && \ | |
| # python3 is 3.10 in ubuntu 22.04 | |
| apt install -y python3 python3-pip curl && \ | |
| apt clean -y | |
| ARG POETRY_VERSION | |
| RUN curl -sSL https://install.python-poetry.org | python3 - --version ${POETRY_VERSION} | |
| ENV PATH "/root/.local/bin:$PATH" |
| from typing import Any, Collection, Dict | |
| from sympy import Expr, MatrixExpr, Basic, MatrixSymbol, sin, Matrix, Tuple, Function, solve, ImmutableDenseMatrix, Symbol, symbols, StrPrinter, Eq, randMatrix, cos, MatMul, Derivative, Integral, ShapeError | |
| from sympy.core import cacheit | |
| from sympy.core.sympify import _sympify | |
| from sympy.core.symbol import Str | |
| import unittest | |
| __all__ = ["SymbolicMatrixFunction", "solve_with_sym_matrices"] |
| from typing_extensions import Annotated as An | |
| from runtype_validation import validate, InRange | |
| @validate | |
| def test_fn(a: An[int, InRange(0, 100)], b: An[float, InRange(0, 1)]): | |
| pass | |
| test_fn(50, 0.5) # works | |
| try: | |
| test_fn(0.5, 0.5) # TypeError: Expected a to have type <class 'int'> but got <class 'float'> |
ESP32 Firmware binary as requested by: Josverl/micropython-stubber#42 (comment)
| #!/bin/bash | |
| ssh ubuntu@54.206.64.114 'bash ~/delivery-webapp/scripts/on_server.sh && exit' |
| from socketIO_client import SocketIO, BaseNamespace | |
| import logging | |
| logging.getLogger('socketIO-client').setLevel(logging.DEBUG) | |
| device_info = { | |
| 'name': "PYTHON TEST DEVICE", | |
| 'secret': "lmaolmao", | |
| 'width': 360, | |
| 'height': 240 |