This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HomeController < ApplicationController | |
def index | |
@data = session[:omniauth_data] | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CreateProducts < ActiveRecord::Migration | |
def up | |
create_table :projects_users, :id => false do |t| | |
t.references :user, :null => false | |
t.references :project, :null => false | |
end | |
end | |
def down | |
drop_table :projects_users | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Project < ActiveRecord::Base | |
attr_accessible :description, :name | |
has_many :user_projects | |
has_many :users, :through => :user_projects | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------- SSHD Begin ------------------------ | |
Didn't receive an ident from these IPs: | |
58.174.96.26 (CPE-58-174-96-26.cxyh2.woo.bigpond.net.au): 1 Time(s) | |
Illegal users from: | |
undef: 6 times | |
oracle [preauth]: 2 times | |
db2inst1 [preauth]: 1 time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE UNIQUE NONCLUSTERED INDEX index_users_reset_password_token | |
ON dbo.users (reset_password_token) | |
WHERE reset_password_token IS NOT NULL | |
ALTER INDEX index_users_on_reset_password_token | |
ON dbo.users (reset_password_token) | |
WHERE reset_password_token IS NOT NULL | |
REBUILD |
NewerOlder