This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "babosa" | |
class Suit < ActiveRecord::Base | |
has_and_belongs_to_many :complects | |
has_and_belongs_to_many :special_props | |
has_many :checkins, :dependent => :destroy | |
has_many :items, :through => :checkins | |
has_many :suit_photos | |
accepts_nested_attributes_for :suit_photos, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveAdmin.register Suit do | |
menu :parent => "Мебель", | |
:label => "Комплекты" | |
permit_params :title, | |
:color, | |
:material, | |
:material_front, | |
:price, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name <...>.com; | |
passenger_enabled on; | |
passenger_start_timeout 180; | |
passenger_load_shell_envvars off; | |
root /home/webmaster/git/bitbucket/s40/public; | |
client_max_body_size 32m; | |
location / { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For more information on configuration, see: | |
# * Official English Documentation: http://nginx.org/en/docs/ | |
# * Official Russian Documentation: http://nginx.org/ru/docs/ | |
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log; | |
#error_log /var/log/nginx/error.log notice; | |
#error_log /var/log/nginx/error.log info; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash/zsh git prompt support | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# This script allows you to see repository status in your prompt. | |
# | |
# To enable: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nginx -V | |
nginx version: nginx/1.11.3 | |
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) | |
built with OpenSSL 1.0.1e-fips 11 Feb 2013 | |
TLS SNI support enabled | |
configure arguments: | |
--prefix=/usr/share/nginx | |
--sbin-path=/usr/sbin/nginx | |
--conf-path=/etc/nginx/nginx.conf | |
--error-log-path=/var/log/nginx/error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wget http://nginx.org/download/nginx-1.11.3.tar.gz | |
$ tar -xvf nginx-1.11.3.tar.gz | |
$ sudo mkdir /usr/share/src | |
$ sudo mv nginx-1.11.3/ /usr/share/src/ | |
$ cd /usr/share/src/nginx-1.11.3/ | |
$ sudo yum install gcc gcc-c++ kernel-devel | |
$ sudo yum groupinstall 'Development Tools' | |
$ sudo yum install pcre-devel | |
$ sudo yum install perl-ExtUtils-Embed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Postfix master process configuration file. For details on the format | |
# of the file, see the master(5) manual page (command: "man 5 master"). | |
# | |
# Do not forget to execute "postfix reload" after editing this file. | |
# | |
# ========================================================================== | |
# service type private unpriv chroot wakeup maxproc command + args | |
# (yes) (yes) (yes) (never) (100) | |
# ========================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
soft_bounce = no | |
queue_directory = /var/spool/postfix | |
command_directory = /usr/sbin | |
daemon_directory = /usr/libexec/postfix | |
mail_owner = postfix | |
# The default_privs parameter specifies the default rights used by | |
# the local delivery agent for delivery to external file or command. | |
# These rights are used in the absence of a recipient user context. | |
# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# standard standalone server implementation | |
START { | |
# do not delete this entry! | |
recover cmd="ctl_cyrusdb -r" | |
# this is only necessary if using idled for IMAP IDLE | |
idled cmd="idled" | |
} |
OlderNewer