This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function onOpen() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var menuEntries = []; | |
| menuEntries.push({name: "リマインドメール", functionName: "mySendRemind"}); | |
| ss.addMenu("拡張", menuEntries); | |
| } | |
| function mySendRemind(e) { | |
| var sh = SpreadsheetApp.getActiveSheet(); | |
| var subject = "リマインドメール"; | |
| var body_tmp = "イベントの日が近づいて参りました。\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <事前準備> | |
| 事前にIaaSにてUbuntu14.04か14.10入りのサーバを作成(CoreOSでも可です。) | |
| 2つのベンダーでサーバを作りましょう。 | |
| FWやポートフォワードについてはSSHとHTTP用に外部からアクセスできるようにしておきます。 | |
| ポータビリティを確認するため、クラウドAからクラウドBへの接続に必要となる秘密鍵を事前にサーバに入れておきましょう | |
| apt-get updateとapt-get upgradeでOSを更新 | |
| apt-get install docker.io で稼働環境の準備はおしまいです。 | |
| <デモ手順> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| install: --no-doc | |
| update: --no-doc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:trusty | |
| ENV DEBIAN_FRONTEND noninteractive | |
| # update, curl | |
| RUN apt-get update | |
| RUN apt-get -y install git cmake libssl-dev libyaml-dev libuv-dev build-essential | |
| # install h2o | |
| RUN git clone https://github.com/h2o/h2o \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| id=12 | |
| size=$(xinput list $id | grep disabled | wc -l) | |
| if [ $size -eq 0 ]; then | |
| xinput disable $id | |
| else | |
| xinput enable $id | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| ) | |
| func handler(w http.ResponseWriter, r *http.Request) { | |
| fmt.Fprintf(w, "%s", r.URL.Path[1:]) | |
| fmt.Println("Request: %s", r.URL.Path[1:]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| az group create --name pakueacinodered --location westus | |
| az container create --name nodered --image nodered/node-red-docker --resource-group pakueacinodered --port 1880 --ip-address public | |
| az container show --name nodered --resource-group pakueacinodered |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| az group create -n pakueacinodered --location westus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 名前をの設定 | |
| ACR_NAME=pakuecontainerus | |
| RG_NAME=pakuecontainerregistry | |
| AKV_NAME=$ACR_NAME-vault | |
| ACI_NAMe $ACI_NAME | |
| # レジストリの作成 | |
| az acr create --resource-group $RG_NAME --name $ACR_NAME --location eastus --sku Basic | |
| # Dockerfileのダウンロード |