Skip to content

Instantly share code, notes, and snippets.

@0ro
0ro / README.md
Last active January 14, 2021 08:19 — forked from hofmannsven/README.md
Increase key repeat rate on macOS

Increase key repeat rate on macOS

Settings: System Preferences » Keyboard » Key Repeat/Delay Until Repeat

Use the commands below to increase the key repeat rate on macOS beyond the possible settings via the user interface. The changes aren't applied until you restart your computer.

Source: https://apple.stackexchange.com/a/83923

➜ printio git:(feature/actionpay) rake db:migrate
The PGconn, PGresult, and PGError constants are deprecated, and will be
removed as of version 1.0.
You should use PG::Connection, PG::Result, and PG::Error instead, respectively.
Called from /Users/den/.rvm/gems/ruby-2.3.2/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
== 20180131121505 AddActionpayIndexToNewOrders: migrating =====================
-- add_index(:new_orders, [:actionpay, :placed_on])
rake aborted!
development: &DEV
adapter: postgresql
encoding: unicode
database: template1
username: postgres
password: 1234
port: 5432
pool: 24
host: 127.0.0.1 # Required! PostgreSQL throws permission error otherwise.
min_messages: warning
def transformation
plain_art = resized_image art_path, // В переменную plain_art записывается пуь к измененнуму изображению,
width: width, // которое получается в результате применения метода resized_image
height: height, // к изображению, которое находится по пути art_path
exact: true // метод resized_image изменяет размеры до width и height
if crop // Если опция crop существует, то в переменную plain_art перезаписывается путь
plain_art = convert(plain_art) do // к изображению получаемуму в результате применения convert к пред. версии
set :crop, geometry(crop_geometry_args) // изображения. Метод convert обрезает изображени и возвращает результат
end
den@den:~/job/printio$ rails generate product Chocolate35x35x3.5 --variants=foil --categories=chocolates --designs=unrolled
/home/den/.rvm/gems/ruby-2.2.1/gems/ansi-1.4.3/lib/ansi/chart.rb:26: warning: duplicated key at line 29 ignored: :concealed
create app/models/products/sources/chocolate35x35x3.5
create app/assets/images/products/chocolate35x35x3.5
create app/models/products/sources/chocolate35x35x3.5/.keep
create app/assets/images/products/chocolate35x35x3.5/.keep
create app/models/products/chocolate35x35x3.5.rb
create config/locales/ru/products/chocolate35x35x3.5.yml
create app/controllers/products/chocolates35x35x3.5_controller.rb
generate migration
den@den:~/job/printio$ rails g migration create_chocolates_5g
/home/den/.rvm/gems/ruby-2.2.1/gems/ansi-1.4.3/lib/ansi/chart.rb:26: warning: duplicated key at line 29 ignored: :concealed
/home/den/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.14/lib/active_support/inflector/methods.rb:238:in `const_get': uninitialized constant Chocolate5g (NameError)
from /home/den/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.14/lib/active_support/inflector/methods.rb:238:in `block in constantize'
from /home/den/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.14/lib/active_support/inflector/methods.rb:236:in `each'
from /home/den/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.14/lib/active_support/inflector/methods.rb:236:in `inject'
from /home/den/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.14/lib/active_support/inflector/methods.rb:236:in `constantize'
from /home/den/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.14/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
from /home/den/job/printio/app/models/blank_ite
pricing :price_map:
1: 30000
4: 28000
11: 26000
51: 24000
100: 22000
:pricing_scheme: :per_item_quantity_discounts
d/callbacks.rb:306:in `_create_record'
# /home/den/.rvm/gems/ruby-2.2.1/gems/activerecord-4.1.14/lib/active_record/timestamp.rb:57:in `_create_record'
# /home/den/.rvm/gems/ruby-2.2.1/gems/activerecord-4.1.14/lib/active_record/persistence.rb:484:in `create_or_update'
# /home/den/.rvm/gems/ruby-2.2.1/gems/activerecord-4.1.14/lib/active_record/callbacks.rb:302:in `block in create_or_update'
# /home/den/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.14/lib/active_support/callbacks.rb:113:in `call'
# /home/den/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.14/lib/active_support/callbacks.rb:113:in `call'
# /home/den/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.14/lib/active_support/callbacks.rb:552:in `block (2 levels) in compile'
# /home/den/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.14/lib/active_support/callbacks.rb:502:in `call'
# /home/den/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.14/lib/active_support/callbacks.rb:502:in `call'
# /home/den/.rvm/gems/ruby-2.2
Pending: (Failures listed here are expected and do not affect your suite's status)
1) ClassicPoloShirt has unique sort weight
# Same sort weight found on ClassicPoloShirt and PoloShirt
# ./spec/features/products_spec.rb:378
2) PoloShirt has unique sort weight
# Same sort weight found on ClassicPoloShirt and PoloShirt
# ./spec/features/products_spec.rb:378
den@den:~/job/printio$ rspec spec/features/products_spec.rb
/home/den/.rvm/gems/ruby-2.2.1/gems/ansi-1.4.3/lib/ansi/chart.rb:26: warning: duplicated key at line 29 ignored: :concealed
/home/den/job/printio/spec/rails_helper.rb:14: warning: already initialized constant DefaultRasterizer
/home/den/job/printio/config/initializers/rasterizer.rb:3: warning: previous definition of DefaultRasterizer was here
Poster a2 summary
title Плакат 59.4x84.1(A2)
categories Плакаты
departments Для дома
vendors Printio