このエントリーをはてなブックマークに追加

どこの環境にもGoogle日本語入力を入れた時に感じているのが Ctrl + Spaceで日本語と英語を切り替えることがとても煩雑だということ。

実は、Google日本語は設定をエクスポートインポートできることに気がついた。 設定覚えて置くのは、面倒だし、設定するのは一回なんだけど、 そのためにGoogle先生に聞くのは、何だと思うのでGistとPrivate GithubにConfigurationを上げておいた。

ご入用の方は、適当に拾って使ってくだされ。

ダウンロードはこちらから

pub 4096R/102EFFB8 2017-04-02 Kyohei Moriyama (sasukeh) flogofrein@gmail.com
Primary key fingerprint: 2BE2 1FA9 8F72 C692 1E37 6072 5440 EEBA 102E FFB8


このエントリーをはてなブックマークに追加

Azureポータルを触りつくして、その後に見えてくるのは、運用の自動化などではないだろうか 単にクラウドとはいっても、他社と差別化を図りたければ、運用の自動化をするなどして 人件費を減らしていく必要がある。

Azure CLIについては、以前触れたが、Python実装であり、かなり高速に実装されている印象がある。 とくに非同期実行に関しては、それほど触れられていないが大量のサーバをデプロイしたり、 Azureのスケールアウトを高速に実行する場合に役にたつ。そのためAzure CLIには、–no-waitのオプションがついている。

たとえば、すべてのリソースグループを消したいなどの要望があるだろう。 そのような場合、–no-waitオプションを使うと、かなり効率的にリソースの削除ができる。

az group list |grep name | awk '{print $2}' | sed 's/,//g' | xargs -i az group delete --yes --no-wait -n {} --debug

これは一例だが、VMを大量に立てたい場合や、予想していなかった急激なトラフィックの上昇、もしくは Bash Scriptingにおいて、waitを待たずに他のリソースも平行して準備したい場合に有効であると考える。

以上

pub 4096R/102EFFB8 2017-04-02 Kyohei Moriyama (sasukeh) flogofrein@gmail.com
Primary key fingerprint: 2BE2 1FA9 8F72 C692 1E37 6072 5440 EEBA 102E FFB8


このエントリーをはてなブックマークに追加

2017/04/21時点でのDocker subcommand memo

➜  ~ docker
attach     -- Attach to a running container
build      -- Build an image from a Dockerfile
commit     -- Create a new image from a container's changes
container  -- Manage containers
cp         -- Copy files/folders between a container and the local filesystem
create     -- Create a new container
daemon     -- Enable daemon mode
diff       -- Inspect changes to files or directories on a container's filesystem
events     -- Get real time events from the server
exec       -- Run a command in a running container
export     -- Export a container's filesystem as a tar archive
help       -- Show help for a command
history    -- Show the history of an image
image      -- Manage images
images     -- List images
import     -- Import the contents from a tarball to create a filesystem image
info       -- Display system-wide information
inspect    -- Return low-level information on Docker objects
kill       -- Kill one or more running containers
load       -- Load an image from a tar archive or STDIN
login      -- Log in to a Docker registry
logout     -- Log out from a Docker registry
logs       -- Fetch the logs of a container
network    -- Manage networks
node       -- Manage Swarm nodes
pause      -- Pause all processes within one or more containers
plugin     -- Manage plugins
port       -- List port mappings or a specific mapping for the container
ps         -- List containers
pull       -- Pull an image or a repository from a registry
push       -- Push an image or a repository to a registry
rename     -- Rename a container
restart    -- Restart one or more containers
rm         -- Remove one or more containers
rmi        -- Remove one or more images
run        -- Run a command in a new container
save       -- Save one or more images to a tar archive (streamed to STDOUT by default)
search     -- Search the Docker Hub for images
secret     -- Manage Docker secrets
service    -- Manage services
stack      -- Manage Docker stacks
start      -- Start one or more stopped containers
stats      -- Display a live stream of container(s) resource usage statistics
stop       -- Stop one or more running containers
swarm      -- Manage Swarm
system     -- Manage Docker
tag        -- Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top        -- Display the running processes of a container
unpause    -- Unpause all processes within one or more containers
update     -- Update configuration of one or more containers
version    -- Show the Docker version information
volume     -- Manage volumes
wait       -- Block until one or more containers stop, then print their exit codes

pub 4096R/102EFFB8 2017-04-02 Kyohei Moriyama (sasukeh) flogofrein@gmail.com
Primary key fingerprint: 2BE2 1FA9 8F72 C692 1E37 6072 5440 EEBA 102E FFB8


このエントリーをはてなブックマークに追加

メモ。


➜  ~ azure location list | grep -i location | grep data | awk '{print$2" : "$4}'
Location : eastasia
Location : southeastasia
Location : centralus
Location : eastus
Location : eastus2
Location : westus
Location : northcentralus
Location : southcentralus
Location : northeurope
Location : westeurope
Location : japanwest
Location : japaneast
Location : brazilsouth
Location : australiaeast
Location : australiasoutheast
Location : southindia
Location : centralindia
Location : westindia
Location : canadacentral
Location : canadaeast
Location : uksouth
Location : ukwest
Location : westcentralus
Location : westus2
Location : koreacentral
Location : koreasouth

pub 4096R/102EFFB8 2017-04-02 Kyohei Moriyama (sasukeh) flogofrein@gmail.com
Primary key fingerprint: 2BE2 1FA9 8F72 C692 1E37 6072 5440 EEBA 102E FFB8


このエントリーをはてなブックマークに追加

As you might know, jeykill is one of static web creator. At the biggining, Jeykill try to create parth html file within ruby scripting. if you use oh-my-zsh and zsh, you could see following result.

If you wanna add something, you must use it as easist way.

pub 4096R/102EFFB8 2017-04-02 Kyohei Moriyama (sasukeh) flogofrein@gmail.com
Primary key fingerprint: 2BE2 1FA9 8F72 C692 1E37 6072 5440 EEBA 102E FFB8


このエントリーをはてなブックマークに追加

gpgの鍵が使えないという旨のエラーが出る。 下記の設定が必ず必要らしい。

git config user.signingkey xxxxxxx

Or もしすべてのrepositoryで鍵を使えるようにしておきたい場合
#鍵をつけてcommitするのは、任意なので。 自分がSignatureとかsignとか残しておきたいのであれば、 -Sをつけてcommitすればいいだけのこと。

git config --global user.signingkey xxxxxxxx

以上、よろしくです。

pub 4096R/102EFFB8 2017-04-02 Kyohei Moriyama (sasukeh) flogofrein@gmail.com
Primary key fingerprint: 2BE2 1FA9 8F72 C692 1E37 6072 5440 EEBA 102E FFB8


git gui

  • 2017-04-07
このエントリーをはてなブックマークに追加

Git guiというものがあるらしい。

#apt install git gui

下記のコマンドで起動する。

-> ~git gui

pub 4096R/102EFFB8 2017-04-02 Kyohei Moriyama (sasukeh) flogofrein@gmail.com
Primary key fingerprint: 2BE2 1FA9 8F72 C692 1E37 6072 5440 EEBA 102E FFB8


このエントリーをはてなブックマークに追加

VSCodeが1.11.1にupgradeされました!

➜  ~ code -v
1.11.0
9122ec4b1068bd391e41974f46a4b54c1b9c90f9
➜  ~ code -v
1.11.1
d9484d12b38879b7f4cdd1150efeb2fd2c1fbf39
➜  ~ 

pub 4096R/102EFFB8 2017-04-02 Kyohei Moriyama (sasukeh) flogofrein@gmail.com
Primary key fingerprint: 2BE2 1FA9 8F72 C692 1E37 6072 5440 EEBA 102E FFB8


このエントリーをはてなブックマークに追加

気になっていたんだけど、現在(2017-04-07)ubuntuで使えるbusyboxのツール群は、以下の感じになっています。

ip commandもbusyboxに入っているあたりがナウいなという気持ちです。 しかも、viも入っている。だけど、ssl,sshなどが入っていないあたりがセキュアなものを意識しているなと。でもtelnetdは入ってるのは、わかっていて使うというなにか。ほんで今日の収穫は、yoctoが素晴らしい進捗を持っていることです。ここ数年間でしっかり進化しているし、コミュニティの熟成もできている。組み込みファンとして嬉しい。

➜  ~ busybox 
BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2012.
Licensed under GPLv2. See source distribution for detailed
copyright notices.

Usage: busybox [function [arguments]...]
   or: busybox --list[-full]
   or: busybox --install [-s] [DIR]
   or: function [arguments]...

	BusyBox is a multi-call binary that combines many common Unix
	utilities into a single executable.  Most people will create a
	link to busybox for each function they wish to use and BusyBox
	will act like whatever it was invoked as.

Currently defined functions:
	[, [[, acpid, adjtimex, ar, arp, arping, ash, awk, basename, blockdev,
	brctl, bunzip2, bzcat, bzip2, cal, cat, chgrp, chmod, chown, chpasswd,
	chroot, chvt, clear, cmp, cp, cpio, crond, crontab, cttyhack, cut,
	date, dc, dd, deallocvt, depmod, devmem, df, diff, dirname, dmesg,
	dnsdomainname, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases,
	echo, ed, egrep, env, expand, expr, false, fdisk, fgrep, find, fold,
	free, freeramdisk, fstrim, ftpget, ftpput, getopt, getty, grep, groups,
	gunzip, gzip, halt, head, hexdump, hostid, hostname, httpd, hwclock,
	id, ifconfig, ifdown, ifup, init, insmod, ionice, ip, ipcalc, kill,
	killall, klogd, last, less, ln, loadfont, loadkmap, logger, login,
	logname, logread, losetup, ls, lsmod, lzcat, lzma, lzop, lzopcat,
	md5sum, mdev, microcom, mkdir, mkfifo, mknod, mkswap, mktemp, modinfo,
	modprobe, more, mount, mt, mv, nameif, nc, netstat, nslookup, od,
	openvt, passwd, patch, pidof, ping, ping6, pivot_root, poweroff,
	printf, ps, pwd, rdate, readlink, realpath, reboot, renice, reset, rev,
	rm, rmdir, rmmod, route, rpm, rpm2cpio, run-parts, sed, seq,
	setkeycodes, setsid, sh, sha1sum, sha256sum, sha512sum, sleep, sort,
	start-stop-daemon, stat, static-sh, strings, stty, su, sulogin,
	swapoff, swapon, switch_root, sync, sysctl, syslogd, tac, tail, tar,
	taskset, tee, telnet, telnetd, test, tftp, time, timeout, top, touch,
	tr, traceroute, traceroute6, true, tty, tunctl, udhcpc, udhcpd, umount,
	uname, uncompress, unexpand, uniq, unix2dos, unlzma, unlzop, unxz,
	unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, watch,
	watchdog, wc, wget, which, who, whoami, xargs, xz, xzcat, yes, zcat

pub 4096R/102EFFB8 2017-04-02 Kyohei Moriyama (sasukeh) flogofrein@gmail.com
Primary key fingerprint: 2BE2 1FA9 8F72 C692 1E37 6072 5440 EEBA 102E FFB8


このエントリーをはてなブックマークに追加

I investigated Azure available instance now. I could catch some information right here. However, you would get different result since the subscription is totally different from yours.

➜  ~ az vm list-sizes -l japan-east |grep name
    "name": "Standard_A0",
    "name": "Standard_A1",
    "name": "Standard_A2",
    "name": "Standard_A3",
    "name": "Standard_A5",
    "name": "Standard_A4",
    "name": "Standard_A6",
    "name": "Standard_A7",
    "name": "Basic_A0",
    "name": "Basic_A1",
    "name": "Basic_A2",
    "name": "Basic_A3",
    "name": "Basic_A4",
    "name": "Standard_D1_v2",
    "name": "Standard_D2_v2",
    "name": "Standard_D3_v2",
    "name": "Standard_D4_v2",
    "name": "Standard_D5_v2",
    "name": "Standard_D11_v2",
    "name": "Standard_D12_v2",
    "name": "Standard_D13_v2",
    "name": "Standard_D14_v2",
    "name": "Standard_D15_v2",
    "name": "Standard_D2_v2_Promo",
    "name": "Standard_D3_v2_Promo",
    "name": "Standard_D4_v2_Promo",
    "name": "Standard_D5_v2_Promo",
    "name": "Standard_D11_v2_Promo",
    "name": "Standard_D12_v2_Promo",
    "name": "Standard_D13_v2_Promo",
    "name": "Standard_D14_v2_Promo",
    "name": "Standard_F1",
    "name": "Standard_F2",
    "name": "Standard_F4",
    "name": "Standard_F8",
    "name": "Standard_F16",
    "name": "Standard_A1_v2",
    "name": "Standard_A2m_v2",
    "name": "Standard_A2_v2",
    "name": "Standard_A4m_v2",
    "name": "Standard_A4_v2",
    "name": "Standard_A8m_v2",
    "name": "Standard_A8_v2",
    "name": "Standard_DS1_v2",
    "name": "Standard_DS2_v2",
    "name": "Standard_DS3_v2",
    "name": "Standard_DS4_v2",
    "name": "Standard_DS5_v2",
    "name": "Standard_DS11_v2",
    "name": "Standard_DS12_v2",
    "name": "Standard_DS13_v2",
    "name": "Standard_DS14_v2",
    "name": "Standard_DS15_v2",
    "name": "Standard_DS2_v2_Promo",
    "name": "Standard_DS3_v2_Promo",
    "name": "Standard_DS4_v2_Promo",
    "name": "Standard_DS5_v2_Promo",
    "name": "Standard_DS11_v2_Promo",
    "name": "Standard_DS12_v2_Promo",
    "name": "Standard_DS13_v2_Promo",
    "name": "Standard_DS14_v2_Promo",
    "name": "Standard_F1s",
    "name": "Standard_F2s",
    "name": "Standard_F4s",
    "name": "Standard_F8s",
    "name": "Standard_F16s",
    "name": "Standard_DS1",
    "name": "Standard_DS2",
    "name": "Standard_DS3",
    "name": "Standard_DS4",
    "name": "Standard_DS11",
    "name": "Standard_DS12",
    "name": "Standard_DS13",
    "name": "Standard_DS14",
    "name": "Standard_A8",
    "name": "Standard_A9",
    "name": "Standard_A10",
    "name": "Standard_A11",
    "name": "Standard_D1",
    "name": "Standard_D2",
    "name": "Standard_D3",
    "name": "Standard_D4",
    "name": "Standard_D11",
    "name": "Standard_D12",
    "name": "Standard_D13",
    "name": "Standard_D14",
    "name": "Standard_G1",
    "name": "Standard_G2",
    "name": "Standard_G3",
    "name": "Standard_G4",
    "name": "Standard_G5",
    "name": "Standard_GS1",
    "name": "Standard_GS2",
    "name": "Standard_GS3",
    "name": "Standard_GS4",
    "name": "Standard_GS5",
    "name": "Standard_L4s",
    "name": "Standard_L8s",
    "name": "Standard_L16s",
    "name": "Standard_L32s",
➜  ~ az vm list-sizes -l japan-west |grep name
    "name": "Standard_A0",
    "name": "Standard_A1",
    "name": "Standard_A2",
    "name": "Standard_A3",
    "name": "Standard_A5",
    "name": "Standard_A4",
    "name": "Standard_A6",
    "name": "Standard_A7",
    "name": "Basic_A0",
    "name": "Basic_A1",
    "name": "Basic_A2",
    "name": "Basic_A3",
    "name": "Basic_A4",
    "name": "Standard_DS1_v2",
    "name": "Standard_DS2_v2",
    "name": "Standard_DS3_v2",
    "name": "Standard_DS4_v2",
    "name": "Standard_DS5_v2",
    "name": "Standard_DS11_v2",
    "name": "Standard_DS12_v2",
    "name": "Standard_DS13_v2",
    "name": "Standard_DS14_v2",
    "name": "Standard_DS15_v2",
    "name": "Standard_DS2_v2_Promo",
    "name": "Standard_DS3_v2_Promo",
    "name": "Standard_DS4_v2_Promo",
    "name": "Standard_DS5_v2_Promo",
    "name": "Standard_DS11_v2_Promo",
    "name": "Standard_DS12_v2_Promo",
    "name": "Standard_DS13_v2_Promo",
    "name": "Standard_DS14_v2_Promo",
    "name": "Standard_DS1",
    "name": "Standard_DS2",
    "name": "Standard_DS3",
    "name": "Standard_DS4",
    "name": "Standard_DS11",
    "name": "Standard_DS12",
    "name": "Standard_DS13",
    "name": "Standard_DS14",
    "name": "Standard_F1s",
    "name": "Standard_F2s",
    "name": "Standard_F4s",
    "name": "Standard_F8s",
    "name": "Standard_F16s",
    "name": "Standard_D1",
    "name": "Standard_D2",
    "name": "Standard_D3",
    "name": "Standard_D4",
    "name": "Standard_D11",
    "name": "Standard_D12",
    "name": "Standard_D13",
    "name": "Standard_D14",
    "name": "Standard_A1_v2",
    "name": "Standard_A2m_v2",
    "name": "Standard_A2_v2",
    "name": "Standard_A4m_v2",
    "name": "Standard_A4_v2",
    "name": "Standard_A8m_v2",
    "name": "Standard_A8_v2",
    "name": "Standard_D1_v2",
    "name": "Standard_D2_v2",
    "name": "Standard_D3_v2",
    "name": "Standard_D4_v2",
    "name": "Standard_D5_v2",
    "name": "Standard_D11_v2",
    "name": "Standard_D12_v2",
    "name": "Standard_D13_v2",
    "name": "Standard_D14_v2",
    "name": "Standard_D15_v2",
    "name": "Standard_D2_v2_Promo",
    "name": "Standard_D3_v2_Promo",
    "name": "Standard_D4_v2_Promo",
    "name": "Standard_D5_v2_Promo",
    "name": "Standard_D11_v2_Promo",
    "name": "Standard_D12_v2_Promo",
    "name": "Standard_D13_v2_Promo",
    "name": "Standard_D14_v2_Promo",
    "name": "Standard_F1",
    "name": "Standard_F2",
    "name": "Standard_F4",
    "name": "Standard_F8",
    "name": "Standard_F16",

pub 4096R/102EFFB8 2017-04-02 Kyohei Moriyama (sasukeh) flogofrein@gmail.com
Primary key fingerprint: 2BE2 1FA9 8F72 C692 1E37 6072 5440 EEBA 102E FFB8