2021-01-01から1年間の記事一覧

Cloud Run で IP制限

オオシママサト on Twitter: "Cloud RunでIP制限どうやるんだろーと思って、ググり始めて30分ぐらいでいつのまにかできてしまった!なんて簡単なんだ・・ Cloud Armor + GCLB + url-map + Serverless NEG + Cloud Runでできました" Cloud RunへのアクセスにI…

curl で json post する

文字列 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

scio

DataflowのFlexテンプレートとScioで動的なパイプラインを実現する - エムスリーテックブログ Scala + Scio で Apache Beam あるいは Google Cloud Dataflow に入門する - ブログ・ア・ラ・クレーム 実践Scio (基礎編) - kimutyam - Medium

FastAPI めも

ref サーバーアプリ開発環境(Python/FastAPI) | フューチャー技術ブログ

poetry めも

$ 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…

Vertex Model Monitoring

cloud.google.com queuery.com

embulk + scala

2015年 arata.hatenadiary.com www.zaneli.com scala 製 plugin github.com github.com

gcloudのコマンド

コマンド 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

WordCloudつくってみためも

とりあえず 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…

VSCodeの YAML to JSON で相互変換

これ YAML to JSON - Visual Studio Marketplace JSONかYAMLを開く shift + command + P を押す 「YAML to JSON:Convert selection or document」と入力する いじょ

fargateでsonarqube動かしてみるテスト

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…

Pythonでjson.dumpsで日本語が、Unicodeのコードになってしまうやつ

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>…