2021-01-01から1年間の記事一覧
オオシママサト on Twitter: "Cloud RunでIP制限どうやるんだろーと思って、ググり始めて30分ぐらいでいつのまにかできてしまった!なんて簡単なんだ・・ Cloud Armor + GCLB + url-map + Serverless NEG + Cloud Runでできました" Cloud RunへのアクセスにI…
文字列 curl -X POST -H "Content-Type: application/json" -d '{"foo":"foobar", "id":"123"}' localhost:8000/foobar/ JSONファイル(@つけるだけ) curl -X POST -H "Content-Type: application/json" localhost:8000/foobar/ -d @sample.json
DataflowのFlexテンプレートとScioで動的なパイプラインを実現する - エムスリーテックブログ Scala + Scio で Apache Beam あるいは Google Cloud Dataflow に入門する - ブログ・ア・ラ・クレーム 実践Scio (基礎編) - kimutyam - Medium
ref サーバーアプリ開発環境(Python/FastAPI) | フューチャー技術ブログ
$ poetry new foo-project $ tree . ├── README.md └── foo-project ├── README.rst ├── pyproject.toml ├── tests │ ├── __init__.py │ └── test_foo-project.py └── foo-project └── __init__.py 3 directories, 6 files $ poetry config virtualenvs.in-p…
cloud.google.com queuery.com
2015年 arata.hatenadiary.com www.zaneli.com scala 製 plugin github.com github.com
コマンド auth されている account 一覧(gcloud auth login すると増えていく) gcloud auth list config 一覧 gcloud config list configration 一覧 gcloud config configurations list 新しい configuration つくって set する gcloud config configuratio…
dev.classmethod.jp www.db-tech-showcase.com
とりあえず macabに食わせてみる cat input.txt | mecab jupyterでwordcloudつくる import MeCab from matplotlib import pyplot as plt from wordcloud import WordCloud with open('input.txt', mode='rt', encoding='utf-8') as fi: source_text = fi.rea…
これ YAML to JSON - Visual Studio Marketplace JSONかYAMLを開く shift + command + P を押す 「YAML to JSON:Convert selection or document」と入力する いじょ
ecs-cliの導入 brew install ecs-cli ~/.ecs/credentialsの内容 version: v1 default: default region: ap-northeast-1 ecs_profiles: default: aws_access_key_id: xxx aws_secret_access_key: xxx ECSクラスタ作成 手元の ecs-params.yml を参照している e…
import json if __name__ == "__main__": payload = '{"abc" : "あいうえお"}' x = json.loads(payload) print(x) print(type(x)) y = json.dumps(x, ensure_ascii=False) print(y) print(type(y)) 実行結果 {'abc': 'あいうえお'} <class 'dict'> {"abc": "あいうえお"} <class 'str'> </class></class>…