echo 'UseDNS no # if slow connection' >> /etc/ssh/sshd_config
echo 'PrintMotd yes # if you need motd messages' >> /etc/ssh/sshd_configFrom /etc/pam.d/login && /etc/pam.d/sshd delete all strings included
session optional pam_motd.so
| #http://blog.wyeworks.com/2009/7/13/paperclip-file-rename | |
| Paperclip.interpolates :default_image_type do |attachment, style| | |
| attachment.instance.get_user_default_profile_image | |
| end | |
| Paperclip.interpolates :normalized_avatar_file_name do |attachment, style| | |
| attachment.instance.normalized_avatar_file_name | |
| end | |
echo 'UseDNS no # if slow connection' >> /etc/ssh/sshd_config
echo 'PrintMotd yes # if you need motd messages' >> /etc/ssh/sshd_configFrom /etc/pam.d/login && /etc/pam.d/sshd delete all strings included
session optional pam_motd.so
| # Support for Rspec / Capybara subdomain integration testing | |
| # Make sure this file is required by spec_helper.rb | |
| # | |
| # Sample subdomain test: | |
| # it "should test subdomain" do | |
| # switch_to_subdomain("mysubdomain") | |
| # visit root_path | |
| # end | |
| DEFAULT_HOST = "lvh.me" |
| # install and make run basic bootstrap date-picker functionality described here http://www.eyecon.ro/bootstrap-datepicker/ | |
| # app/assets/javascript/datepicker.js.coffee | |
| $(document).on 'pageChanged', -> | |
| # datepicker for simple_form & Ransack | |
| $(".custom_datepicker_selector").datepicker().on 'changeDate', (en) -> | |
| correct_format = en.date.getFullYear() + '-' + ('0' + (en.date.getMonth() + 1)).slice(-2) + '-' + ('0' + en.date.getDate()).slice(-2) # date format yyyy-mm-dd | |
| $(this).parent().find("input[type=hidden]").val(correct_format) |
| source :rubygems | |
| gem 'raad' | |
| gem 'puma' | |
| gem 'sinatra' |
#Суть задания Необходимо реализовать отдельным приложением парсер данных о чартерных рейсах с сайтов туроператоров, на ваш выбор:
Парсеры данных именно этих операторов давно и успешно реализованы нами и такая задача считается тривиальной.
####Объяснение что и откуда можно брать в итоговой таблице туроператора:
| %% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
| %% ex: ts=4 sw=4 et | |
| %% @author Kevin Smith <[email protected]> | |
| %% @copyright 2011 Opscode, Inc. | |
| -module(example). | |
| -behaviour(gen_server). | |
| -export([start_link/0]). |
| #!/usr/bin/env bash | |
| echo -e "\033[32m => Updating reps info.." && tput sgr0 | |
| apt-get -y update | |
| echo -e "\033[32m => Installing depends.." && tput sgr0 | |
| apt-get -y install build-essential tklib zlib1g-dev libssl-dev libreadline-gplv2-dev libxml2 libxml2-dev libxslt1-dev libyaml-dev libffi-dev libgdbm-dev | |
| echo -e "\033[32m => Upgrading dist.." && tput sgr0 | |
| apt-get -y upgrade | |
| cd /tmp | |
| echo -e "\033[32m => Installing ruby-1.9.3-p392.." && tput sgr0 | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.bz2 |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import cx_Oracle | |
| USER='USER' | |
| PASSWORD='PASSWORD' | |
| SID='SID' |