SSH into Root
$ ssh [email protected]
Change Root Password
$ passwd
SSH into Root
$ ssh [email protected]
Change Root Password
$ passwd
| # config/routes.rb | |
| YandexKassaIntegration::Application.routes.draw do | |
| # ... | |
| scope '/yandex_kassa' do | |
| controller 'yandex_kassa', constraints: { subdomain: 'ssl' } do | |
| post :check | |
| post :aviso | |
| get :success | |
| get :fail |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| namespace :db do | |
| def detect_env | |
| ENV['RAILS_ENV'] || 'development' | |
| end | |
| def truncate(table) | |
| begin | |
| case @config["adapter"] | |
| when "mysql", "mysql2" | |
| ActiveRecord::Base.connection.execute("TRUNCATE #{table}") | |
| puts "Table #{table} truncated!" |
| image: node:latest | |
| cache: | |
| paths: | |
| - node_modules/ | |
| before_script: | |
| - apt-get update -y | |
| - apt-get install rsync openssh-client -y | |
| - npm install |
| # best practice: linux | |
| nano ~/.pgpass | |
| *:5432:*:username:password | |
| chmod 0600 ~/.pgpass | |
| # best practice: windows | |
| edit %APPDATA%\postgresql\pgpass.conf | |
| *:5432:*:username:password | |
| # linux |
| var parser = document.createElement('a') | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash" | |
| parser.protocol // => "http:" | |
| parser.host // => "example.com:3000" | |
| parser.hostname // => "example.com" | |
| parser.port // => "3000" | |
| parser.pathname // => "/pathname/" | |
| parser.hash // => "#hash" | |
| parser.search // => "?search=test" |