Skip to content

Instantly share code, notes, and snippets.

View sanemat's full-sized avatar
🍢

Matt Murahashi Kenichi sanemat

🍢
View GitHub Profile
@sanemat
sanemat / battle.txt
Created September 13, 2014 16:21
戦闘力
$ be bin/github_scouter sanemat
戦闘力: 1568
攻撃力: 1187 知力: 154 すばやさ: 227
# repositories (193)
1. Ruby 116
2. JavaScript 25
3. Shell 8
RUN apt-get install -y libcurl4-gnutls-dev re2c m4 libmcrypt-dev libtidy-dev
RUN curl -O http://launchpadlibrarian.net/140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb
RUN curl -O http://launchpadlibrarian.net/140087282/bison_2.7.1.dfsg-1_amd64.deb
RUN dpkg -i libbison-dev_2.7.1.dfsg-1_amd64.deb
RUN dpkg -i bison_2.7.1.dfsg-1_amd64.deb
RUN apt-mark hold libbison-dev
RUN apt-mark hold bison
# http://ubuntuserverguide.com/2014/06/how-to-install-lamp-in-ubuntu-server-14-04-lts.html
RUN apt-get install php5 php5-mysql php-pear php5-gd php5-mcrypt php5-curl
RUN php5enmod mcrypt
@sanemat
sanemat / amazon.txt
Created October 1, 2014 05:54
kadokawa
プログラマの考え方がおもしろいほど身につく本
アカマイ
氷菓
シェルスクリプト高速開発手法入門
RDG レッドデータガール
プログラミング言語Dart
実践的TypeScript入門
鹿の王
紅殻のパンドラ
Google Compute Engine入門
$ s3fs --version
Amazon Simple Storage Service File System 1.76

Expect

matchの複数指定をこう書きたい

<match docker.host.** reformed.docker.containers.** nginx.access.** nginx.error.**>
  type forest
  subtype file_alternative
  <template>
    path /var/log/td-agent/%Y%m%d/${tag}.log.%Y%m%dT%H%M
@sanemat
sanemat / fontforge.txt
Created November 26, 2014 18:50
fontforge
PYTHON_CFLAGS=$(python-config --includes) PYTHON_LIBS=$(python-config --libs) brew install fontforge
  • docker remote apiをrubyから使う pros, cons
    • uuidっぽいものをnameに渡すとか
    • logspout をdocker -d じゃなくてsupervisordで動かすといいとか
    • fluentdへのログの流し方とか
    • 環境変数でyamlの受け渡しとか
    • exconってなんだよ! faradayかnet-httpかhttpartyかopen-uri使ってくれよ が それとなく使えるようになった話
  • whitequark/parser 使おうとしてうまくいかなかった話
  • いろんな会社/チームに使ってもらおうと訪問してる話
  • houndciをherokuで動かせるんじゃないかな? que[kei - kay]の話
@sanemat
sanemat / json-1-8-0.txt
Created January 22, 2015 11:37
json-1-8-0-with-bundler-1.7.12
```
$ bundle
Fetching gem metadata from https://rubygems.org/.......
Fetching git://github.com/lsegal/yard
Installing rake 10.1.0
Installing RedCloth 4.2.9
Installing i18n 0.6.5
Installing minitest 4.7.5
Installing multi_json 1.7.9
Installing atomic 1.1.13
@sanemat
sanemat / js-support.markdown
Last active August 29, 2015 14:15
lintとか #tng15

Lint for JavaScript

  • eslint
  • jscs
  • jshint
  • jslint
  • Closure Linter
  • coffeelint
  • tslint