-
use admin db.createUser( { user: "admin",
pwd: "***",
gem install lunchy | |
pg_dumpall > pg_all.sql | |
# Kill anything that access PostgreSQL before this, e.g. local rails server, pgAdmin etc | |
sudo lunchy stop homebrew.mxcl.postgresql | |
mv /usr/local/var/postgres{,.bak} | |
LC_CTYPE="tr_TR.UTF-8" initdb -E UTF-8 --locale=tr_TR --lc-collate=tr_TR --lc-ctype=tr_TR -D /usr/local/var/postgres/ | |
sudo lunchy start homebrew.mxcl.postgresql | |
psql -f pg_all.sql -d postgres | |
# Make sure pg_all.sql is safe and can be restored before this | |
rm -rf /usr/local/var/postgres.bak |
use admin
db.createUser(
{
user: "admin",
pwd: "***",
IMPORTANT - READ BEFORE COPYING, INSTALLING OR USING. | |
Do not copy, install, or use the "Materials" provided under this license agreement ("Agreement"), until you have carefully read the following terms and conditions. | |
By copying, installing, or otherwise using the Materials, you agree to be bound by the terms of this Agreement. If you do not agree to the terms of this Agreement, do not copy, install, or use the Materials. | |
End User License Agreement for the Intel(R) Power Gadget | |
1. LICENSE DEFINITIONS: | |
A. "Materials" are defined as the software in source and object code formats, documentation, license key codes and other materials, including any updates and upgrade thereto, that are provided to you under this Agreement. |
Concatenate the files in the following order:
Root CA Certificate - AddTrustExternalCARoot.crt
Intermediate CA Certificate - COMODORSAAddTrustCA.crt
Intermediate CA Certificate - COMODORSADomainValidationSecureServerCA.crt
Your EssentialSSL Certificate - www_example_com.crt *
(*) Exclude the real certificate "www_example_com.crt" if CA bundle is entered separately.
class CreateTables < ActiveRecord::Migration | |
def change | |
create_table :products do |t| | |
# ... | |
end | |
create_table :orders do |t| | |
# ... | |
end | |
create_table :order_items do |t| | |
t.references :order, index: true, foreign_key: true |
require 'benchmark/ips' | |
def digits_s(n) | |
n.to_s.chars.map(&:to_i) | |
end | |
# http://stackoverflow.com/a/12909952/372654 | |
def digits_divmod(n) | |
n = n.abs | |
[].tap do |result| |
# Assumes gems: Chewy, Money and eu_central_bank | |
class SearchForm | |
include ActiveModel::Model | |
DEFAULTS = { 'currency' => 'TRY' } | |
attr_accessor :price_min, :price_max, :currency | |
# ... |