CASE WHEN
で行を列に変換し、GROUP_CONCAT
で連結する。
以下のテーブルがあったとする。
#!/bin/sh | |
ffmpeg -ss $1 -i "$2" -t $3 -codec:v copy -b:v 5000k "$4" |
- hosts: all | |
remote_user: eyasuyuki | |
sudo: yes | |
vars: | |
limits_conf: /etc/security/limits.conf | |
sysctl_conf: /etc/sysctl.conf | |
tasks: | |
- name: before install fluentd check ulimit | |
shell: grep "{{ item }}" {{ limits_conf }} | |
with_items: |
brew install youtube-dl
** Open Google Chrome
# from https://weblabo.oscasierra.net/python/keras-mnist-sample.html | |
import keras | |
from keras.datasets import mnist | |
from keras.models import Sequential | |
from keras.layers import Dense, Dropout, InputLayer | |
from keras.optimizers import RMSprop | |
# read MNIST | |
(x_train, y_train), (x_test, y_test) = mnist.load_data() |
2019/04/25に代官山で行われた【第4回】ReactNativeにゆかりのあるスタートアップが集う会にFlutter枠で応募して発表して来ました。
当時の模様は#RNstartupでたどれます。
mariadb-data: | |
image: busybox | |
volumes: | |
- /var/lib/mysql | |
container_name: mariadb-datastore | |
mariadb: | |
image: mariadb:latest | |
volumes_from: | |
- mariadb-data |
#!/bin/sh | |
if [ -z "$1" ]; then | |
echo "$0 <vm name>" | |
exit -1 | |
fi | |
docker-machine ssh $1 -- tce-load -wi python.tcz | |
docker-machine ssh $1 -- sudo ln -s /usr/local/bin/python /usr/bin/python | |
docker-machine ssh $1 -- 'curl https://bootstrap.pypa.io/get-pip.py | sudo python -' | |
docker-machine ssh $1 -- sudo pip install docker-py |
# -*- coding: utf-8 -*- | |
import sys | |
import commands | |
hosts = """\ | |
[docker] | |
{0} | |
""" |