Skip to content

Instantly share code, notes, and snippets.

View STAR-ZERO's full-sized avatar

Kenji Abe STAR-ZERO

View GitHub Profile
@STAR-ZERO
STAR-ZERO / maven_android.md
Last active December 11, 2015 06:58
Eclipse + MavenでAndroidプロジェクト作成

Eclipse + MavenでAndroidプロジェクト作成

いつものをインストール

  • Android SDK
  • ADT plugin
  • Eclipse MarketPlace

一応、アップデートを確認しておいたほうがいいかも

Mavenをインストール

@STAR-ZERO
STAR-ZERO / gist:4728984
Created February 7, 2013 06:34
roleを指定してcapistranoを実行
$ ROLES=web,app cap deploy
@STAR-ZERO
STAR-ZERO / cocoapods.md
Created February 21, 2013 02:02
CocoaPodsの使い方

CocoaPodsの使い方

インストール

※要Ruby

$ gem install cocoapods
$ pod setup
@STAR-ZERO
STAR-ZERO / FPPopover.podspec
Last active December 14, 2015 00:49
自分用のpodspec
Pod::Spec.new do |s|
s.name = 'FPPopover'
s.version = '1.3'
s.license = 'MIT'
s.platform = :ios
s.summary = 'Alternative to the native iOS UIPopoverController, with iPhone support and look and feel customization.'
s.description = 'Provides an alternative to the native iOS UIPopoverController, adding support for iPhone and additional opportunities to customize the look and feel of the popovers.'
s.homepage = 'https://github.com/50pixels/FPPopover'
s.author = { 'Alvise Susmel' => 'alvise@50pixels.com' }
s.source = { :git => 'https://github.com/50pixels/FPPopover.git', :commit => '4d6e28452aa5b0a3d7080a8770b55a760be9f57b' }
@STAR-ZERO
STAR-ZERO / gist:5018796
Last active December 14, 2015 03:09
XcodeColorsでXcodeのログに色をつける
@STAR-ZERO
STAR-ZERO / Gemfile
Created February 26, 2013 06:25
log4rの使い方
# Gemfile
gem 'log4r'
@STAR-ZERO
STAR-ZERO / SampleAdapter.java
Last active December 14, 2015 16:29
【Android RoboGuice】Adpate内のViewHolderでInjectView
public class SampleAdapter extends ArrayAdapter<String> {
...
...
// SuperViewHolderを継承する
static class ViewHolder extends SuperViewHolder {
@InjectView(R.id.text)
TextView text;
@STAR-ZERO
STAR-ZERO / gist:5128887
Created March 10, 2013 14:59
thinの設定、起動、停止

thinの設定、起動、停止

設定ファイル

config/thin.ymlを作成

pid: tmp/pids/thin.pid
log: log/thin.log
servers: 1
@STAR-ZERO
STAR-ZERO / gist:5176364
Last active December 15, 2015 00:59
VagrantとChef-soloの基本 かなり分かってないこと多いです

Vagrant

インストール

$ gem install vagrant

Box追加

@STAR-ZERO
STAR-ZERO / gist:5311165
Last active December 15, 2015 19:29
"Received disconnect from hostname: 2: Too many authentication failures for username" の対処方法

原因

.sshに鍵の登録しすぎ

解決方法1

~/.ssh/configに次のように書く

Host hogehoge.com