2020-05-01から1ヶ月間の記事一覧

typescript elasticsearch helloworld

make project dir mkdir sample open vscode code sample make docker-compose.yml docker-compose.yml ``` version: "3" services: app: image: node volumes: - .:/app working_dir: /app depends_on: - elasticsearch tty: true elasticsearch: image: do…

typescript mongodb helloworld

make project dir mkdir sample open vscode code sample make docker-compose.yml docker-compose.yml ``` version: "3" services: app: image: node volumes: - .:/app working_dir: /app depends_on: - mongo tty: true mongo: image: mongo ports: - 270…

metabaseをdockerで試す

ようこそ画面が映るまで プロジェクト用のディレクトリを作る mkdir metabase-sample cd metabase-sample postgres用のdataディレクトリをつくる mkdir -p docker/postgres/data docker-compose.ymlを作る docker-compose.yml ``` version: '3' services: me…

ちょっとnodejsを試したいときにdockerで環境を作る

とりあえずnodejsを試したいときにdockerで環境を作る方法を書きました

ubuntuにコピペツールを入れる(CopyQの紹介)

CopyQというコピペツールを紹介します

chromeのconsoleからxpathを使いつつhrefを取ってくるワンライナー

ある特定のidの配下にあるaタグのhrefを全部取りたかった nodejsなりrubyなりで書けるが、よりお手軽にchrome上でしたかった やり方 xpathを使う $x('//*[@id="target_dom_id"]//a/@href').map((href) => {return href.value}) 解説 chromeでは$x()でxpathか…