Skip to content

Instantly share code, notes, and snippets.

View koizuss's full-sized avatar

Takeshi Koizumi koizuss

View GitHub Profile
@koizuss
koizuss / file0.yml
Created February 8, 2017 03:01
Wercker上でprivateリポジトリのsubmodule ref: http://qiita.com/koizuss@github/items/8aed954bd10a8e64fca8
build:
steps:
# ...
# `git` `openssh-client` がないboxの場合は事前にインストール
- script:
name: package install
code: |
yum install -y git openssh-client
# see http://devcenter.wercker.com/docs/git/submodules
- add-ssh-key:
@koizuss
koizuss / file0.js
Last active August 14, 2016 11:39
material-uiでDialog内にTextFieldを置くとフォーカスがおかしくなる問題 ref: http://qiita.com/koizuss@github/items/ddd656cbafd888f179d6
import React, {Component} from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
export default class Component extends Component {
constructor(props, context) {
super(props, context);
@koizuss
koizuss / file0.txt
Created August 13, 2016 23:14
neocomplete + vim-markdown で 「foldmethod=expr」エラーを解消 ref: http://qiita.com/koizuss@github/items/db0c354b6ed7ef019ae3
[neocomplete] foldmethod=expr
@koizuss
koizuss / file0.scala
Last active August 12, 2016 12:46
Slick (play-slick) でクエリの共有 ref: http://qiita.com/koizuss@github/items/7e5cc8a566736b056e29
package repositories
import javax.inject.Inject
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future
import play.api.db.slick.{DatabaseConfigProvider, HasDatabaseConfigProvider}
import com.google.inject.ImplementedBy
@koizuss
koizuss / provision
Created August 22, 2015 05:48
provision scripts
#/bin/sh -e
BASE_DIR=$(cd $(dirname $0) && pwd)
PROCESSED=$BASE_DIR/.processed
SCRIPTS=$BASE_DIR/scripts
[ ! -d $SCRIPTS ] && echo "ERROR: scripts not found" && exit 1
[ ! -d $PROCESSED ] && mkdir $PROCESSED
for it in $(ls -l $SCRIPTS); do
@koizuss
koizuss / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
gem install gemrat # gemratのインストール
gemrat cocoapods
@koizuss
koizuss / file0.txt
Created April 17, 2014 04:52
ubuntu-gnome 14.04 (ibus-mozc)で日本語キーボードを使う ref: http://qiita.com/koizuss@github/items/3608bd4caf24433ede84
sudo $EDITOR /usr/share/ibus/component/mozc.xml
@koizuss
koizuss / file0.txt
Created January 11, 2014 17:34
vagrantにknife-soloする時のhostnameを設定 ref: http://qiita.com/koizuss@github/items/b2097450efa644f9dfe9
knife solo cook vagrant@hostname
@koizuss
koizuss / file0.txt
Created January 11, 2014 17:25
ubuntu13.10にopscode-cookbooks/mysql使ってmysqlインストールする時のエラー解決【暫定】 ref: http://qiita.com/koizuss@github/items/bbcbd89850e9777e8232
================================================================================
Error executing action `create` on resource 'template[/etc/init/mysql.conf]'
================================================================================
Chef::Exceptions::FileNotFound
------------------------------
Cookbook 'mysql' (4.0.18) does not contain a file at any of these locations:
templates/ubuntu-13.10/init-mysql.conf.erb
templates/ubuntu/init-mysql.conf.erb