- コンテナの内部で集約する
- e.g. fluentd、rsyslog等を各コンテナ内に立てる
- e.g. 単純にファイルに保存する
- コンテナの外部で集約する
- e.g. ホスト側にfluentd、rsyslog等を起動して、各コンテナがマウントしたログファイルをtail等で読む
- e.g. ホスト側にマウントしてファイルに保存する
#!/bin/sh | |
PREFIX="from now" | |
MESSAGE="[${PREFIX}] `date +\"%Y/%m/%d %T\"`" | |
get_amend() { | |
if [ -z `git log --pretty=oneline -1 | cut -d " " -f 2- | grep "^\[${PREFIX}]"` ] | |
then | |
return 1 | |
fi |
NeoBundle 'rhysd/vim-clang-format' | |
NeoBundle 'Shougo/vimproc' | |
NeoBundle 'itchyny/lightline.vim' | |
NeoBundle "thinca/vim-quickrun" | |
NeoBundle "osyo-manga/shabadou.vim" | |
NeoBundle "osyo-manga/vim-watchdogs" | |
NeoBundle "jceb/vim-hier" | |
NeoBundle "yonchu/quickfixstatus" | |
" :WatchdogsRun後にlightline.vimを更新 |
NeoBundle "osyo-manga/unite-quickfix.git" | |
" ------ unite-quickfix ------ | |
command UniteQuickFix Unite -no-quit -vertical -winwidth=40 -max-multi-lines=1 quickfix | |
function! s:open_quickfix_with_ggrep(...) | |
let _ = join(a:000, " ") | |
execute ":Ggrep "._ | redraw! | |
if (len(getqflist()) > 0) | |
execute ":UniteQuickFix" | |
endif |
au BufNewFile,BufRead *.rb,*.haml,*.erb,*.slim set nowrap tabstop=2 shiftwidth=2 | |
au BufNewFile,BufRead *.cpp,*.h,*.hpp,*.cc set nowrap tabstop=4 shiftwidth=4 |
using UnityEngine; | |
using System.Linq; | |
public static class GizmosArrowDrawer | |
{ | |
public static void Draw(Vector3 pos, Vector3 direction, float arrowHeadLength = 0.25f, float arrowHeadAngle = 20.0f) | |
{ | |
Gizmos.DrawRay(pos, direction); | |
Vector3 right = Quaternion.LookRotation(direction) * Quaternion.Euler(0, 180 + arrowHeadAngle, 0) * new Vector3(0, 0, 1); |
using UnityEngine; | |
using UnityEditor; | |
[CustomEditor(typeof(MeshFilter))] | |
public class MeshInformation : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ | |
var filter = target as MeshFilter; | |
string message = "Triangles: " + filter.sharedMesh.triangles.Length / 3 + " Vertices: " + filter.sharedMesh.vertices.Length; |
#!/usr/bin/python -u | |
import sys | |
import os | |
import getopt | |
from supervisor import childutils | |
from datetime import datetime | |
class ProcessStateNotifier: |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |