Skip to content

Instantly share code, notes, and snippets.

View yssk22's full-sized avatar

yssk22 yssk22

View GitHub Profile
cc_text_size "0"
cl_deathhints_enabled "1"
cl_fovScale "1.40857"
cl_safearea "0"
closecaption "0"
clubs_showInvites "1"
colorblind_mode "0"
CrossPlay_user_optin "1"
damage_indicator_style_pilot "1"
disable_player_use_prompts "0"

Docker Overview

こんな人に有効

  • Linux 使ってるけど vagrant とか Virtual Box とか時間かかってめんどい
  • VM 作りまくって何が何だかわからなくなった
  • Warden が動かない, Buildpack なにそれおいしいの?
  • Go!

note: Ubuntu 12.04 (linux-image-3.8.0-23-generic) 使ってます。 Kernel 3.5 以前では安定しない模様。

@yssk22
yssk22 / time.Sleep.go
Created May 6, 2013 11:39
うごかないぉ
package main
import (
"log"
"syscall"
"os"
"os/signal"
"time"
)
@yssk22
yssk22 / Golan あれこれ.md
Last active December 17, 2015 00:39
Golang あれこれ

コマンドライン引数

サンプル

  path := flag.String("config", "/etc/pt-client.conf", "path to configuration file")
  flag.Parse()

実行

@yssk22
yssk22 / gist:5128840
Created March 10, 2013 14:47
CloudFoundry JP 温泉ハッカソン #1
@yssk22
yssk22 / vcap_dea.log
Created December 9, 2012 15:47
DEA_NG + Warden Errors
{"timestamp":1355066691.819268,"message":"Moved droplet to /var/opt/vcap/local/dea/droplets/fd0f84f21f1eee3489ccc65325ff1c5a22483e8e/droplet.tgz","log_level":"debug","source":"Dea::Droplet","data":{"droplet_sha1":"fd0f84f21f1eee3489ccc65325ff1c5a22483e8e"},"thread_id":10320740,"fiber_id":22243240,"process_id":6106,"file":"/opt/vcap/vcap_dea/lib/dea/droplet.rb","lineno":66,"method":"block in download"}
{"timestamp":1355066691.8250575,"message":"#<EventMachine::Warden::Client::Connection::CommandResult:0x00000002594f00 @value=#<EventMachine::Warden::Client::Error: command exited with failure>>","log_level":"debug2","source":"Dea::Instance","data":{"instance_id":"425b8135688af0c9926459403ed5306b","instance_index":0,"application_id":"1","application_version":"fd0f84f21f1eee3489ccc65325ff1c5a22483e8e-2","application_name":"wake-me-up"},"thread_id":10320740,"fiber_id":22243240,"process_id":6106,"file":"/opt/vcap/vcap_dea/lib/dea/task.rb","lineno":86,"method":"block (2 levels) in promise_warden_call"}
{"timestamp":1
@yssk22
yssk22 / gist:2717536
Created May 17, 2012 08:58
MLで盛り上がったNATSについて #cfcrjp #6
@yssk22
yssk22 / MLで盛り上がったNATSについて.rst
Created May 17, 2012 08:58
MLで盛り上がったNATSについて #cfcrjp #6
@yssk22
yssk22 / s3_pool.rb
Created March 24, 2012 09:32
Cloud Controller Resource Pool wiht S3
#
# Author: Yohei Sasaki <[email protected]>
#
require 'resource_pool/resource_pool'
require 'aws/s3'
require 'tmpdir'
#
# A resource pool implementation to use S3.
@yssk22
yssk22 / .vmc_token
Created March 24, 2012 04:32
.vmc_token
{
"http://api.cloud.yssk22.info":"xxxx",
"http://api.ec2.yssk22.info":"xxxx",
"http://api.aws-cf.yssk22.info":"xxxx",
"http://api.ec2-cf.yssk22.info":"xxxx",
"http://api.vcap.me":"xxxx",
"http://api.s3-support.yssk22.info":"xxxx",
"http://api.org-support.yssk22.info":"xxxx",
"http://api.flexible-routing.yssk22.info":"xxxx"
}