- HTTP / HTTPS
- MVC / MVVM
- LAMP
- AJAX
- Comet / WebSockets / Pooling
- git / Mercurial / SVN
- BASH
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
Dir[File.dirname(__FILE__) + '/support/*'].each{|path| require path} |
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
\curl -L https://get.rvm.io | bash -s stable | |
rvm list known — list of all ruby versions available for install | |
rvm install 1.9.1 – install ruby 1.9.1 | |
rvm remove 1.9.2 – remove ruby 1.9.2 | |
rvm use 1.9.2 — switch to ruby 1.9.2 | |
rvm use 1.9.2@rails3 --default — install ruby 1.9.2 with gemset rails3 by default | |
rvm use system — use the system version of ruby | |
rvm list – list of installed versions of ruby | |
rvm gemset list – list of gemsets in selected ruby version |
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
gem: --no-document |
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
DELETE FROM table WHERE id IN | |
(SELECT UNNEST(STRING_TO_ARRAY(SUBSTRING(STRING_AGG(id::varchar, ','), | |
POSITION(',' in string_agg(id::varchar, ',')) + 1 ), ','))::integer | |
FROM table | |
GROUP BY field1, field2, field3, field4, field5, field6 | |
HAVING COUNT(*) > 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
rspec --fail-fast |
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
tags = %w[foo bar] | |
tags |= %w[foo buz] # => ["foo", "bar", "buz"] |
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
(NOW()::date - interval '1 day' * (EXTRACT(DAY FROM NOW()) - 1))::date |
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
1.apt-get update / apt-get upgrade | |
2.dpkg-reconfigure tzdata | |
3.adduser admin | |
4.ssh-keygen | |
copy rsa key from local machine to authorized_keys | |
nano /etc/ssh/sshd_config: | |
Port 2772 | |
PermitRootLogin no | |
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
Возникли проблемы со взаимодействием Guard и Zeus в RubyMine 6. | |
Конечный вариант решения: Tools -> Start Zeus Server / Start Guard и cmd: "zeus rspec" в методе rspec Guardfile'а. | |
Автоматический запуск Zeus'а Guard'ом не виден из RubyMine и rake-таски а также генераторы запускаются не из под Zeus'а. |
OlderNewer