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
test body 0 | |
test body 1 |
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
Занятия с наставником. | |
Плюсы. | |
Занятия с наставником помогли мне в выборе правильного направления в реализации программного решения. | |
Занятия помогли узнать новое и закрепить новые навыки. | |
Они сэкономили мне время, чтобы самому не изобретать велосипеды. | |
Они помогли в нахождении наставника, так как в родном городе мало специалистов по выбранной технологии. | |
Помогло развить мотивацию и самоорганизацию, так как сроков сдачи задачи нет. | |
Любая поставленная грамотная задача, запускает подсознание в работу, и решения могут начать накапливаться и приходить даже спустя месяцы. |
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
#a = *(0..10) | |
#a.delete((rand * 10).to_i) | |
#z=0 | |
#a.each_with_index do |thing, index| | |
# if thing != index | |
# p index | |
# break |
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
You can reset the root password by running the server with --skip-grant-tables and logging in without a password by running the following as root (or with sudo): | |
# service mysql stop | |
# mysqld_safe --skip-grant-tables & | |
$ mysql -u root | |
mysql> use mysql; | |
mysql> update user set password=PASSWORD("YOUR-NEW-ROOT-PASSWORD") where User='root'; | |
mysql> flush privileges; | |
mysql> quit |
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
First, add Unicorn to your app’s Gemfile: | |
gem 'unicorn' | |
a.Run bundle install to set up your bundle locally. | |
b. Create a configuration file for Unicorn at config/unicorn.rb | |
c. Create pid and shared paths on server | |
=== | |
Check concurrency paths in nginx.conf and unicorn.rb |
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
nokogiri (1.5.10) | |
sudo apt-get install libxml2-dev | |
I also needed: | |
sudo apt-get install libxslt-dev | |
=== | |
mysql2 (0.3.11) |
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
# Bundler Integration | |
require "bundler/capistrano" | |
# Application Settings | |
set :application, "yourapplicationname" | |
set :user, "serveruser" | |
set :deploy_to, "/home/#{user}/rails-applications/#{application}" | |
set :rails_env, "production" | |
set :use_sudo, false | |
set :keep_releases, 3 |
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
MySQL: | |
sudo apt-get install mysql-server mysql-client |
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
application.yml | |
=== | |
# Add application configuration variables here, as shown below. | |
# | |
# PUSHER_APP_ID: "2954" | |
# PUSHER_KEY: 7381a978f7dd7f9a1117 | |
# PUSHER_SECRET: abdc3b896a0ffb85d373 | |
# STRIPE_API_KEY: EdAvEPVEC3LuaTg5Q3z6WbDVqZlcBQ8Z | |
# STRIPE_PUBLIC_KEY: pk_BRgD57O8fHja9HxduJUszhef6jCyS |
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
Commit: | |
git diff --check (убирает whitespace) | |
== | |
git update-index --assume-unchanged <file> | |
git update-index --no-assume-unchanged <file> | |
== |
OlderNewer