create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
#model | |
def self.list_for_select_by_code | |
find(:all).collect {|t| [t.name, t.code]} | |
end | |
#view file | |
select "search", "area", [["こだわらない", @default_area.code]].concat(SearchArea.list_for_select_by_code) | |
def self.list_attributes_for_select | |
return [ |
packages: | |
yum: | |
rsyslog: [] | |
rsyslog-gnutls: [] | |
files: | |
"/etc/rsyslog.d/01-udp.conf": | |
mode: "000640" | |
owner: root | |
group: root | |
content: | |
Nov 03 20:26:38 api-staging rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="26962" x-info="http://www.rsyslog.com"] exiting on signal 15. | |
Nov 03 20:26:38 api-staging kernel: imklog 5.8.10, log source = /proc/kmsg started. | |
Nov 03 20:26:38 api-staging rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="27112" x-info="http://www.rsyslog.com"] start | |
Nov 03 20:27:05 api-staging kernel: Kernel logging (proc) stopped. | |
Nov 03 20:27:05 api-staging rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="27112" x-info="http://www.rsyslog.com"] exiting on signal 15. | |
Nov 03 20:27:14 api-staging kernel: imklog 5.8.10, log source = /proc/kmsg started. | |
Nov 03 20:27:14 api-staging rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="27180" x-info="http://www.rsyslog.com"] start | |
Nov 03 20:29:14 api-staging kernel: imklog 5.8.10, log source = /proc/kmsg started. | |
Nov 03 20:29:14 api-staging rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="27297" x-info="http: |
module ProductDetailServices | |
class CalculateShippingFee | |
def initialize(product_data) | |
@product_data = product_data | |
end | |
def get | |
SHIPPING_RULES.map{ |rule_name, rule| shipping_fee_object_for(rule, @product_data) }.compact.max.shipping_fee | |
end |
// This document distills the magic that happens when you create a file with the ".jst" | |
// and ".ejs" extensions anywhere on your asset path in Ruby on Rails, courtesy of the | |
// Sprockets library (https://github.com/sstephenson/sprockets). | |
// | |
// For the purpose of this example, imagine that you have created a template for | |
// messages in `app/assets/javascripts/backbone/templates/messages/message.jst.ejs` | |
// with the following contents: | |
// | |
// <h1><%= user.full_name %></h1> | |
// <p><%= body %></p> |
require 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rbenv' # for rbenv support. (http://rbenv.org) | |
# require 'mina/rvm' # for rvm support. (http://rvm.io) | |
# Basic settings: | |
# domain - The hostname to SSH to. | |
# deploy_to - Path to deploy into. | |
# repository - Git repo to clone from. (needed by mina/git) |
module TaxServices | |
class ItemPrice | |
def initialize(total_price, has_tax, has_service_tax) | |
@total_price = total_price | |
@service_tax_rate = has_tax ? Settings.tax.service_tax_rate : 0 | |
@tax_rate = has_service_tax ? Settings.tax.tax_rate : 0 | |
end | |
def perform | |
OpenStruct( |
{"lastUpload":"2017-12-20T02:10:36.078Z","extensionVersion":"v2.8.7"} |
{"lastUpload":"2017-12-24T07:38:53.099Z","extensionVersion":"v2.8.7"} |