SSH into Root
$ ssh root@123.123.123.123
Change Root Password
| require 'mina/bundler' | |
| require 'mina/rails' | |
| require 'mina/git' | |
| require 'mina/rvm' | |
| require 'mina_sidekiq/tasks' | |
| set :rails_env, 'production' | |
| set :domain, 'YOUR_IP_OR_DOMAIN' | |
| set :deploy_to, "/home/rails/#{rails_env}" | |
| set :repository, 'git@github.com:fousa/<YOUR_REPOSITORY>.git' |
SSH into Root
$ ssh root@123.123.123.123
Change Root Password
| # An example demonstrating Gmail API via IMAP using gmail_xoauth gem | |
| # Add this file to your rails project to use if you don't want to use this in rails project then require | |
| require 'net/imap' | |
| require 'gmail_xoauth' | |
| class Gmail | |
| attr_accessor :email, :access_token | |
| def initialize(args) | |
| email = args[:email] |
| # lib/auction_core/lot_importer/csv.rb | |
| # We use require_dependency in our app and have this file namespaced under lib. | |
| # This file is the entry point for using the importer. | |
| require 'parser' | |
| module AuctionCore | |
| module LotImporter | |
| module Csv | |
| def self.import(file_to_import = nil, _klass = Lot) | |
| parser = Parser.new(file_to_import) |
| <div id="main" role="main"> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="span12" id="top-div"> <!--! added "top-div" id to help with ajax --> | |
| <%= render 'layouts/messages' %> | |
| <%= yield %> | |
| </div> | |
| </div> | |
| <footer> | |
| </footer> |
| <template> | |
| <div :id="uppyId"> | |
| <div class="ThumbnailContainer" v-if="collection === 'thumbnail'"> | |
| <button id="open-thumbnail-modal" class="button">Select file</button> | |
| </div> | |
| <div class="DashboardContainer" v-else></div> | |
| </div> | |
| </template> |
| cd | |
| git clone git://github.com/sstephenson/rbenv.git .rbenv | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
| echo 'eval "$(rbenv init -)"' >> ~/.zshrc | |
| git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
| echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.zshrc | |
| source ~/.zshrc | |
| sudo apt-get install -y libssl-dev libreadline-dev zlib1g-dev | |
| rbenv install -v 2.3.1 | |
| rbenv global 2.3.1 |