Skip to content

Instantly share code, notes, and snippets.

{
"cmd": ["/Users/ecerulm/bin/sublime_rvm.rb", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.ruby"
}
@blueplanet
blueplanet / apps.md
Last active December 11, 2015 20:28
MacOS アプリリスト
import sublime, sublime_plugin
import os
class AutoSwitchViewTabSizeCommand(sublime_plugin.EventListener):
""" Auto switch tab_size with syntax"""
# def on_activated(self, view):
def on_load(self, view):
syntax = view.settings().get('syntax')
require 'zeus/rails'
class CustomPlan < Zeus::Rails
def spec(argv=ARGV)
# disable autorun in case the user left it in spec_helper.rb
RSpec::Core::Runner.disable_autorun!
exit RSpec::Core::Runner.run(argv)
end
end
class Event < ActiveRecord::Base
has_many :groups
end
@blueplanet
blueplanet / event.html.slim
Created June 9, 2013 08:27
Rails の link_to で `controller` にパラメータの渡し方 ref: http://qiita.com/items/9d36b59c8bf9d65a6339
= link_to "参加", join_group_event_path(@group, @event, join_type: Event::JOIN)
@blueplanet
blueplanet / rails4_template.rb
Last active December 19, 2015 17:49
Rails application template with Rails 4.0
# gems
gem 'slim-rails'
gem 'bootstrap-sass'
gem 'thin'
gem_group :development, :test do
gem 'rspec-rails'
gem 'launchy'
end

Untitled Slide

Welcome to Glide.

Glide is the easiest way to create useful slide for all of your Gists.

  • input key <- to go backward.
  • input key -> to go forward.

Publishing

@blueplanet
blueplanet / gist:7166375
Last active December 26, 2015 14:29
AWS で BOSH-lite を試す

手順

  • BOSH-liteクローンしておく

SSHエラー

  • private_key_path file must exist: /home/ubuntu/.ssh/id_rsa_bosh
    • AWSコンソールで証明証作成し、Vagrantファイルの当該値を設定しましょう
  • The key pair 'bosh' does not exist
    • AWSコンソールで作成しましょう
  • ami not found
@blueplanet
blueplanet / gist:8091812
Created December 23, 2013 04:59
Mac OS 設定調整
# キーを押すのままをキーリピットに変更
defaults write -g ApplePressAndHoldEnabled -bool false