Edge や IE での動作確認のため Microsoft からダウンロードした VirtualBox の VM をいい感じにセットアップするためのメモ。
- メインメモリー 4096MB
- ビデオメモリ 128MB
Edge や IE での動作確認のため Microsoft からダウンロードした VirtualBox の VM をいい感じにセットアップするためのメモ。
var express = require('express'); | |
var router = express.Router(); | |
const AA = `| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
#!/usr/bin/env bash | |
# fresh-chrome | |
# | |
# Use this script on OS X to launch a new instance of Google Chrome | |
# with its own empty cache, cookies, and user configuration. | |
# | |
# The first time you run this script, it will launch a new Google | |
# Chrome instance with a permanent user-data directory, which you can | |
# customize below. Perform any initial setup you want to keep on every |
const http = require('http') | |
const spawn = require('child_process').spawn | |
http.get('http://localhost:4040/api/tunnels', res => { | |
let rawData = '' | |
res.on('data', chunk => { rawData += chunk; }) | |
res.on('end', () => { | |
JSON.parse(rawData).tunnels | |
.filter(t => t.proto === 'https') | |
.forEach(t => { spawn('open', [t.public_url]) }) |
# patch angular-cli@1.0.0-rc.0 to use pug. | |
# see "Revisions" for older angular-cli. | |
# usage: patch -p0 < angular-cli-pug.patch | |
# npm install --save-dev apply-loader pug-loader | |
# source: https://github.com/angular/angular-cli/issues/1886#issuecomment-280923201 | |
--- node_modules/@angular/cli/models/webpack-configs/common.js.orig 2017-02-25 16:30:09.000000000 +0900 | |
+++ node_modules/@angular/cli/models/webpack-configs/common.js 2017-03-02 13:21:10.000000000 +0900 | |
@@ -72,6 +72,7 @@ function getCommonConfig(wco) { | |
{ enforce: 'pre', test: /\.js$/, loader: 'source-map-loader', exclude: [nodeModules] }, |
カメラを使えるようにする:
フルスクリーンモードにするため:
日本語フォントを追加する:
FROM ubuntu:xenial | |
RUN apt-get -y update | |
RUN apt-get -y install curl clang libicu-dev python-dev | |
RUN apt-get -y install libxml2 | |
RUN curl https://swift.org/builds/swift-3.0-preview-1/ubuntu1510/swift-3.0-preview-1/swift-3.0-preview-1-ubuntu15.10.tar.gz > /tmp/swift.tar.gz | |
RUN cd /opt && tar xzvf /tmp/swift.tar.gz | |
RUN apt-get -y install vim git |
Kritaでやりたいこと、できたことのメモ。 ブログとかに書くための下書き。
AWS で動いている nginx のログを fluentd で S3 に転送している状態で、 ログを Elastic Search に飛ばして Kibana 3 で眺めるまでの流れ。