SSH into Root
$ ssh [email protected]
Change Root Password
SSH into Root
$ ssh [email protected]
Change Root Password
| lodge: | |
| per_size: 30 | |
| right_list_size: 10 | |
| slack: | |
| defaults: &defaults | |
| url: https://slack.com | |
| channel: #channel | |
| # トークンは Slack API のページで発行できます。 | |
| token: my_token |
| # Docs: http://smartinez87.github.io/exception_notification/ | |
| module ExceptionNotifier | |
| class SlackNotifier | |
| def initialize(options) | |
| # do something with the options... | |
| @channel = options[:channel] || '#somechannel' | |
| @team = options[:team] || 'someteam' | |
| @token = options[:token] || '__top_secret_token__' | |
| @username = options[:username] || 'somename' |
| 'use strict'; | |
| // Add ECMA262-5 method binding if not supported natively | |
| // | |
| if (!('bind' in Function.prototype)) { | |
| Function.prototype.bind= function(owner) { | |
| var that= this; | |
| if (arguments.length<=1) { | |
| return function() { | |
| return that.apply(owner, arguments); |
| //USES JQUERY | |
| var slides = [ | |
| "img/Lighthouse.jpg", | |
| "img/Desert.jpg", | |
| "img/Jellyfish.jpg" | |
| ]; | |
| $(slides).each(function () { | |
| $('<img />').attr('src',this).appendTo('body').css('display','none'); | |
| }); |
| public enum Order | |
| { | |
| Ascending, | |
| Descending | |
| } |
| // | |
| // _oo0oo_ | |
| // o8888888o | |
| // 88" . "88 | |
| // (| -_- |) | |
| // 0\ = /0 | |
| // ___/`---'\___ | |
| // .' \\| |// '. | |
| // / \\||| : |||// \ | |
| // / _||||| -:- |||||- \ |
| ActiveSupport.on_load(:action_controller) do | |
| after_action :set_csrf_cookie_for_angular_js | |
| define_method :set_csrf_cookie_for_angular_js do | |
| cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery? | |
| end | |
| private :set_csrf_cookie_for_angular_js | |
| define_method :verified_request_with_angular_header? do | |
| verified_request_without_angular_header? || form_authenticity_token == request.headers['X-XSRF-Token'] |