Skip to content

Instantly share code, notes, and snippets.

View yuyalush's full-sized avatar

Yuya Yoshida yuyalush

View GitHub Profile
# 名前をの設定
ACR_NAME=pakuecontainerus
RG_NAME=pakuecontainerregistry
AKV_NAME=$ACR_NAME-vault
ACI_NAME=acr-builid
# レジストリの作成
az group create --location eastus --name $RG_NAME
az acr create --resource-group $RG_NAME --name $ACR_NAME --location eastus --sku Basic
# 名前をの設定
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のダウンロード
# 名前をの設定
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のダウンロード
@yuyalush
yuyalush / file0.txt
Last active October 27, 2017 06:39
AzureでNode-REDを手っ取り早く動かす方法 ref: http://qiita.com/yuyalush/items/e081da453bd7a3cb7cd6
az group create -n pakueacinodered --location westus
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
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:])

簡単に豪華Webサイト作成術

外部サービスと組み合わせた

企業サイト作成とお悩み相談会

日本マイクロソフト / 吉田 雄哉
@yuyalush
yuyalush / touchpad
Created April 1, 2016 21:47
タッチパッドに振れると動くので、一時的にとめるシェルスクリプト。xinputでidを探しておき、書き換えること。
#! /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
@yuyalush
yuyalush / Dockerfile
Created August 21, 2015 08:35
H20 container
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 \
install: --no-doc
update: --no-doc