mecab インスコ.sh

docker とか circleci とかも、こんな感じでイケるはず。
元が Google drive なので注意です ⚠
(https://mecab.googlecode.com/files/mecab-0.996.tar.gz とかはもう 404 っぽい)

#!/bin/bash

if [ ! -e /usr/local/bin/mecab ]; then
  # Install mecab
  cd /var/tmp
  curl -L -o mecab-0.996.tar.gz "https://drive.google.com/uc?id=0B4y35FiV1wh7cENtOXlicTFaRUE&export=download"
  tar zxfv mecab-0.996.tar.gz
  cd mecab-0.996
  ./configure
  make
  sudo make install

  # load mecab.so
  sudo sh -c "echo '/usr/local/lib' >> /etc/ld.so.conf"
  sudo ldconfig

  # Install mecab-ipadic
  cd /var/tmp
  curl -L -o mecab-ipadic-2.7.0-20070801.tar.gz "https://drive.google.com/uc?id=0B4y35FiV1wh7MWVlSDBCSXZMTXM&export=download"
  tar zxfv mecab-ipadic-2.7.0-20070801.tar.gz
  cd mecab-ipadic-2.7.0-20070801
  ./configure --with-charset=utf8
  make
  sudo make install
fi

かわいいログインフォーム集

かわいい

実際に使われているページ

dash.readme.io

npm

JS, CSS での実装例

codepen.io

今度ログインページとかつくるときに

なんかこういうのやりたい

MySQL8.0 on Docker

# 最新版もってくる
# https://dev.mysql.com/doc/relnotes/mysql/8.0/en/
$ docker pull mysql:8.0.4

# 確認
$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
mysql               8.0.4               96dd4fed4359        6 weeks ago         291MB

# 起動
$ docker run --name mysql8 -e MYSQL_ROOT_PASSWORD=wak9wa9 -d --rm mysql:8.0.4

# 確認
$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES
da8a09c01b01        mysql:8.0.4         "docker-entrypoint.s…"   2 seconds ago       Up 10 seconds       3306/tcp            mysql8

# 接続
$ docker exec -it mysql8 mysql -uroot -pwa9wa9
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 8.0.4-rc-log MySQL Community Server (GPL)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> select version() as mysql_version;
+---------------+
| mysql_version |
+---------------+
| 8.0.4-rc-log  |
+---------------+
1 row in set (0.00 sec)

# MySQL クライアントがなくてもこれでイケる
$ docker run -it -v $HOME/tmp/mysql8/:/var/host --link mysql8:mysql --rm mysql:8.0.4 sh -c 'exec mysql -h mysql -uroot -pwa9wa9 -P3306'

-v オプションがミソっぽい (docker で立ち上げたコンテナの上に、ホストのソースコードをバインドマウントする)

これで 違うconf 読み込むとかもできる

# カスタム conf
$ cat /tmp/custom.cnf
[mysqld]
default_authentication_plugin= mysql_native_password

# conf 指定、port 変更
$ docker run -v $HOME/tmp/:/etc/mysql/conf.d --name mysql8 -e MYSQL_ROOT_PASSWORD=wa9wa9 -d -p 13306:3306 --rm mysql:8.0.4

# これで localhost の MySQLクライアントからも接続できる
$ mysql -u root -p -h 127.0.0.1 -P 13306

REF

ローソンのスイーツこれうまい part2

ホワイトチョコレートいちご大福 180円(税込)

f:id:whitech0c0late:20180806165417p:plain

https://www.lawson.co.jp/recommend/original/detail/1323429_1996.htmlwww.lawson.co.jp

めっちゃおいしいけど、めっちゃ粉落ちる 🍓