- Add temporary github remote
git remote add github [email protected]:github_account_name/repository_name.git- Push to github
git push github -u| destination/directory$ GIT_ALTERNATE_OBJECT_DIRECTORIES=../source/directory/.git/objects git cherry-pick $(git --git-dir=../source/directory/.git rev-parse --verify commit_hash) |
| grep -r '[а-я]' * | grep -v '//' | grep -v '#' | grep -v ' \* ' | grep -v 'jscalendar' | egrep -o '^[^:]+' | grep -v '^\s' | grep -v 'Binary' | uniq -c | sort -nr | less |
| for img in `find -type f -name '*_*' ! -name '*@2x*'`; do test $(echo `basename $img | sed 's/\.[^\.]*$//'`@2x.`basename $img | sed 's/^.*\.//'` | xargs find `dirname $img` -type f -name | wc -l) -eq 0 && echo $img; done; |
| s = Product.search(query, options) | |
| s.populate # => ThinkingSphinx::SyntaxError: sphinxql: syntax error, blah, blah... | |
| # Let's see the SphinxQL query to find out what's wrong | |
| s.context[:sphinxql].to_sql # => SELECT * FROM `product_core` WHERE ... |
| controller = MyController.new | |
| controller.request = OpenStruct.new(:session => []) | |
| controller.view_renderer.render(controller.view_context, :file => 'path/to/template', :locals => {}) |
git remote add github [email protected]:github_account_name/repository_name.gitgit push github -uSearch country using russian query by all fields with prefix "name". Everything's ok.
➜ curl -XGET 'http://localhost:9200/geo/country/_search?pretty' -d '{ query: { multi_match: { fields: ["name*"], query: "Австрия" } } }'
{
"took" : 4,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
| class MyClass | |
| java_signature 'MyClass MyClass(java.lang.String someParameter)' | |
| def initialize(some_paramter) | |
| # … | |
| end | |
| become_java!(false) | |
| end |
| LoadError: load error: readline -- java.lang.NoClassDefFoundError: jline/console/completer/Completer | |
| require at org/jruby/RubyKernel.java:941 | |
| block in require at /Users/fey/.rvm/gems/jruby-head@ep_core/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229 | |
| load_dependency at /Users/fey/.rvm/gems/jruby-head@ep_core/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214 | |
| require at /Users/fey/.rvm/gems/jruby-head@ep_core/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229 |