Skip to content

Instantly share code, notes, and snippets.

View polidog's full-sized avatar
🌎

Ryota Mochizuki polidog

🌎
View GitHub Profile
@zonomasa
zonomasa / how_to_inistall_fluentd_on_ubuntu14.04
Created May 31, 2014 07:56
Ubuntu14.04 にfluentd をインストールする
## インストール
$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ rbenv install 2.1.2
$ gem install fluent
## 確認
@inokappa
inokappa / gist:4ed5dc4446205cbc9a64
Last active August 29, 2015 14:01
chef-solo で Sensu Server をインストールするメモ

前提

インストールした環境

  • AWS EC2 インスタンス
  • CentOS 6.5
  • ChefOmnibus Installer にてインストール済み
  • Chef Handlerschef-handler-graphiteGraphite とかで結果を可視化している(Sensu Server とはあまり関係無いw)

@proudlygeek
proudlygeek / commands-channel.go
Last active March 31, 2024 03:31
Golang Commands in Goroutines
package main
import (
"fmt"
"log"
"os/exec"
"runtime"
)
type Worker struct {

Atomコードリーディングメモ

ビルド方法

script/build

起動したらsrc/window-bootstrap.coffeeが起動時間のログを出してるので、そいつをgrepすると/src/broweser/atom-application.coffee が引っかかる。

src/broweser/atom-application.coffee は、 src/browser/main.coffee に呼ばれている

@cyk
cyk / EntityManagerMigration.php
Created April 8, 2014 18:29
EntityManagerMigration.php
<?php
namespace MyApp\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
@koba04
koba04 / api.md
Last active November 2, 2024 00:52
Vue.js note(v0.10.3). not translate. This is draft of https://github.com/koba04/vuejs-book .

API

Class: Vue

  • Vueはvue.jsのコアとなるコンストラクタ
  • インスタンスが作られたときにデータバインディングが開始される
  • オプションを取ることも出来て、DOMやデータやメソッドについて定義出来る

This is transolation written by me as Japanese about Vue.js

データバインディングについてVue.jsと Backbone.stickitを比較する - mizchi's blog http://mizchi.hatenablog.com/entry/2014/02/18/163721

My Engilish is not so good. So please teach me what to say is better.


This is resource to suite to use vue.js againt my compony so I blame Backbone.stickit :D

@egruz
egruz / SlackHandler.php
Last active July 17, 2016 15:24
Monolog Slack Handler
<?php
/*
* Monolog Slack Handler
*
* This adds the ability to post a message to your Chosen Slack channel easily with Monolog.
*
* Here is an example of using this handler:
* $logger->pushHandler(new SlackHandler("your-account-name", "your-token-code", "#your-channel-name", "name-to-post-message-as", "url-to-image-file", Logger::INFO, true));
*
@dlip
dlip / Capfile
Last active March 10, 2016 22:51
Capistrano 3 deploy notification email with git diff
require 'mail'
@tcnksm
tcnksm / docker_cheat.md
Last active January 14, 2025 15:09 — forked from wsargent/docker_cheat.md
Docker 虎の巻

Docker 虎の巻

何故Dockerを使うべきか

Why Should I Care (For Developers)

"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."