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.
Buyer.joins("left join buyers_metro_stations bms on buyers.id = bms.buyer_id").where("bms.id is null") |
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
require 'savon' | |
class Morpher | |
def initialize(phrase) | |
client = Savon.client do |globals| | |
globals.wsdl 'http://morpher.ru/WebService.asmx?WSDL' | |
globals.soap_version 2 | |
globals.soap_header header | |
end |
# Git | |
sudo apt-get install git | |
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ci commit | |
git config --global alias.st status | |
git config --global alias.new checkout -b | |
git config --global alias.lg log --oneline -25 | |
git config --global core.editor nano | |
git config --global user.name leemour |
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.
# http://www.linuxrussia.com/2015/12/keepassx2-ubuntu.html | |
#!/bin/bash -vx | |
sudo apt-get install build-essential cmake checkinstall libqt4-dev libgcrypt-dev libxtst-dev | |
export QT_SELECT=qt4 | |
cd /tmp/ && wget https://www.keepassx.org/releases/2.0.3/keepassx-2.0.3.tar.gz && tar xzvf keepassx-2.0.3.tar.gz | |
cd keepassx-2.0/ && mkdir build && cd build/ | |
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local | |
sudo checkinstall --pkgname keepassx |
############################ | |
## Make it simple =) ## | |
############################ | |
module RemoteFormHelper | |
def remote_form(path, &block) | |
simple_form_for path, remote: true do |f| | |
yield f | |
concat f.submit 'Save', class: 'ui save green button' | |
concat link_to 'Cancel', '#', class: 'ui cancel button' |
# 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 |
You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.
find app/assets/stylesheets -name "*.css.scss" -exec rename 's/\.css.scss$/.scss/' '{}' \; | |
#!/bin/sh | |
for file in $(find ./app/assets/stylesheets/ -name "*.css.scss") | |
do | |
git mv $file `echo $file | sed s/\.css//` | |
done |