Skip to content

Instantly share code, notes, and snippets.

View corrupt952's full-sized avatar
💬
Studying English

K@zuki. corrupt952

💬
Studying English
View GitHub Profile
- hosts: all
remote_user: root
become: false
tasks:
- name: install epel-release
yum:
name: epel-release
state: present
become: true
- name: update packages
config.parent_controller = 'OtherController'
# The parent controller all Devise controllers inherits from.
# Defaults to ApplicationController. This should be set early
# in the initialization process and should be set to a string.
mattr_accessor :parent_controller
@@parent_controller = "ApplicationController"
# All Devise controllers are inherited from here.
class DeviseController < Devise.parent_controller.constantize
include Devise::Controllers::ScopedViews
class Devise::SessionsController < DeviseController
prepend_before_action :require_no_authentication, only: [:new, :create]
prepend_before_action :allow_params_authentication!, only: :create
prepend_before_action :verify_signed_out_user, only: :destroy
prepend_before_action only: [:create, :destroy] { request.env["devise.skip_timeout"] = true }
$ semanage port -a -t ssh_port_t -p tcp 22222
#Port 22
Port 22222
+bundle_install:
sh>: bundle install
# VPC
resource "aws_vpc" "khasegawa" {
cidr_block = "10.0.0.0/16"
instance_tenancy = "default"
# ここが今回の話
enable_dns_support = true
enable_dns_hostnames = true
}
# Gateway
@corrupt952
corrupt952 / down.sh
Last active August 29, 2015 14:21
SourceTree + Vagrant + Rails
#!/bin/sh
vagrant halt